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,14 +94,18 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain ...@@ -94,14 +94,18 @@ 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);
lendCostTypeDomain.setTypeName(req.getTypeName().trim());
lendCostTypeDomain.setDescription(req.getDescription()); if (lendCostTypeDomain != null) {
lendCostTypeDomain.setUpdateUserId(oaUser.getOaUserId()); lendCostTypeDomain.setTypeName(req.getTypeName().trim());
lendCostTypeDomain.setUpdateUser(oaUser.getUserName()); lendCostTypeDomain.setDescription(req.getDescription());
lendCostTypeDomain.setLastUpdateTime(LocalDateTime.now()); lendCostTypeDomain.setUpdateUserId(oaUser.getOaUserId());
lendCostTypeDomain.setIsManageCost(req.getIsManageCost()); lendCostTypeDomain.setUpdateUser(oaUser.getUserName());
lendCostTypeDomain.setLastUpdateTime(LocalDateTime.now());
this.updateById(lendCostTypeDomain); lendCostTypeDomain.setIsManageCost(req.getIsManageCost());
this.updateById(lendCostTypeDomain);
}
} }
costTypeDomain.setTypeName(req.getTypeName().trim()); 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