设备数据上传服务记录时间ts修改成设备上传数据的时间

breach-zhy
马雪伟 1 month ago
parent f41dcc7468
commit ece255f5ed

@ -141,7 +141,9 @@ public class DataProcessServiceImpl extends CommanHandleService implements IData
//添加timestamp字段默认字段名称是ts协议上传的key是timestamp //添加timestamp字段默认字段名称是ts协议上传的key是timestamp
TdField firstTdField = new TdField(); TdField firstTdField = new TdField();
firstTdField.setFieldName(TdEngineConstants.DEFAULT_FIRST_FIELD_NAME); firstTdField.setFieldName(TdEngineConstants.DEFAULT_FIRST_FIELD_NAME);
firstTdField.setFieldValue(ts); long currentTimeMillis = System.currentTimeMillis();
firstTdField.setFieldValue(currentTimeMillis);
// firstTdField.setFieldValue(ts);
schemaFields.add(firstTdField); schemaFields.add(firstTdField);
Object longitude = null; Object longitude = null;

@ -13,6 +13,8 @@ import com.ruoyi.common.core.utils.file.FileUtils;
import com.ruoyi.file.service.ISysFileService; import com.ruoyi.file.service.ISysFileService;
import com.ruoyi.system.api.domain.SysFile; 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 { public class SysFileController {
private static final Logger log = LoggerFactory.getLogger(SysFileController.class); private static final Logger log = LoggerFactory.getLogger(SysFileController.class);
// @Resource(name = "LocalSysFileService")
@Autowired @Autowired
private ISysFileService sysFileService; private ISysFileService sysFileService;

Loading…
Cancel
Save