报工时间修改 新增汇率接口
This commit is contained in:
@@ -130,6 +130,10 @@ public class OaProjectReportServiceImpl implements IOaProjectReportService {
|
||||
@Override
|
||||
public Boolean updateByBo(OaProjectReportBo bo) {
|
||||
OaProjectReport update = BeanUtil.toBean(bo, OaProjectReport.class);
|
||||
// 如果time字段不为空,则用time覆盖createTime
|
||||
if (bo.getTime() != null) {
|
||||
update.setCreateTime(bo.getTime());
|
||||
}
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user