|
@@ -304,18 +304,18 @@ public class MiddleMeterApplyServiceImpl extends BaseServiceImpl<MiddleMeterAppl
|
|
|
throw new ServiceException("请添加需要计量的清单");
|
|
|
}
|
|
|
this.save(apply);
|
|
|
- if (StringUtils.isNotBlank(apply.getCalculateFormula())) {
|
|
|
- //如果存在计算式,每次同步修改所有期的当前节点计算式
|
|
|
- this.update(new LambdaUpdateWrapper<MiddleMeterApply>()
|
|
|
- .eq(MiddleMeterApply::getContractId,dto.getContractId())
|
|
|
- .eq(MiddleMeterApply::getContractUnitId,dto.getContractUnitId())
|
|
|
- .set(MiddleMeterApply::getCalculateFormula,dto.getCalculateFormula()));
|
|
|
- //再同步修改合同计量单元当前节点的计算式
|
|
|
- meterTreeContractService.update(new LambdaUpdateWrapper<MeterTreeContract>()
|
|
|
- .eq(MeterTreeContract::getId,dto.getContractUnitId())
|
|
|
- .set(MeterTreeContract::getCalculateFormula,dto.getCalculateFormula()));
|
|
|
-
|
|
|
- }
|
|
|
+// if (StringUtils.isNotBlank(apply.getCalculateFormula())) {
|
|
|
+// //如果存在计算式,每次同步修改所有期的当前节点计算式
|
|
|
+// this.update(new LambdaUpdateWrapper<MiddleMeterApply>()
|
|
|
+// .eq(MiddleMeterApply::getContractId,dto.getContractId())
|
|
|
+// .eq(MiddleMeterApply::getContractUnitId,dto.getContractUnitId())
|
|
|
+// .set(MiddleMeterApply::getCalculateFormula,dto.getCalculateFormula()));
|
|
|
+// //再同步修改合同计量单元当前节点的计算式
|
|
|
+// meterTreeContractService.update(new LambdaUpdateWrapper<MeterTreeContract>()
|
|
|
+// .eq(MeterTreeContract::getId,dto.getContractUnitId())
|
|
|
+// .set(MeterTreeContract::getCalculateFormula,dto.getCalculateFormula()));
|
|
|
+//
|
|
|
+// }
|
|
|
|
|
|
|
|
|
}
|
|
@@ -503,18 +503,18 @@ public class MiddleMeterApplyServiceImpl extends BaseServiceImpl<MiddleMeterAppl
|
|
|
inventoryFormApplyService.saveBatch(formApplies);
|
|
|
}
|
|
|
this.updateById(apply);
|
|
|
- if (StringUtils.isNotBlank(apply.getCalculateFormula())) {
|
|
|
- //如果存在计算式,每次同步修改所有期的当前节点计算式
|
|
|
- this.update(new LambdaUpdateWrapper<MiddleMeterApply>()
|
|
|
- .eq(MiddleMeterApply::getContractId,dto.getContractId())
|
|
|
- .eq(MiddleMeterApply::getContractUnitId,dto.getContractUnitId())
|
|
|
- .set(MiddleMeterApply::getCalculateFormula,dto.getCalculateFormula()));
|
|
|
- //再同步修改合同计量单元当前节点的计算式
|
|
|
- meterTreeContractService.update(new LambdaUpdateWrapper<MeterTreeContract>()
|
|
|
- .eq(MeterTreeContract::getId,dto.getContractUnitId())
|
|
|
- .set(MeterTreeContract::getCalculateFormula,dto.getCalculateFormula()));
|
|
|
-
|
|
|
- }
|
|
|
+// if (StringUtils.isNotBlank(apply.getCalculateFormula())) {
|
|
|
+// //如果存在计算式,每次同步修改所有期的当前节点计算式
|
|
|
+// this.update(new LambdaUpdateWrapper<MiddleMeterApply>()
|
|
|
+// .eq(MiddleMeterApply::getContractId,dto.getContractId())
|
|
|
+// .eq(MiddleMeterApply::getContractUnitId,dto.getContractUnitId())
|
|
|
+// .set(MiddleMeterApply::getCalculateFormula,dto.getCalculateFormula()));
|
|
|
+// //再同步修改合同计量单元当前节点的计算式
|
|
|
+// meterTreeContractService.update(new LambdaUpdateWrapper<MeterTreeContract>()
|
|
|
+// .eq(MeterTreeContract::getId,dto.getContractUnitId())
|
|
|
+// .set(MeterTreeContract::getCalculateFormula,dto.getCalculateFormula()));
|
|
|
+//
|
|
|
+// }
|
|
|
|
|
|
}
|
|
|
|