| | |
| | | throw new CoolException("未找到播种墙");
|
| | | }
|
| | | for (CacheSite cacheSite:cacheSites) {
|
| | | // 获取任务明细数量
|
| | | List<TaskDetl> taskDetlByTaskId = taskDetlService.getTaskDetlByTaskId(task.getId());
|
| | | double sum = taskDetlByTaskId.stream().mapToDouble(TaskDetl::getAnfme).sum();
|
| | | SlapLightControlParam slapLightControlParam = new SlapLightControlParam();
|
| | | slapLightControlParam.setControllerCode(cacheSite.getMemo()).setTagCode(cacheSite.getSiteNo())
|
| | | .setColor("GREEN").setMode("LIGHT");
|
| | | .setColor("GREEN").setMode("LIGHT").setDisplay(String.valueOf(sum));
|
| | | // 发起亮灯请求
|
| | | CommonReponse response = HttpEssUtils.post("到达拣选位,播种墙亮灯", HttpEssUtils.PLT_SEND_COMMAND, slapLightControlParam);
|
| | | if (response.getCode().equals(0)) {
|