Commit d9bd51bf by 111-PC\111

[+]kafka消费数据修改

1 parent 79dd3e4a
...@@ -5,15 +5,15 @@ ...@@ -5,15 +5,15 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id"/>
<result column="scene_id" jdbcType="BIGINT" property="sceneId" /> <result column="scene_id" jdbcType="BIGINT" property="sceneId"/>
<result column="type" jdbcType="TINYINT" property="type" /> <result column="type" jdbcType="TINYINT" property="type"/>
<result column="sort" jdbcType="TINYINT" property="sort" /> <result column="sort" jdbcType="TINYINT" property="sort"/>
<result column="param_key" jdbcType="VARCHAR" property="paramKey" /> <result column="param_key" jdbcType="VARCHAR" property="paramKey"/>
<result column="device_id" jdbcType="VARCHAR" property="deviceId" /> <result column="device_id" jdbcType="VARCHAR" property="deviceId"/>
<result column="param_value" jdbcType="VARCHAR" property="paramValue" /> <result column="param_value" jdbcType="VARCHAR" property="paramValue"/>
<result column="condition_rule" jdbcType="TINYINT" property="conditionRule" /> <result column="condition_rule" jdbcType="TINYINT" property="conditionRule"/>
<result column="execute_cycle" jdbcType="TINYINT" property="executeCycle" /> <result column="execute_cycle" jdbcType="TINYINT" property="executeCycle"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
id, scene_id, `type`, sort, param_key, device_id, param_value id, scene_id, `type`, sort, param_key, device_id, param_value
</sql> </sql>
<select id="findSceneDataByDeviceId" resultMap="BaseResultMap"> <select id="findSceneDataByDeviceId" resultMap="BaseResultMap">
select t1.*,t2.condition_rule,t2.execute_cycle from smart_scene_data t1 left join smart_scene t2 on t1.scene_id=t2.id select t1.scene_id,t2.condition_rule,t2.execute_cycle from smart_scene t2 left join smart_scene_data t1 on t1.scene_id=t2.id
where device_id=#{deviceId} and param_key='scene_condition_status' and t2.status=1 where device_id=#{deviceId} and param_key='scene_condition_status' and t2.status=1 GROUP BY t1.scene_id
</select> </select>
<select id="findBySceneId" resultMap="BaseResultMap"> <select id="findBySceneId" resultMap="BaseResultMap">
select t1.*,t2.condition_rule,t2.execute_cycle from smart_scene_data t1 left join smart_scene t2 on t1.scene_id=t2.id select t1.*,t2.condition_rule,t2.execute_cycle from smart_scene_data t1 left join smart_scene t2 on t1.scene_id=t2.id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!