gongdecai há 3 anos atrás
pai
commit
9e1d32a022

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

@@ -159,8 +159,11 @@ public class TranProcessInfoServiceImpl extends ServiceImpl<TranProcessInfoMappe
         ContractManagementInfo contractManagementInfo=contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
         ContractManagementInfo contractManagementInfo=contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
                 .eq("contract_no",tranProcessInfo.getContractNo())
                 .eq("contract_no",tranProcessInfo.getContractNo())
                 .eq("comp_id",tranTaskInfo.getCompId()));
                 .eq("comp_id",tranTaskInfo.getCompId()));
-        if (contractManagementInfo.getPriceType()!=null) {
-            tranProcessInfo.setPriceType(contractManagementInfo.getPriceType());
+        if(contractManagementInfo != null){
+            if (contractManagementInfo.getPriceType()!=null) {
+                tranProcessInfo.setPriceType(contractManagementInfo.getPriceType());
+            }
+
         }
         }
         //查看车次信息
         //查看车次信息
         List<TranCarInfo> tranCarInfoList = tranCarInfoService.selectList(new EntityWrapper<TranCarInfo>()
         List<TranCarInfo> tranCarInfoList = tranCarInfoService.selectList(new EntityWrapper<TranCarInfo>()