|
|
@@ -129,11 +129,15 @@
|
|
|
ORDER BY t.organid
|
|
|
</select>
|
|
|
|
|
|
- <select id="getUsers" parameterType="com.xintong.visualinspection.bean.User" resultMap="BaseResultMap" >
|
|
|
+ <select id="getUsers" parameterType="com.xintong.visualinspection.bean.User" resultMap="BaseResultMapByInvalid" >
|
|
|
SELECT
|
|
|
- t.* , fs.name AS fee_station_name,tso.parentid AS parent_organid
|
|
|
+ t.* , fs.name AS fee_station_name,tso.parentid AS parent_organid ,deleted_user.starttime AS invalidtime
|
|
|
FROM t_sys_users t LEFT JOIN t_br_layer_fee_station fs ON t.organid = fs.organ_id
|
|
|
LEFT JOIN t_sys_organ tso ON t.organid = tso.id
|
|
|
+ LEFT JOIN (select t_s_y.id,date_sub(t_p.starttime,interval 1 hour) as starttime from t_sys_users t_s_y
|
|
|
+ LEFT join (select starttime,endtime from check_task_period ) t_p on DELETE_TIME >= starttime and DELETE_TIME < endtime
|
|
|
+ WHERE STATUS =-1 and DELETE_TIME >= t_p.starttime and DELETE_TIME < t_p.endtime ) deleted_user
|
|
|
+ on deleted_user.id = t.id
|
|
|
where 1=1 and t.status>0
|
|
|
<if test="organid != null and organid != 0">and t.organid = #{organid} </if>
|
|
|
<if test="username != null">and t.username = #{username} </if>
|