Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-bi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林锐标
slm-bi
Commits
32e82fcb
Commit
32e82fcb
authored
Apr 22, 2021
by
梁光意
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加判空条件
parent
f5c6b5b9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
InstrumentPanelGroupMapper.xml
...sources/mapper/mysql/panel/InstrumentPanelGroupMapper.xml
+2
-2
InstrumentPanelMapper.xml
...in/resources/mapper/mysql/panel/InstrumentPanelMapper.xml
+2
-2
InstrumentPanelTreeMapper.xml
...esources/mapper/mysql/panel/InstrumentPanelTreeMapper.xml
+1
-1
No files found.
src/main/resources/mapper/mysql/panel/InstrumentPanelGroupMapper.xml
View file @
32e82fcb
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</resultMap>
</resultMap>
<delete
id=
"batchUpdateGroupByIds"
>
<delete
id=
"batchUpdateGroupByIds"
>
update instrument_panel_group set record_status =#{recordStatus}
update instrument_panel_group set record_status =#{recordStatus}
<if
test=
"groupIds!=null"
>
<if
test=
"groupIds!=null
and groupIds.size() > 0
"
>
where id IN (
where id IN (
<foreach
collection=
"groupIds"
item=
"id"
separator=
","
>
<foreach
collection=
"groupIds"
item=
"id"
separator=
","
>
#{id}
#{id}
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</select>
</select>
<select
id=
"selectGroupByIds"
resultType=
"com.syc.slm.slmbi.vo.PanelTreeNodeVo"
>
<select
id=
"selectGroupByIds"
resultType=
"com.syc.slm.slmbi.vo.PanelTreeNodeVo"
>
select id,`name`,parent_id,'group' node_type from instrument_panel_group
select id,`name`,parent_id,'group' node_type from instrument_panel_group
<if
test=
"finalPanelIds!=null"
>
<if
test=
"finalPanelIds!=null
and finalPanelIds.size() > 0
"
>
where id IN (
where id IN (
<foreach
collection=
"finalPanelIds"
item=
"id"
separator=
","
>
<foreach
collection=
"finalPanelIds"
item=
"id"
separator=
","
>
#{id}
#{id}
...
...
src/main/resources/mapper/mysql/panel/InstrumentPanelMapper.xml
View file @
32e82fcb
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</resultMap>
</resultMap>
<update
id=
"batchUpdatePanelByIds"
>
<update
id=
"batchUpdatePanelByIds"
>
update instrument_panel set record_status =#{recordStatus}
update instrument_panel set record_status =#{recordStatus}
<if
test=
"panelIds!=null"
>
<if
test=
"panelIds!=null
and panelIds.size() > 0
"
>
where id IN (
where id IN (
<foreach
collection=
"panelIds"
item=
"id"
separator=
","
>
<foreach
collection=
"panelIds"
item=
"id"
separator=
","
>
#{id}
#{id}
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
group_id parent_id,
group_id parent_id,
'panel' node_type
'panel' node_type
from instrument_panel
from instrument_panel
<if
test=
"finalPanelIds!=null"
>
<if
test=
"finalPanelIds!=null
and finalPanelIds.size() > 0
"
>
where id IN (
where id IN (
<foreach
collection=
"finalPanelIds"
item=
"id"
separator=
","
>
<foreach
collection=
"finalPanelIds"
item=
"id"
separator=
","
>
#{id}
#{id}
...
...
src/main/resources/mapper/mysql/panel/InstrumentPanelTreeMapper.xml
View file @
32e82fcb
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</resultMap>
</resultMap>
<update
id=
"batchUpdateTreeByIds"
>
<update
id=
"batchUpdateTreeByIds"
>
update instrument_panel_tree set record_status =#{recordStatus}
update instrument_panel_tree set record_status =#{recordStatus}
<if
test=
"treeIds!=null"
>
<if
test=
"treeIds!=null
and treeIds.size() > 0
"
>
where id IN (
where id IN (
<foreach
collection=
"treeIds"
item=
"id"
separator=
","
>
<foreach
collection=
"treeIds"
item=
"id"
separator=
","
>
#{id}
#{id}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment