Commit ccd9f174 by huluobin

# update

parent 07f92a92
...@@ -25,7 +25,7 @@ public class CostTypeModifyReq { ...@@ -25,7 +25,7 @@ public class CostTypeModifyReq {
private String description; private String description;
@ApiModelProperty("会计一级科目") @ApiModelProperty("会计一级科目")
private String accountingSubjectNo; private Integer accountingSubjectId;
private Integer currentUserId; private Integer currentUserId;
......
...@@ -90,9 +90,9 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain ...@@ -90,9 +90,9 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain.setUpdateUser(oaUser.getUserName()); costTypeDomain.setUpdateUser(oaUser.getUserName());
costTypeDomain.setLastUpdateTime(LocalDateTime.now()); costTypeDomain.setLastUpdateTime(LocalDateTime.now());
AccountingSubject accountingSubject = accountingSubjectMapper.selectByNo(req.getAccountingSubjectNo()); if (req.getAccountingSubjectId() != null) {
costTypeDomain.setAccountingSubjectId(accountingSubject.getId()); costTypeDomain.setAccountingSubjectId(req.getAccountingSubjectId());
}
costTypeDomain.setIsManageCost(req.getIsManageCost()); costTypeDomain.setIsManageCost(req.getIsManageCost());
log.info("{} 更新会计一级科目", oaUser.getUserName()); log.info("{} 更新会计一级科目", oaUser.getUserName());
......
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