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,6 +94,8 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
if (costTypeDomain.getCostTemplateType().equals(CostTypeDomain.feeType)) {
CostTypeDomain lendCostTypeDomain = baseMapper.selectByNameAndType(costTypeDomain.getTypeName(), CostTypeDomain.borrow);
if (lendCostTypeDomain != null) {
lendCostTypeDomain.setTypeName(req.getTypeName().trim());
lendCostTypeDomain.setDescription(req.getDescription());
lendCostTypeDomain.setUpdateUserId(oaUser.getOaUserId());
......@@ -104,6 +106,8 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
this.updateById(lendCostTypeDomain);
}
}
costTypeDomain.setTypeName(req.getTypeName().trim());
costTypeDomain.setDescription(req.getDescription());
costTypeDomain.setUpdateUserId(oaUser.getOaUserId());
......
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