| | |
| | | import com.alibaba.fastjson.JSONObject;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
| | | import com.zy.asrs.framework.common.Cools;
|
| | | import com.zy.asrs.framework.common.R;
|
| | | import com.zy.asrs.framework.exception.CoolException;
|
| | | import com.zy.asrs.wms.apis.wcs.entity.domain.SystemProperties;
|
| | |
| | | } else {
|
| | | if (task.getTaskSts() == TaskStsType.WCS_EXECUTE_OUT_ARRIVED.id
|
| | | || task.getTaskSts() == TaskStsType.WCS_EXECUTE_OUT_TASK_DONE.id) {
|
| | |
|
| | |
|
| | | boolean update = taskService.update(new LambdaUpdateWrapper<Task>()
|
| | | .set(Task::getTaskSts, TaskStsType.WAVE_SEED.id)
|
| | |
| | | //* 1. 判断当前容器是否还有物料未拣,未拣完闪灯,拣完通知容器流动,并灭灯
|
| | | SlapLightControlParam slapParam = new SlapLightControlParam();
|
| | | MultiValueMap<String, Object> params = new LinkedMultiValueMap<>();
|
| | | Order one = orderService.getOne(new LambdaQueryWrapper<Order>().eq(Order::getOrderNo, orderNo));
|
| | | if (Objects.isNull(one)) {
|
| | | throw new CoolException("当前订单明细不存在!!");
|
| | | }
|
| | |
|
| | | if (Cools.isEmpty(slapParam)) {
|
| | | return null;
|
| | | }
|
| | |
|
| | | //判断当前任务是否还有物料未拣
|
| | | if (!checked(orderNo, taskNo)) {
|
| | | log.info("未完成闪灯请求地址:{},请求参数:{}", SystemProperties.SLAP_LIGHT, JSONObject.toJSONString(slapParam));
|
| | | //调用三方接口,闪灯不做操作
|
| | | // 设置请求参数
|
| | | mobileService.sowLightMange(siteNo, one, "LIGHT");
|
| | | // throw new CoolException("当前任务未完成,不能执行此操作!!");
|
| | | // params.add("params", JSONObject.toJSONString(slapParam));
|
| | | } else {
|
| | | //调用三方接口,灭灯通知容器流动, 传灭灯参数
|
| | | //todo 判断当前订单是否完成,完成灭灯,未完成保持拣货状态亮灯
|
| | | Order one = orderService.getOne(new LambdaQueryWrapper<Order>().eq(Order::getOrderNo, orderNo));
|
| | | if (Objects.isNull(one)) {
|
| | | throw new CoolException("当前订单明细不存在!!");
|
| | | }
|
| | |
|
| | | // //获取播种已完成的订单明细
|
| | | // List<OrderDetl> detlList = orderDetls.stream().filter(detl -> {
|
| | | // return detl.getPickStatus() == OrderPickStatus.ORDER_PICK_STATUS_DONE.val;
|