diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 5240a53..60cfbad 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -12,6 +12,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.RequestParamsUtil; import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.StringUtils; @@ -188,6 +189,9 @@ public class AppController extends BaseController { TRecord tRecord = new TRecord(); BeanUtils.copyProperties(appRecordReq, tRecord); + if (null == tRecord.getAiResultModifyTime()) { + tRecord.setAiResultModifyTime(DateUtils.getNowDate()); + } return AjaxResult.success(tRecordService.updateTRecord(tRecord)); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java index c4f06db..2cb2a35 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java @@ -81,9 +81,6 @@ public class TRecordServiceImpl implements ITRecordService public int updateTRecord(TRecord tRecord) { tRecord.setUpdateTime(DateUtils.getNowDate()); - if (null == tRecord.getAiResultModifyTime()) { - tRecord.setAiResultModifyTime(DateUtils.getNowDate()); - } return tRecordMapper.updateTRecord(tRecord); }