소스 검색

验收单 暂存后再提交 前端没有传验收单编号

zhangc 6 달 전
부모
커밋
c5b540cdb3
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      src/main/java/com/inkasso/factoring/acceptanceManagement/service/impl/CAcceptanceBasicInfoServiceImpl.java

+ 4 - 3
src/main/java/com/inkasso/factoring/acceptanceManagement/service/impl/CAcceptanceBasicInfoServiceImpl.java

@@ -332,9 +332,10 @@ public class CAcceptanceBasicInfoServiceImpl extends ServiceImpl<CAcceptanceBasi
             //更新
             updateAcceptanceSheet(acceptanceBasicInfo,request);
             //前端没有传验收单编号
-            String acceptanceNumber = this.getById(acceptanceBasicInfo.getId())
-                .getAcceptanceNumber();
-            acceptanceBasicInfo.setAcceptanceNumber(acceptanceNumber);
+            CAcceptanceBasicInfo byId = this.getById(acceptanceBasicInfo.getId());
+            if(byId!=null){
+                acceptanceBasicInfo.setAcceptanceNumber(byId.getAcceptanceNumber());
+            }
             updateById(acceptanceBasicInfo);
         } else {
             //保存验收单信息