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
d1be6cdc
Commit
d1be6cdc
authored
Apr 11, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
1023f6af
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
0 deletions
+63
-0
InstrumentPanelDraftMapper.xml
...sources/mapper/mysql/panel/InstrumentPanelDraftMapper.xml
+31
-0
InstrumentPanelGroupMapper.xml
...sources/mapper/mysql/panel/InstrumentPanelGroupMapper.xml
+13
-0
InstrumentPanelMapper.xml
...in/resources/mapper/mysql/panel/InstrumentPanelMapper.xml
+18
-0
InstrumentPanelTreeMapper.xml
...esources/mapper/mysql/panel/InstrumentPanelTreeMapper.xml
+1
-0
No files found.
src/main/resources/mapper/mysql/panel/InstrumentPanelDraftMapper.xml
View file @
d1be6cdc
...
@@ -21,4 +21,35 @@
...
@@ -21,4 +21,35 @@
<result
property=
"recordStatus"
column=
"record_status"
/>
<result
property=
"recordStatus"
column=
"record_status"
/>
<result
property=
"description"
column=
"description"
/>
<result
property=
"description"
column=
"description"
/>
</resultMap>
</resultMap>
<select
id=
"selectDraftList"
resultType=
"com.syc.slm.slmbi.entity.InstrumentPanelDraft"
>
select * from instrument_panel_draft where panel_id in
<if
test=
"panelIds!=null"
>
(
<foreach
collection=
"panelIds"
item=
"id"
separator=
","
>
#{id}
</foreach>
)
</if>
and access_permission='public'
union ALL
select * from instrument_panel_draft where panel_id in
<if
test=
"panelIds!=null"
>
(
<foreach
collection=
"panelIds"
item=
"id"
separator=
","
>
#{id}
</foreach>
)
</if>
and access_permission='private' and IFNULL(updater,creator)=#{userId}
union ALL
select * from instrument_panel_draft where panel_id in
<if
test=
"panelIds!=null"
>
(
<foreach
collection=
"panelIds"
item=
"id"
separator=
","
>
#{id}
</foreach>
)
</if>
and access_permission='custom' and check_panel_permissions(#{appId},id,#{officeIds},#{userId},#{roleId})>0
</select>
</mapper>
</mapper>
src/main/resources/mapper/mysql/panel/InstrumentPanelGroupMapper.xml
View file @
d1be6cdc
...
@@ -33,4 +33,17 @@
...
@@ -33,4 +33,17 @@
select id,`name`,parent_id from instrument_panel_group
select id,`name`,parent_id from instrument_panel_group
${ew.customSqlSegment}
${ew.customSqlSegment}
</select>
</select>
<select
id=
"selectGroupByIds"
resultType=
"com.syc.slm.slmbi.vo.PanelTreeNodeVo"
>
select id,`name`,parent_id,'group' node_type from instrument_panel_group
<if
test=
"finalPanelIds!=null"
>
where id IN (
<foreach
collection=
"finalPanelIds"
item=
"id"
separator=
","
>
#{id}
</foreach>
)
</if>
<if
test=
"name!=null"
>
and `name` like '%${name}%'
</if>
</select>
</mapper>
</mapper>
src/main/resources/mapper/mysql/panel/InstrumentPanelMapper.xml
View file @
d1be6cdc
...
@@ -45,4 +45,22 @@
...
@@ -45,4 +45,22 @@
join instrument_panel_group g on p.group_id =g.id
join instrument_panel_group g on p.group_id =g.id
${ew.customSqlSegment}
${ew.customSqlSegment}
</select>
</select>
<select
id=
"selectPanelByIds"
resultType=
"com.syc.slm.slmbi.vo.PanelTreeNodeVo"
>
select
id,
`name`,
group_id parent_id,
'panel' node_type
from instrument_panel
<if
test=
"finalPanelIds!=null"
>
where id IN (
<foreach
collection=
"finalPanelIds"
item=
"id"
separator=
","
>
#{id}
</foreach>
)
</if>
<if
test=
"name!=null"
>
and `name` like '%${name}%'
</if>
</select>
</mapper>
</mapper>
src/main/resources/mapper/mysql/panel/InstrumentPanelTreeMapper.xml
View file @
d1be6cdc
...
@@ -29,4 +29,5 @@
...
@@ -29,4 +29,5 @@
)
)
</if>
</if>
</update>
</update>
</mapper>
</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