fubin 1 год назад
Родитель
Сommit
78c10e5b2d

+ 3 - 0
src/main/java/com/dk/mdm/service/mac/PaymentService.java

@@ -268,6 +268,9 @@ public class PaymentService extends BaseService<RecPay> {
         if (!recPayForUpdate.getFlgValid()) {
             throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.ISFLGVALID_FALSE.getMessage());
         }
+        if(recPayForUpdate.getBiznisId() != null){
+            throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVOICE_FORBID_EDIT.getMessage());
+        }
         // 如果所在月份已结账,则不能作废 todo
 
         // 查出并锁定所有应付核销明细

+ 3 - 0
src/main/java/com/dk/mdm/service/mac/ReceiptService.java

@@ -521,6 +521,9 @@ public class ReceiptService extends BaseService<RecPay> {
         if (!recPayForUpdate.getFlgValid()) {
             throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.ISFLGVALID_FALSE.getMessage());
         }
+        if(recPayForUpdate.getBiznisId() != null){
+            throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVOICE_FORBID_EDIT.getMessage());
+        }
         // 如果所在月份已结账,则不能作废 todo
 
         // 查出并锁定所有应收核销明细