|
|
@@ -186,6 +186,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
.gt(PtlAgreementProductCostsNew::getCostsEndDate, LocalDateTime.now());
|
|
|
}
|
|
|
}
|
|
|
+ ptlAgreementProductCostsNewLambdaQueryWrapper.eq(agreementProductQueryVo.getValidStatus() != null, PtlAgreementProductCostsNew::getValidStatus, agreementProductQueryVo.getValidStatus());
|
|
|
//统配描述
|
|
|
if (agreementProductQueryVo.getDesc() != null) {
|
|
|
ptlAgreementProductCostsNewLambdaQueryWrapper.like(PtlAgreementProductCostsNew::getDesc, agreementProductQueryVo.getDesc());
|
|
|
@@ -792,7 +793,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
}
|
|
|
|
|
|
PtlAgreementProductCostsNew old = getById(agreementProductCosts.getId());
|
|
|
- if (!AgreementProductCostsAuditStatus.COSTS_AUDIT_STATUS_3.getCode().equals(old.getIsAudit())) {
|
|
|
+ if (!ValidStatus.AVS_0.getCode().equals(old.getIsAudit())) {
|
|
|
throw new SystemException("请先禁用后再编辑修改费用");
|
|
|
}
|
|
|
//更新费用主表信息
|
|
|
@@ -2459,16 +2460,15 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
.list();
|
|
|
|
|
|
List<String> insFeeOrderIdList = insFeeOrderNews.stream().map(InsFeeOrderNew::getCostsId).collect(Collectors.toList());
|
|
|
- if (insFeeOrderIdList.isEmpty()) {
|
|
|
- return HttpResult.ok("修改成功");
|
|
|
+ if (!insFeeOrderIdList.isEmpty()) {
|
|
|
+ // 修改订单二维码状态
|
|
|
+ insAreaCompanyService.lambdaUpdate()
|
|
|
+ .set(InsAreaCompany::getCodeValidStatus, ValidStatus.AVS_0.getCode())
|
|
|
+ .in(InsAreaCompany::getId, insFeeOrderIdList)
|
|
|
+ .update();
|
|
|
}
|
|
|
|
|
|
- // 修改订单二维码状态
|
|
|
- insAreaCompanyService.lambdaUpdate()
|
|
|
- .set(InsAreaCompany::getCodeValidStatus, ValidStatus.AVS_0.getCode())
|
|
|
- .in(InsAreaCompany::getId, insFeeOrderIdList)
|
|
|
- .update();
|
|
|
- ptlAgreementProductCostsNew.setIsAudit(AgreementProductCostsAuditStatus.COSTS_AUDIT_STATUS_3.getCode());
|
|
|
+ ptlAgreementProductCostsNew.setValidStatus(ValidStatus.AVS_0.getCode());
|
|
|
boolean b = updateById(ptlAgreementProductCostsNew);
|
|
|
AssertionUtils.isSucceed(b, "修改费用状态失败");
|
|
|
return HttpResult.ok("修改成功");
|
|
|
@@ -2493,18 +2493,15 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
.list();
|
|
|
|
|
|
List<String> insFeeOrderIdList = insFeeOrderNews.stream().map(InsFeeOrderNew::getCostsId).collect(Collectors.toList());
|
|
|
- if (insFeeOrderIdList.isEmpty()) {
|
|
|
- return HttpResult.ok("修改成功");
|
|
|
+ if (!insFeeOrderIdList.isEmpty()) {
|
|
|
+ // 修改订单二维码状态
|
|
|
+ insAreaCompanyService.lambdaUpdate()
|
|
|
+ .set(InsAreaCompany::getCodeValidStatus, ValidStatus.AVS_0.getCode())
|
|
|
+ .in(InsAreaCompany::getId, insFeeOrderIdList)
|
|
|
+ .update();
|
|
|
}
|
|
|
|
|
|
- // 修改订单二维码状态
|
|
|
- insAreaCompanyService.lambdaUpdate()
|
|
|
- .set(InsAreaCompany::getCodeValidStatus, ValidStatus.AVS_0.getCode())
|
|
|
- .in(InsAreaCompany::getId, insFeeOrderIdList)
|
|
|
- .update();
|
|
|
-
|
|
|
- list.forEach(ptlAgreementProductCostsNew -> ptlAgreementProductCostsNew.setIsAudit(AgreementProductCostsAuditStatus.COSTS_AUDIT_STATUS_3.getCode()));
|
|
|
-
|
|
|
+ list.forEach(ptlAgreementProductCostsNew -> ptlAgreementProductCostsNew.setValidStatus(ValidStatus.AVS_0.getCode()));
|
|
|
boolean b = updateBatchById(list);
|
|
|
AssertionUtils.isSucceed(b, "修改费用状态失败");
|
|
|
return HttpResult.ok("修改成功");
|