Commit a6028152 by huluobin

# update

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