Commit ccd9f174 by huluobin

# update

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