Commit 1f958e64 authored by lisong's avatar lisong

添加字段

parent 0f4af3d2
...@@ -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, cou.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>
...@@ -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(
( (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment