Commit 67529bbf by huluobin

# 更新

parent 69214cfa
......@@ -29,6 +29,7 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -280,6 +281,18 @@ public class CostController {
costService = CostServiceFactory.getCostService(costNo);
costService.setStatus(costNo, 5);
//释放已申请的金额
CostDomain costDomain = costService.getCostByCostNo(costNo);
if (costDomain.getCostForm().equals(3) && costDomain.getIsLend().equals(2)) {
CostDomain supCost = costService.getCostByCostNo(costDomain.getSupCostNo());
supCost.setRepaymentAppliedAmount(supCost.getRepaymentAppliedAmount().subtract(costDomain.getAmount()));
supCost.setLastModifyDate(LocalDateTime.now());
costDao.updateById(supCost);
}
costLogService.save(costNo, costService.getCostByCostNo(costNo).getCreateUserid(), "作废费用单");
return CostResult.success();
}
......
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