| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | |
| | | |
| | | // 根据站点编码查播种站点信息 |
| | | CacheSite cacheSite = cacheSiteService.getOne(new LambdaQueryWrapper<CacheSite>().eq(CacheSite::getSiteNo, request.get("tagCode"))); |
| | | if (Objects.isNull(cacheSite)) { |
| | | throw new CoolException("当前站点不存在!!"); |
| | | } |
| | | // 根据播种站点信息条码,查任务 |
| | | Task task = taskService.getOne(new LambdaQueryWrapper<Task>().eq(Task::getBarcode, cacheSite.getBarcode())); |
| | | if (Objects.isNull(task)) { |
| | | throw new CoolException("当前站点任务不存在!!"); |
| | | } |
| | | |
| | | request.clear(); |
| | | request.put("taskNo", task.getTaskNo()); |
| | | request.put("orderNo",cacheSite.getOrderNo()); |
| | | Map<String, Object> param = new HashMap<>(); |
| | | param.put("taskNo", task.getTaskNo()); |
| | | param.put("orderNo",cacheSite.getOrderNo()); |
| | | |
| | | wcsApiService.slapLightLogic(request); |
| | | wcsApiService.slapLightLogic(param); |
| | | |
| | | return R.ok(); |
| | | } |