459242451@qq.com 3 лет назад
Родитель
Сommit
7b5df91a70

+ 1 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/QdCommonServiceImpl.java

@@ -109,6 +109,7 @@ public class QdCommonServiceImpl implements IQdCommonService {
         paramMap.put("startTime", startTime);
         paramMap.put("endTime", endTime);
         paramMap.put("pageSize", 5000);
+        log.info("查询巡检记录--->请求参数:{}", paramMap);
         String get = HttpRequest.get(xuncheckpointLogUrl).form(paramMap).header("Authorization", this.getXunToken()).execute().body();
         JSONObject getJson = JSONUtil.parseObj(get);
         if (200 == getJson.getInt("code")) {

+ 4 - 1
ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/TlInspectionLocationLogServiceImpl.java

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