调整AI结果修改时间

master
gongzhenkun 2 years ago
parent 30c3eaa7fe
commit 7545d48288

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

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

Loading…
Cancel
Save