Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-message-channel
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 50a6223d
authored
Apr 14, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]pulsar消费服务
1 parent
3f35cdbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/resources/mapper/SmartSceneDataMapper.xml
src/main/resources/mapper/SmartSceneDataMapper.xml
View file @
50a6223
...
...
@@ -23,10 +23,10 @@
</sql>
<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
where device_id=#{deviceId} and param_key='scene_condition_status'
where device_id=#{deviceId} and param_key='scene_condition_status'
and t2.status=1
</select>
<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
where scene_id=#{sceneId} and (param_key='scene_condition_status' or param_key='scene_condition_time')
where scene_id=#{sceneId} and (param_key='scene_condition_status' or param_key='scene_condition_time')
and t2.status=1
</select>
</mapper>
\ No newline at end of file
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