更改稽核查询为模糊查询
This commit is contained in:
@@ -73,19 +73,19 @@
|
||||
AND hoai.deleted = 0
|
||||
<where>
|
||||
<if test="userId !=null and userId !=''">
|
||||
and (his.inspection_user_id = #{userId} OR hi.operator_user_id = #{userId})
|
||||
and ((his.inspection_user_id = #{userId} and hi.`status`=0 ) OR hi.operator_user_id = #{userId})
|
||||
</if>
|
||||
<if test="interviewerName !=null and interviewerName !=''">
|
||||
and eu.`name` like concat('%',#{interviewerName},'%')
|
||||
</if>
|
||||
<if test="interviewerMobile !=null and interviewerMobile !=''">
|
||||
and eu.mobile=#{interviewerMobile}
|
||||
and eu.mobile like concat('%',#{interviewerMobile},'%')
|
||||
</if>
|
||||
<if test="intervieweeName !=null and intervieweeName !=''">
|
||||
and hpui.username like concat('%',#{intervieweeName},'%')
|
||||
</if>
|
||||
<if test="intervieweeMobile !=null and intervieweeMobile !=''">
|
||||
and hpui.mobile=#{intervieweeMobile}
|
||||
and hpui.mobile like concat('%',#{intervieweeMobile},'%')
|
||||
</if>
|
||||
<if test="status !=null">
|
||||
and hi.`status`=#{status}
|
||||
@@ -140,7 +140,7 @@
|
||||
and hpui.username like concat('%',#{intervieweeName},'%')
|
||||
</if>
|
||||
<if test="intervieweeMobile !=null and intervieweeMobile !=''">
|
||||
and hpui.mobile=#{intervieweeMobile}
|
||||
and hpui.mobile like concat('%',#{intervieweeMobile},'%')
|
||||
</if>
|
||||
<if test="status !=null">
|
||||
and hi.`status`=#{status}
|
||||
@@ -196,19 +196,19 @@
|
||||
and mdd.id is not null
|
||||
</if>
|
||||
<if test="userId !=null and userId !=''">
|
||||
and (his.inspection_user_id = #{userId} OR hi.operator_user_id = #{userId})
|
||||
and ((his.inspection_user_id = #{userId} and hi.`status`=0 ) OR hi.operator_user_id = #{userId})
|
||||
</if>
|
||||
<if test="interviewerName !=null and interviewerName !=''">
|
||||
and eu.`name` like concat('%',#{interviewerName},'%')
|
||||
</if>
|
||||
<if test="interviewerMobile !=null and interviewerMobile !=''">
|
||||
and eu.mobile=#{interviewerMobile}
|
||||
and eu.mobile like concat('%',#{interviewerMobile},'%')
|
||||
</if>
|
||||
<if test="intervieweeName !=null and intervieweeName !=''">
|
||||
and hpui.username like concat('%',#{intervieweeName},'%')
|
||||
</if>
|
||||
<if test="intervieweeMobile !=null and intervieweeMobile !=''">
|
||||
and hpui.mobile=#{intervieweeMobile}
|
||||
and hpui.mobile like concat('%',{intervieweeMobile},'%')
|
||||
</if>
|
||||
<if test="status !=null">
|
||||
and hi.`status`=#{status}
|
||||
@@ -260,7 +260,7 @@
|
||||
and hpui.username like concat('%',#{intervieweeName},'%')
|
||||
</if>
|
||||
<if test="intervieweeMobile !=null and intervieweeMobile !=''">
|
||||
and hpui.mobile=#{intervieweeMobile}
|
||||
and hpui.mobile like concat('%',#{intervieweeMobile},'%')
|
||||
</if>
|
||||
<if test="status !=null">
|
||||
and hi.`status`=#{status}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</select>
|
||||
<select id="interviewInspectionGetHistoryDetail" resultType="com.cool.store.vo.interview.InterviewInspectionHistoryInfo">
|
||||
SELECT a.id, b.`name` as operatorUserName, b.mobile as operatorUserMobile,operation_time as inspectionTime, operation_type as operationType ,description,files as filesStr
|
||||
FROM hy_interview_inspection_log a left join enterprise_user b on a.operator_user_id=b.user_id and b.deleted=0 WHERE inspection_id=#{inspectionId} ORDER BY a.id
|
||||
FROM hy_interview_inspection_log a left join enterprise_user b on a.operator_user_id=b.user_id and b.deleted=0 WHERE inspection_id=#{inspectionId} ORDER BY operation_time desc
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from hy_interview_inspection_log
|
||||
|
||||
Reference in New Issue
Block a user