Commit af59f1ed by huluobin

update bug fix

parent 175c1286
......@@ -69,7 +69,7 @@ public interface CostApi {
@ApiOperation("获取费用系统列表")
@GetMapping({"/getCostList"})
CostResult<List<CostDto>> getCostList(@RequestParam(name = "startDate") String startDate,
CostResult<List<CostDto>> getCostList(@RequestParam(name = "startDate") String stKartDate,
@RequestParam(name = "endDate") String endDate,
@RequestParam(name = "pageNum") Integer pageNum,
@RequestParam(name = "pageSize") Integer pageSize);
......
......@@ -248,6 +248,14 @@ public abstract class AbstractCostService implements CostService {
costDomain.setCostNo(costNo);
costDomain.setCostStatus(i);
costDomain.setLastModifyDate(LocalDateTime.now());
if (costDomain.getCostStatus().equals(5)) {
//释放已申请的金额
CostDomain supCost = costDao.selectByCostNo(costDomain.getSupCostNo());
supCost.setRepaymentAppliedAmount(supCost.getRepaymentAppliedAmount().subtract(costDomain.getAmount()));
supCost.setLastModifyDate(LocalDateTime.now());
costDao.updateById(supCost);
}
return costDao.update(costDomain, new LambdaQueryWrapper<CostDomain>()
.eq(CostDomain::getCostNo, costDomain.getCostNo()));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment