瀏覽代碼

1.支付码根据协议的状态置为失效。

wks 1 年之前
父節點
當前提交
8fc6c39e41

+ 1 - 1
src/main/java/com/ydtech/modules/protocols/controller/PtlNewAgreementController.java

@@ -113,7 +113,7 @@ public class PtlNewAgreementController extends BaseController {
 
 
     @ApiOperation(value = "通过id禁用费用")
     @ApiOperation(value = "通过id禁用费用")
     @PostMapping("/costs/disable/{costsId}")
     @PostMapping("/costs/disable/{costsId}")
-    public HttpResult costsDisable(@RequestBody CostsBatchDisableVo costsBatchDisableVo, @PathVariable String costsId) {
+    public HttpResult costsDisable(@PathVariable String costsId) {
         return ptlAgreementProductCostsNewService.costsDisable(costsId);
         return ptlAgreementProductCostsNewService.costsDisable(costsId);
     }
     }
 
 

+ 2 - 1
src/main/java/com/ydtech/modules/protocols/service/impl/PtlAgreementProductCostsNewServiceImpl.java

@@ -793,7 +793,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
         }
         }
 
 
         PtlAgreementProductCostsNew old = getById(agreementProductCosts.getId());
         PtlAgreementProductCostsNew old = getById(agreementProductCosts.getId());
-        if (!ValidStatus.AVS_0.getCode().equals(old.getIsAudit())) {
+        if (!ValidStatus.AVS_0.getCode().equals(old.getValidStatus())) {
             throw new SystemException("请先禁用后再编辑修改费用");
             throw new SystemException("请先禁用后再编辑修改费用");
         }
         }
         //更新费用主表信息
         //更新费用主表信息
@@ -801,6 +801,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
         PtlAgreementProductCostsNew ptlAgreementProductCostsNew = new PtlAgreementProductCostsNew();
         PtlAgreementProductCostsNew ptlAgreementProductCostsNew = new PtlAgreementProductCostsNew();
         BeanUtils.copyProperties(agreementProductCosts, ptlAgreementProductCostsNew);
         BeanUtils.copyProperties(agreementProductCosts, ptlAgreementProductCostsNew);
         //修改审核状态为未审核
         //修改审核状态为未审核
+        ptlAgreementProductCostsNew.setValidStatus(ValidStatus.AVS_1.getCode());
         ptlAgreementProductCostsNew.setCreateBy(old.getCreateBy());
         ptlAgreementProductCostsNew.setCreateBy(old.getCreateBy());
         ptlAgreementProductCostsNew.setCreateTime(old.getCreateTime());
         ptlAgreementProductCostsNew.setCreateTime(old.getCreateTime());
         ptlAgreementProductCostsNew.setIsAudit(0);
         ptlAgreementProductCostsNew.setIsAudit(0);