浏览代码

发票bug修复

chenjun 7 月之前
父节点
当前提交
015734d520

+ 1 - 1
zjugis-business/src/main/java/com/zjugis/business/flow/contractinvoice/service/FlowContractInvoiceService.java

@@ -170,7 +170,7 @@ public class FlowContractInvoiceService {
         if (relations.size() == 1) {
             ContractInvoiceRelation relation = relations.get(0);
             relation.setInvoiceAmount(entity.getInvoiceAmount());
-            if(FlowStatusConstants.FLOW_NULLY==(entity.getFlowStatus())){
+            if(entity.getFlowStatus() != null && FlowStatusConstants.FLOW_NULLY == (entity.getFlowStatus())){
                 relation.setInvoiceAmount(null);
             }
             contractInvoiceRelationService.updateById(relation);