feat: 物联平台分支创建及代码整合。

This commit is contained in:
tianyongbao
2025-04-24 17:17:51 +08:00
parent e07a24c892
commit 766a707788
627 changed files with 63729 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.intc.tdengine.mapper.DataDemoMapper">
<insert id="createTableT" parameterType="RealTimeDataT">
create table if not exists
pg_d.t${tagId}
USING pg_d.pg_monitor_data(buildingId,valueType,tagId,deviceId,tagShowType,tagTypeId)
TAGS (#{buildingId}, #{valueType}, #{tagId}, #{deviceId}, #{tagShowType}, #{tagTypeId})
</insert>
<insert id="insertRealTimeDataT" parameterType="RealTimeDataT">
insert into pg_d.t${tagId} VALUES (#{dataTime},NOW, #{val});
</insert>
<update id="createSuperTable">
create table if not exists
pg_d.pg_monitor_data(time timestamp,createTime timestamp, val nchar(100))
tags(buildingId nchar(100),valueType nchar(10), tagId nchar(100),deviceId nchar(100),tagShowType nchar(50),tagTypeId nchar(100))
</update>
</mapper>