Commit 596fa692 by huluobin

# 费用系统 管理成本

parent 0f44b3c5
...@@ -27,4 +27,7 @@ public class CostTypeAddReq { ...@@ -27,4 +27,7 @@ public class CostTypeAddReq {
@ApiModelProperty("1-费用类型 2-收入类型") @ApiModelProperty("1-费用类型 2-收入类型")
private Integer type; private Integer type;
@ApiModelProperty("是否管理成本")
private Boolean isMangeCost;
} }
...@@ -29,5 +29,7 @@ public class CostTypeModifyReq { ...@@ -29,5 +29,7 @@ public class CostTypeModifyReq {
private Integer currentUserId; private Integer currentUserId;
@ApiModelProperty("是否管理成本")
private Boolean isMangeCost;
} }
...@@ -47,6 +47,8 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain ...@@ -47,6 +47,8 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain.setTypeName(req.getTypeName()); costTypeDomain.setTypeName(req.getTypeName());
costTypeDomain.setDescription(req.getDescription()); costTypeDomain.setDescription(req.getDescription());
costTypeDomain.setIsManageCost(req.getIsMangeCost());
costTypeDomain.setCostTemplateType(this.getCostTemplateType(req.getType())); costTypeDomain.setCostTemplateType(this.getCostTemplateType(req.getType()));
this.save(costTypeDomain); this.save(costTypeDomain);
...@@ -86,6 +88,8 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain ...@@ -86,6 +88,8 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain.setLastUpdateTime(LocalDateTime.now()); costTypeDomain.setLastUpdateTime(LocalDateTime.now());
costTypeDomain.setAccountingSubjectNo(req.getAccountingSubjectNo()); costTypeDomain.setAccountingSubjectNo(req.getAccountingSubjectNo());
costTypeDomain.setIsManageCost(req.getIsMangeCost());
log.info("{} 更新会计一级科目", oaUser.getUserName()); log.info("{} 更新会计一级科目", oaUser.getUserName());
this.updateById(costTypeDomain); this.updateById(costTypeDomain);
......
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