qiangxuan 6 meses atrás
pai
commit
ab99056437

+ 3 - 3
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/billet/storageBill/service/impl/StorageBillServiceImpl.java

@@ -427,6 +427,7 @@ public class StorageBillServiceImpl extends ServiceImpl<StorageBillMapper, Stora
     public JSONObject addParkingSpaceDepart(StorageBill storageBill) {
         JSONObject result = new JSONObject();
         try {
+            log.info("{}{}", "前端传递的装运单信息:", JSON.toJSON(storageBill));
             // 根据装运单ID,校验钢坯装运单是否存在
             StorageBill storageBillInfo = baseMapper.selectById(storageBill.getId());
             if (storageBillInfo == null){
@@ -436,9 +437,8 @@ public class StorageBillServiceImpl extends ServiceImpl<StorageBillMapper, Stora
             List<RollClubCommon> rollClubCommonList = new ArrayList<>();
             List<BilletAutoTmp> billetAutoTmpList = new ArrayList<>();
             if ("上若".equals(storageBillInfo.getDestination()) && "16".equals(storageBillInfo.getTypeConfigId())){
-                List<RollOutShippDetails> rollOutShippDetailsList = rollOutShippDetailsService.list(new LambdaQueryWrapper<RollOutShippDetails>()
-                        .eq(RollOutShippDetails::getStorageBillId, storageBill.getId()));
-                if (oConvertUtils.listIsEmpty(billetAutoTmpList)){
+                List<RollOutShippDetails> rollOutShippDetailsList = rollOutShippDetailsService.list(new LambdaQueryWrapper<RollOutShippDetails>().eq(RollOutShippDetails::getStorageBillId, storageBill.getId()));
+                if (oConvertUtils.listIsEmpty(rollOutShippDetailsList)){
                     result.put("fail", "去上若钢坯装运明细不存在,车位发车失败!");
                     return result;
                 }