Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
1f958e64
Commit
1f958e64
authored
Dec 15, 2022
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加字段
parent
0f4af3d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
OrganizationMapper.xml
...-jcs-api/src/main/resources/mapper/OrganizationMapper.xml
+4
-3
EmergencyMapper.xml
...ystem-equip/src/main/resources/mapper/EmergencyMapper.xml
+16
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/OrganizationMapper.xml
View file @
1f958e64
...
@@ -69,12 +69,13 @@
...
@@ -69,12 +69,13 @@
</select>
</select>
<select
id=
"getOrganizationList"
resultType=
"java.util.Map"
>
<select
id=
"getOrganizationList"
resultType=
"java.util.Map"
>
SELECT
SELECT
co.emergency_team_id as groupId,
co
u
.emergency_team_id as groupId,
co.emergency_team_name as emergencyTeamName,
co.emergency_team_name as emergencyTeamName,
cou.member_name as memberName ,
cou.member_name as memberName ,
cou.post_name as postName,
cou.post_name as postName,
cou.telephone,
cou.telephone,
co.duty
co.duty,
cou.consultation_nub as consultationNub
FROM
FROM
cb_organization co
cb_organization co
LEFT JOIN cb_organization_user cou ON co.sequence_nbr = cou.emergency_team_id
LEFT JOIN cb_organization_user cou ON co.sequence_nbr = cou.emergency_team_id
...
@@ -115,7 +116,7 @@
...
@@ -115,7 +116,7 @@
</select>
</select>
<select
id=
"selectMaxSort"
resultType=
"java.lang.Integer"
>
<select
id=
"selectMaxSort"
resultType=
"java.lang.Integer"
>
SELECT
MAX(sort
) FROM cb_organization
SELECT
IFNULL( MAX(sort),0
) FROM cb_organization
</select>
</select>
</mapper>
</mapper>
amos-boot-system-equip/src/main/resources/mapper/EmergencyMapper.xml
View file @
1f958e64
...
@@ -213,6 +213,10 @@
...
@@ -213,6 +213,10 @@
<select
id=
"selectOilDrainage"
resultType=
"java.util.Map"
>
<select
id=
"selectOilDrainage"
resultType=
"java.util.Map"
>
SELECT
SELECT
wes.id,
wes.id,
'1' as type ,
(SELECT wei.emergency_level FROM wl_equipment_index wei LEFT JOIN wl_equipment_specific_index wesi on wei.id = wesi.equipment_index_id
WHERE wesi.equipment_specific_id = wes.id AND wesi.equipment_index_key = wes.realtime_iot_index_key) as level,
wes.equipment_code as code ,
wes.name,
wes.name,
IFNULL(
IFNULL(
(
(
...
@@ -243,6 +247,10 @@
...
@@ -243,6 +247,10 @@
(
(
SELECT
SELECT
wes.id,
wes.id,
'2' as type,
(SELECT wei.emergency_level FROM wl_equipment_index wei LEFT JOIN wl_equipment_specific_index wesi on wei.id = wesi.equipment_index_id
WHERE wesi.equipment_specific_id = wes.id AND wesi.equipment_index_key = wes.realtime_iot_index_key) as level,
wes.equipment_code as code ,
wes.name,
wes.name,
IFNULL(
IFNULL(
(
(
...
@@ -274,6 +282,10 @@
...
@@ -274,6 +282,10 @@
(
(
SELECT
SELECT
wes.id,
wes.id,
'3' as type,
(SELECT wei.emergency_level FROM wl_equipment_index wei LEFT JOIN wl_equipment_specific_index wesi on wei.id = wesi.equipment_index_id
WHERE wesi.equipment_specific_id = wes.id AND wesi.equipment_index_key = wes.realtime_iot_index_key) as level,
wes.equipment_code as code ,
wes.name,
wes.name,
IFNULL(
IFNULL(
(
(
...
@@ -305,6 +317,10 @@
...
@@ -305,6 +317,10 @@
(
(
SELECT
SELECT
wes.id,
wes.id,
'4' as type,
(SELECT wei.emergency_level FROM wl_equipment_index wei LEFT JOIN wl_equipment_specific_index wesi on wei.id = wesi.equipment_index_id
WHERE wesi.equipment_specific_id = wes.id AND wesi.equipment_index_key = wes.realtime_iot_index_key) as level,
wes.equipment_code as code ,
wes.name,
wes.name,
IFNULL(
IFNULL(
(
(
...
...
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