From ece255f5ed72e4da8b8cb58338f65e680ad23238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=9B=AA=E4=BC=9F?= Date: Thu, 24 Oct 2024 14:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=95=B0=E6=8D=AE=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=9C=8D=E5=8A=A1=E8=AE=B0=E5=BD=95=E6=97=B6=E9=97=B4?= =?UTF-8?q?ts=E4=BF=AE=E6=94=B9=E6=88=90=E8=AE=BE=E5=A4=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=95=B0=E6=8D=AE=E7=9A=84=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataprocess/service/impl/DataProcessServiceImpl.java | 4 +++- .../java/com/ruoyi/file/controller/SysFileController.java | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ruoyi-modules/hw-data-process/src/main/java/com/ruoyi/dataprocess/service/impl/DataProcessServiceImpl.java b/ruoyi-modules/hw-data-process/src/main/java/com/ruoyi/dataprocess/service/impl/DataProcessServiceImpl.java index 50d0ef6..622567a 100644 --- a/ruoyi-modules/hw-data-process/src/main/java/com/ruoyi/dataprocess/service/impl/DataProcessServiceImpl.java +++ b/ruoyi-modules/hw-data-process/src/main/java/com/ruoyi/dataprocess/service/impl/DataProcessServiceImpl.java @@ -141,7 +141,9 @@ public class DataProcessServiceImpl extends CommanHandleService implements IData //添加timestamp字段,默认字段名称是ts,协议上传的key是timestamp TdField firstTdField = new TdField(); firstTdField.setFieldName(TdEngineConstants.DEFAULT_FIRST_FIELD_NAME); - firstTdField.setFieldValue(ts); + long currentTimeMillis = System.currentTimeMillis(); + firstTdField.setFieldValue(currentTimeMillis); +// firstTdField.setFieldValue(ts); schemaFields.add(firstTdField); Object longitude = null; diff --git a/ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/controller/SysFileController.java b/ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/controller/SysFileController.java index 30a4fbf..065a41e 100644 --- a/ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/controller/SysFileController.java +++ b/ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/controller/SysFileController.java @@ -13,6 +13,8 @@ import com.ruoyi.common.core.utils.file.FileUtils; import com.ruoyi.file.service.ISysFileService; import com.ruoyi.system.api.domain.SysFile; +import javax.annotation.Resource; + /** * 文件请求处理 * @@ -22,6 +24,7 @@ import com.ruoyi.system.api.domain.SysFile; public class SysFileController { private static final Logger log = LoggerFactory.getLogger(SysFileController.class); +// @Resource(name = "LocalSysFileService") @Autowired private ISysFileService sysFileService;