|
@@ -548,13 +548,33 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getDutyPersonList" resultType="com.jeeplus.modules.sys.entity.User">
|
|
<select id="getDutyPersonList" resultType="com.jeeplus.modules.sys.entity.User">
|
|
- select
|
|
|
|
- su.id,
|
|
|
|
- su.name
|
|
|
|
- from sys_area_staff_user_info a
|
|
|
|
- left join sys_area_staff sas on sas.id = a.area_staff_id and sas.del_flag = '0'
|
|
|
|
- left join sys_user su on su.id = sas.area_leader_id and su.del_flag = '0'
|
|
|
|
- where a.user_id = #{id} and a.del_flag = '0'
|
|
|
|
|
|
+ select z.* from (
|
|
|
|
+ select y.* from (
|
|
|
|
+ SELECT
|
|
|
|
+ su.id,
|
|
|
|
+ su.NAME
|
|
|
|
+ FROM
|
|
|
|
+ sys_area_staff a
|
|
|
|
+ LEFT JOIN sys_user su ON su.id = a.area_leader_id
|
|
|
|
+ AND su.del_flag = '0'
|
|
|
|
+ WHERE
|
|
|
|
+ a.area_leader_id = #{id} and a.del_flag = '0'
|
|
|
|
+ ) y
|
|
|
|
+ union all
|
|
|
|
+ select x.* from (
|
|
|
|
+ SELECT
|
|
|
|
+ su.id,
|
|
|
|
+ su.NAME
|
|
|
|
+ FROM
|
|
|
|
+ sys_area_staff_user_info a
|
|
|
|
+ LEFT JOIN sys_area_staff sas ON sas.id = a.area_staff_id
|
|
|
|
+ AND sas.del_flag = '0'
|
|
|
|
+ LEFT JOIN sys_user su ON su.id = sas.area_leader_id
|
|
|
|
+ AND su.del_flag = '0'
|
|
|
|
+ WHERE
|
|
|
|
+ a.user_id = #{id} and a.del_flag = '0'
|
|
|
|
+ )x
|
|
|
|
+ ) z
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="insertReportSignature">
|
|
<insert id="insertReportSignature">
|