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
eac187bf
Commit
eac187bf
authored
Apr 07, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
833afc96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
0 deletions
+48
-0
InstrumentPanelGroupMapper.xml
...sources/mapper/mysql/panel/InstrumentPanelGroupMapper.xml
+14
-0
InstrumentPanelMapper.xml
...in/resources/mapper/mysql/panel/InstrumentPanelMapper.xml
+24
-0
InstrumentPanelTreeMapper.xml
...esources/mapper/mysql/panel/InstrumentPanelTreeMapper.xml
+10
-0
No files found.
src/main/resources/mapper/mysql/panel/InstrumentPanelGroupMapper.xml
View file @
eac187bf
...
...
@@ -19,4 +19,18 @@
<result
property=
"recordStatus"
column=
"record_status"
/>
<result
property=
"description"
column=
"description"
/>
</resultMap>
<delete
id=
"batchUpdateGroupByIds"
>
update instrument_panel_group set record_status =#{recordStatus}
<if
test=
"groupIds!=null"
>
where id IN (
<foreach
collection=
"groupIds"
item=
"id"
separator=
","
>
#{id}
</foreach>
)
</if>
</delete>
<select
id=
"selectGroupList"
resultType=
"com.syc.slm.slmbi.vo.InstrumentPanelGroupVo"
>
select id,`name`,parent_id from instrument_panel_group
${ew.customSqlSegment}
</select>
</mapper>
src/main/resources/mapper/mysql/panel/InstrumentPanelMapper.xml
View file @
eac187bf
...
...
@@ -21,4 +21,28 @@
<result
property=
"recordStatus"
column=
"record_status"
/>
<result
property=
"description"
column=
"description"
/>
</resultMap>
<update
id=
"batchUpdatePanelByIds"
>
update instrument_panel set record_status =#{recordStatus}
<if
test=
"panelIds!=null"
>
where id IN (
<foreach
collection=
"panelIds"
item=
"id"
separator=
","
>
#{id}
</foreach>
)
</if>
</update>
<select
id=
"selectInstrumentPanelList"
resultType=
"com.syc.slm.slmbi.vo.InstrumentPanelVo"
>
select
p.id,
p.name,
p.group_id,
g.name group_name,
p.published,
p.creator_name,
p.updater_name,
p.update_time
from instrument_panel p
join instrument_panel_group g on p.group_id =g.id
${ew.customSqlSegment}
</select>
</mapper>
src/main/resources/mapper/mysql/panel/InstrumentPanelTreeMapper.xml
View file @
eac187bf
...
...
@@ -19,4 +19,14 @@
<result
property=
"recordStatus"
column=
"record_status"
/>
<result
property=
"description"
column=
"description"
/>
</resultMap>
<update
id=
"batchUpdateTreeByIds"
>
update instrument_panel_tree set record_status =#{recordStatus}
<if
test=
"treeIds!=null"
>
where id IN (
<foreach
collection=
"treeIds"
item=
"id"
separator=
","
>
#{id}
</foreach>
)
</if>
</update>
</mapper>
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