Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-device-kafka-consumer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d9bd51bf
authored
Apr 15, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]kafka消费数据修改
1 parent
79dd3e4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
src/main/resources/mapper/SmartSceneDataMapper.xml
src/main/resources/mapper/SmartSceneDataMapper.xml
View file @
d9bd51b
<?xml version="1.0" encoding="UTF-8"?>
<?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">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.com.glsx.smart.mapper.SmartSceneDataMapper"
>
<mapper
namespace=
"cn.com.glsx.smart.mapper.SmartSceneDataMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.smart.entity.SmartSceneData"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.smart.entity.SmartSceneData"
>
<!--
<!--
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"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
-->
-->
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
where scene_id=#{sceneId} and (param_key='scene_condition_status' or param_key='scene_condition_time') and t2.status=1
where scene_id=#{sceneId} and (param_key='scene_condition_status' or param_key='scene_condition_time') and t2.status=1
</select>
</select>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment