|
@@ -1,5 +1,6 @@
|
|
|
package com.ruoyi.qdtl.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
import com.ruoyi.qdtl.domain.TlInspectionLocationLog;
|
|
|
import com.ruoyi.qdtl.mapper.TlInspectionLocationLogMapper;
|
|
@@ -51,7 +52,9 @@ public class TlInspectionLocationLogServiceImpl implements ITlInspectionLocation
|
|
|
*/
|
|
|
@Override
|
|
|
public int insertTlInspectionLocationLog(TlInspectionLocationLog tlInspectionLocationLog) {
|
|
|
- tlInspectionLocationLog.setCreateTime(DateUtils.getNowDate());
|
|
|
+ if (ObjectUtil.isNull(tlInspectionLocationLog.getCreateTime())) {
|
|
|
+ tlInspectionLocationLog.setCreateTime(DateUtils.getNowDate());
|
|
|
+ }
|
|
|
return tlInspectionLocationLogMapper.insertTlInspectionLocationLog(tlInspectionLocationLog);
|
|
|
}
|
|
|
|