Quellcode durchsuchen

提示位置错误处理

yzc vor 1 Jahr
Ursprung
Commit
75a761706d

+ 1 - 1
hx-purchase/src/main/java/com/fjhx/purchase/flow/RefundFlow.java

@@ -66,7 +66,7 @@ public class RefundFlow extends FlowDelegate {
      */
     private Refund commStart(Refund refund, Integer opType) {
         if (opType == 1) {
-            Assert.notEmpty(refund.getId(), "采购付款id不能为空");
+            Assert.notEmpty(refund.getId(), "退款id不能为空");
         }
         refund.setStatus(PayStatusEnum.UNDER_REVIEW.getKey());
         refundService.saveOrUpdate(refund);

+ 1 - 1
hx-purchase/src/main/java/com/fjhx/purchase/flow/SalesReturnFlow.java

@@ -85,7 +85,7 @@ public class SalesReturnFlow extends FlowDelegate {
      */
     private SalesReturn commStart(SalesReturn salesReturn, Integer opType) {
         if (opType == 1) {
-            Assert.notEmpty(salesReturn.getId(), "采购付款id不能为空");
+            Assert.notEmpty(salesReturn.getId(), "退货id不能为空");
         }
         salesReturnService.saveOrUpdate(salesReturn);
         List<SalesReturnDetail> salesReturnDetailList = salesReturn.getSalesReturnDetailList();

+ 3 - 0
hx-sale/src/main/java/com/fjhx/sale/flow/ContractUpdateFlow.java

@@ -4,6 +4,7 @@ import cn.hutool.core.util.ObjectUtil;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
 import com.fjhx.common.enums.FlowStatusEnum1;
+import com.fjhx.common.utils.Assert;
 import com.fjhx.flow.core.FlowDelegate;
 import com.fjhx.flow.enums.FlowStatusEnum;
 import com.fjhx.sale.entity.contract.dto.ContractDto;
@@ -146,6 +147,8 @@ public class ContractUpdateFlow extends FlowDelegate {
     private void reStart(JSONObject submitData) {
         ContractDto contract = submitData.toJavaObject(ContractDto.class);
 
+        Assert.notEmpty(contract.getId(), "合同id不能为空");
+
         //变更合同需要提前操作数据
         contract = opDate(contract);
 

+ 2 - 0
hx-sale/src/main/java/com/fjhx/sale/flow/SaleQuotationFlow.java

@@ -10,6 +10,7 @@ import com.fjhx.common.constant.SourceConstant;
 import com.fjhx.common.enums.CodingRuleEnum;
 import com.fjhx.common.enums.FlowStatusEnum1;
 import com.fjhx.common.service.coding.CodingRuleService;
+import com.fjhx.common.utils.Assert;
 import com.fjhx.flow.core.FlowDelegate;
 import com.fjhx.flow.enums.FlowStatusEnum;
 import com.fjhx.sale.entity.quotation.po.QuotationPay;
@@ -91,6 +92,7 @@ public class SaleQuotationFlow extends FlowDelegate {
         //重新发起
         if (FlowStatusEnum.READY_START.equals(flowStatusEnum)) {
             SaleQuotationDto saleQuotation = submitData.toJavaObject(SaleQuotationDto.class);
+            Assert.notEmpty(saleQuotation.getId(), "报价单id不能为空");
             commStart(saleQuotation, 1);
         }
         //驳回

+ 3 - 0
hx-sale/src/main/java/com/fjhx/sale/flow/ServiceContractFlow.java

@@ -10,6 +10,7 @@ import com.fjhx.common.constant.SourceConstant;
 import com.fjhx.common.enums.CodingRuleEnum;
 import com.fjhx.common.enums.FlowStatusEnum1;
 import com.fjhx.common.service.coding.CodingRuleService;
+import com.fjhx.common.utils.Assert;
 import com.fjhx.flow.core.FlowDelegate;
 import com.fjhx.flow.core.FlowThreadLocalUtil;
 import com.fjhx.flow.enums.FlowStatusEnum;
@@ -130,6 +131,8 @@ public class ServiceContractFlow extends FlowDelegate {
     private void reStart(JSONObject submitData) {
         ServiceContractDto contract = submitData.toJavaObject(ServiceContractDto.class);
 
+        Assert.notEmpty(contract.getId(), "服务合同id不能为空");
+
         //赋值城市省份信息
         CustomizeAreaUtil.setAreaId(contract);