Parcourir la source

设置默认责任中心

ljx il y a 4 ans
Parent
commit
9d44f9667e

+ 5 - 0
src/main/java/com/imed/costaccount/service/impl/CostCostingGroupServiceImpl.java

@@ -337,6 +337,11 @@ public class CostCostingGroupServiceImpl extends ServiceImpl<CostCostingGroupMap
                         // 设置统计数据
                         afterCostGroup.setOtherResponsibilityCode(responsibilityServiceOne.getResponsibilityCode());
                         afterCostGroup.setOtherResponsibilityName(responsibilityServiceOne.getResponsibilityName());
+                    }else {
+                        IncomeErrorMessage incomeErrorMessage = new IncomeErrorMessage();
+                        incomeErrorMessage.setTotal(row);
+                        incomeErrorMessage.setErrMessage("不存在默认责任中心");
+                        incomeErrorMessageList.add(incomeErrorMessage);
                     }
                     costCostingGroup.setProductCode(costCostingGroupRequest.getProductCode());
                     costCostingGroup.setProductName(costCostingGroupRequest.getProductName());