ccj 2 năm trước cách đây
mục cha
commit
195709321d

+ 6 - 2
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/ContractManagementInfoServiceImpl.java

@@ -3024,8 +3024,12 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
                 }
 
             }
-            contractManagementInfo.setTranCarInfoList(newCarList);
-            contractManagementInfo.setTranCarInfoList1(newCarList1);
+            if(newCarList.size() > 0){
+                contractManagementInfo.setTranCarInfoList(newCarList);
+            }
+            if(newCarList1.size() > 0){
+                contractManagementInfo.setTranCarInfoList1(newCarList1);
+            }
             //查船名
             Wrapper<TranCarInfo> shipListWrapper = new EntityWrapper<>();
             shipListWrapper.eq("contract_no", contractManagementInfo.getContractNo())