| | |
| | | package com.zy.asrs.wms.apis.wcs.services.Impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.zy.asrs.framework.common.R; |
| | | import com.zy.asrs.framework.exception.CoolException; |
| | | import com.zy.asrs.wms.apis.wcs.entity.response.SowSeeds; |
| | | import com.zy.asrs.wms.apis.wcs.services.WaveManagentService; |
| | | import com.zy.asrs.wms.asrs.entity.Task; |
| | | import com.zy.asrs.wms.asrs.entity.WaveSeed; |
| | | import com.zy.asrs.wms.asrs.entity.param.WaveSeedReviewParam; |
| | | import com.zy.asrs.wms.asrs.service.TaskService; |
| | | import com.zy.asrs.wms.asrs.service.WaveSeedService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | @Autowired |
| | | private WaveSeedService waveSeedService; |
| | | |
| | | @Autowired |
| | | private TaskService taskService; |
| | | |
| | | @Override |
| | | public R getSowSeeds() { |
| | | List<SowSeeds> waveSeeds = waveSeedService.selectSeedsList(); |
| | | return R.ok(waveSeeds); |
| | | } |
| | | |
| | | @Override |
| | | public R reviewSeeds(WaveSeedReviewParam reviewParam) { |
| | | waveSeedService.waveSeedReview(reviewParam); |
| | | return R.ok("播种复核成功"); |
| | | } |
| | | |
| | | @Override |
| | | public int removeSowSeed(Long id) { |
| | | if (id == null) { |
| | | throw new CoolException("播种ID不能为空!!"); |
| | | } |
| | | return waveSeedService.removeSowById(id); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public R getTask() { |
| | | List<Task> list = taskService.list(new LambdaQueryWrapper<Task>().ge(Task::getTaskType, 101)); |
| | | return R.ok(list); |
| | | } |
| | | } |