报工时间修改 新增汇率接口

This commit is contained in:
2025-07-04 10:40:26 +08:00
parent d542095080
commit 7fb6472b19
3 changed files with 42 additions and 0 deletions

View File

@@ -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;
}