兴安列表优化

This commit is contained in:
zc
2025-08-01 09:53:50 +08:00
parent 2f8d7a2846
commit 26e9ea735c
5 changed files with 30 additions and 1 deletions

View File

@@ -187,7 +187,7 @@
select reviewer,
state,
sp.position type,
date_format(created_time, '%Y-%m-%d %H:%i:%s') createdTime,
date_format(ifnull(updated_time,created_time), '%Y-%m-%d %H:%i:%s') createdTime,
sp.name reviewerName
from vis_visitor_review_process vvrp
left join sys_people sp on vvrp.reviewer = sp.id and sp.del_flag = '0'

View File

@@ -64,6 +64,12 @@
<if test="exitPermitNo != null and exitPermitNo != ''">and e.exitPermit_no = #{exitPermitNo}</if>
<if test="applyName != null and applyName != ''">and e.`name` like concat('%', #{applyName}, '%')</if>
<if test="exitId != null">and r.`exit_id` = #{exitId}</if>
<if test="exitIds != null and exitIds.size() > 0">
and r.`exit_id` in
<foreach collection="exitIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</if>
</where>
</select>