兴安优化提交
This commit is contained in:
@@ -105,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</if>
|
||||
<if test="sysPeople.delFlag != null"> and p.del_flag = #{sysPeople.delFlag}</if>
|
||||
<if test="sysPeople.branchParent != null and sysPeople.branchParent != ''"> and b.id like concat(#{sysPeople.branchParent}, '%')</if>
|
||||
<if test="sysPeople.carryStuffExamine != null and sysPeople.carryStuffExamine != ''"> and p.carry_stuff_examine = #{sysPeople.carryStuffExamine}</if>
|
||||
<if test="sysPeople.carryStuffExamine != null and sysPeople.carryStuffExamine != ''"> and FIND_IN_SET(#{sysPeople.carryStuffExamine},p.carry_stuff_examine) > 0 </if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -149,6 +149,10 @@
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteVisitorReviewProcess">
|
||||
delete from vis_visitor_review_process where exit_id = #{id}
|
||||
</delete>
|
||||
|
||||
<select id="selectList" resultType="com.dcsoft.system.visitor.domain.VisExitOutVo">
|
||||
<include refid="selectVisExitOutVo"/>
|
||||
<where>
|
||||
@@ -194,11 +198,12 @@
|
||||
select
|
||||
reviewer,
|
||||
state,
|
||||
reject_reason
|
||||
reject_reason,
|
||||
updated_time updatedTime
|
||||
from vis_visitor_review_process
|
||||
where exit_id = #{id}
|
||||
order by created_time desc
|
||||
limit 1
|
||||
and reviewer = #{reviewer}
|
||||
order by updated_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectStuffList" resultMap="StuffResult">
|
||||
|
||||
@@ -345,8 +345,8 @@
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="saveVisCheckCode">
|
||||
insert into vis_check_code (id, code, start_time, end_time, visitor_id)
|
||||
VALUES (#{id}, #{code}, #{startTime}, #{endTime}, #{visitorId})
|
||||
insert into vis_check_code (id, code, start_time, end_time, visitor_id, exit_id)
|
||||
VALUES (#{id}, #{code}, #{startTime}, #{endTime}, #{visitorId}, #{exitId})
|
||||
</insert>
|
||||
<insert id="saveVisitorRecord">
|
||||
insert into vis_visitor_record (id, visitor_id, sequence, start_time)
|
||||
@@ -591,6 +591,10 @@
|
||||
delete from sys_file where business_id = #{businessId} and business_type = #{businessType}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteVisitorReviewProcess">
|
||||
delete from vis_visitor_review_process where visitor_id = #{id}
|
||||
</delete>
|
||||
|
||||
<select id="selectByGuid" parameterType="String" resultMap="VisitorResult">
|
||||
<include refid="selectVisitorVo"/>
|
||||
where vv.guid = #{guid}
|
||||
|
||||
Reference in New Issue
Block a user