Commit 472d94f0 by huluobin

# fee

parent 7b1db6b6
...@@ -28,6 +28,6 @@ public class CostTypeAddReq { ...@@ -28,6 +28,6 @@ public class CostTypeAddReq {
private Integer type; private Integer type;
@ApiModelProperty("是否管理成本") @ApiModelProperty("是否管理成本")
private Boolean isMangeCost; private Boolean isManageCost;
} }
package com.blt.other.module.cost.service.impl; package com.blt.other.module.cost.service.impl;
import com.bailuntec.common.StringUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blt.other.module.auth.dao.OaUserMapper; import com.blt.other.module.auth.dao.OaUserMapper;
import com.blt.other.module.auth.model.OaUser; import com.blt.other.module.auth.model.OaUser;
...@@ -59,7 +60,9 @@ public class AccountingSubjectServiceImpl extends ServiceImpl<AccountingSubjectM ...@@ -59,7 +60,9 @@ public class AccountingSubjectServiceImpl extends ServiceImpl<AccountingSubjectM
accountingSubject.setUpdateUser(oaUser.getUserName()); accountingSubject.setUpdateUser(oaUser.getUserName());
accountingSubject.setLastUpdateTime(LocalDateTime.now()); accountingSubject.setLastUpdateTime(LocalDateTime.now());
if (StringUtils.isNotEmpty(req.getName())) {
accountingSubject.setName(req.getName()); accountingSubject.setName(req.getName());
}
baseMapper.updateById(accountingSubject); baseMapper.updateById(accountingSubject);
} }
} }
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