lipenghui 3 сар өмнө
parent
commit
8c41117151

+ 11 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/stat/IotStaticController.java

@@ -19,10 +19,12 @@ import cn.iocoder.yudao.module.pms.service.inspect.IotInspectOrderService;
 import com.alibaba.fastjson.JSON;
 import com.google.common.collect.ImmutableMap;
 import io.swagger.v3.oas.annotations.tags.Tag;
+import org.apache.commons.lang3.StringUtils;
 import org.jetbrains.annotations.NotNull;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -293,4 +295,13 @@ public class IotStaticController {
         });
         return CommonResult.success(resultMap);
     }
+
+    @GetMapping("/td/chart/{identifier}")
+    public CommonResult<Map<String, String>> getTdChart(@PathVariable("identifier") String identifier) {
+        if (StringUtils.isBlank(identifier)) {
+            return null;
+        }
+
+
+    }
 }

+ 4 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/TDDeviceMapper.java

@@ -78,4 +78,8 @@ public interface TDDeviceMapper extends BaseMapperX<TDDeviceDO> {
     @DS("tdengine")
     @TenantIgnore
     DeviceVO getYesInfo(@Param("deviceName") String tableName,@Param("colName") String colName);
+
+
+
+    List<DeviceVO> selectAllBtTime(@Param("deviceName") String tableName, @Param("identifier") String identifier);
 }