| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.OrderDetlPakout; |
| | | import com.zy.asrs.entity.OrderPakout; |
| | | import com.zy.asrs.entity.param.OrderCargoBookingNoteParam; |
| | | import com.zy.asrs.entity.param.OrderInspectionRollParam; |
| | | import com.zy.asrs.entity.param.OrderOutLocBoxCsUtilParam; |
| | | import com.zy.asrs.service.*; |
| | |
| | | |
| | | /** |
| | | * Created by Monkey D. Luffy on 2025.11.10 |
| | | * 徐工汉云..............以下.............上饶江铜.............拆垛完成信息处理 |
| | | * 徐工汉云..............以下.............上饶江铜.............组货单相关 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | |
| | | private ApiLogService apiLogService; |
| | | @Autowired |
| | | private SnowflakeIdWorker snowflakeIdWorker; |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | |
| | | @Transactional |
| | | public ReturnT<String> abandoned(OrderPakout orderPakout) { |
| | |
| | | List<OrderDetlPakout> orderDetls = orderDetlPakoutService.selectByOrderId(orderPakout.getId()); |
| | | String memo = ""; |
| | | for (OrderDetlPakout orderDetl : orderDetls) { |
| | | boolean signD = true; |
| | | if (!CodeDetectionUtil.barcodeDetection(orderDetl.getManu(),7)){ |
| | | if (Cools.isEmpty(memo)){ |
| | | memo = "无库存"; |
| | | }else { |
| | | memo = memo+";无库存"; |
| | | LocDetl locDetl = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("model", orderDetl.getModel())); |
| | | if (!Cools.isEmpty(locDetl)){ |
| | | signD = false; |
| | | orderDetl.sync(locDetl); |
| | | orderDetl.setManu(locDetl.getLocNo()); |
| | | orderDetl.setBarcode(locDetl.getBarcode()); |
| | | orderDetl.setDanger(locDetl.getDanger()); |
| | | orderDetl.setMemo(locDetl.getMemo()); |
| | | if (!Cools.isEmpty(locDetl.getDanger$()) && locDetl.getDanger()==1){ |
| | | orderDetl.setDanger(1); |
| | | orderDetlPakoutService.updateById(orderDetl); |
| | | continue; |
| | | } |
| | | } else { |
| | | if (Cools.isEmpty(memo)){ |
| | | memo = "无库存"; |
| | | }else { |
| | | memo = memo+";无库存"; |
| | | } |
| | | continue; |
| | | } |
| | | continue; |
| | | } |
| | | if (Cools.isEmpty(orderDetl.getDanger$()) || orderDetl.getDanger()==1){//合格不需要检验 |
| | | continue; |
| | | if (signD){ |
| | | if (!Cools.isEmpty(orderDetl.getDanger$()) && orderDetl.getDanger()==1){//合格不需要检验 |
| | | continue; |
| | | } else { |
| | | LocDetl locDetl = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("model", orderDetl.getModel())); |
| | | if (!Cools.isEmpty(locDetl.getDanger$()) && locDetl.getDanger()==1){ |
| | | orderDetl.setDanger(1); |
| | | orderDetlPakoutService.updateById(orderDetl); |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | OrderInspectionRollParam orderInspectionRollParam = new OrderInspectionRollParam(orderDetl.getModel()); |
| | | String response = ""; |
| | |
| | | if (value.equals("合格")){ |
| | | orderDetl.setDanger(1); |
| | | orderDetlPakoutService.updateById(orderDetl); |
| | | } else if (value.equals(orderDetl.getDanger$())){ |
| | | } else if (!Cools.isEmpty(orderDetl.getDanger$()) && value.equals(orderDetl.getDanger$())){ |
| | | if (Cools.isEmpty(memo)){ |
| | | memo = "查询卷号结果:"+jsonObject.getString("message"); |
| | | }else { |