Commit a6028152 by huluobin

# update

parent 2717fe96
......@@ -54,7 +54,6 @@ public class CostTypeController {
return CostResult.success();
}
@ApiOperation("添加费用类型")
@PostMapping("/addCostType")
public CostResult<Void> addCostType(@RequestBody CostTypeAddReq req) {
......
......@@ -94,14 +94,18 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
if (costTypeDomain.getCostTemplateType().equals(CostTypeDomain.feeType)) {
CostTypeDomain lendCostTypeDomain = baseMapper.selectByNameAndType(costTypeDomain.getTypeName(), CostTypeDomain.borrow);
lendCostTypeDomain.setTypeName(req.getTypeName().trim());
lendCostTypeDomain.setDescription(req.getDescription());
lendCostTypeDomain.setUpdateUserId(oaUser.getOaUserId());
lendCostTypeDomain.setUpdateUser(oaUser.getUserName());
lendCostTypeDomain.setLastUpdateTime(LocalDateTime.now());
lendCostTypeDomain.setIsManageCost(req.getIsManageCost());
this.updateById(lendCostTypeDomain);
if (lendCostTypeDomain != null) {
lendCostTypeDomain.setTypeName(req.getTypeName().trim());
lendCostTypeDomain.setDescription(req.getDescription());
lendCostTypeDomain.setUpdateUserId(oaUser.getOaUserId());
lendCostTypeDomain.setUpdateUser(oaUser.getUserName());
lendCostTypeDomain.setLastUpdateTime(LocalDateTime.now());
lendCostTypeDomain.setIsManageCost(req.getIsManageCost());
this.updateById(lendCostTypeDomain);
}
}
costTypeDomain.setTypeName(req.getTypeName().trim());
......
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