动火搜索问题

2024年1月19日V01.00.51
zhaoyu 2024-01-11 15:49:30 +08:00
parent 18f4514fde
commit 722aaee5e0
1 changed files with 5 additions and 2 deletions

View File

@ -275,6 +275,9 @@
<if test="pd.keyJobNumber != null and pd.keyJobNumber != ''"> <if test="pd.keyJobNumber != null and pd.keyJobNumber != ''">
and (f.JOB_NUMBER LIKE CONCAT(CONCAT('%', #{pd.keyJobNumber}),'%')) and (f.JOB_NUMBER LIKE CONCAT(CONCAT('%', #{pd.keyJobNumber}),'%'))
</if> </if>
<if test="pd.applicantName != null and pd.applicantName != ''">
and (u.NAME LIKE CONCAT(CONCAT('%', #{pd.applicantName}),'%'))
</if>
<if test="pd.keyState != null and pd.keyState != ''"> <if test="pd.keyState != null and pd.keyState != ''">
<!-- <if test='pd.keyState == "1"'>--> <!-- <if test='pd.keyState == "1"'>-->
<!-- and f.STATE = '11'--> <!-- and f.STATE = '11'-->
@ -291,10 +294,10 @@
and f.STATE = #{pd.keyState} and f.STATE = #{pd.keyState}
</if> </if>
<if test="pd.keyApplyUserName != null and pd.keyApplyUserName != ''"><!-- 申请人 --> <if test="pd.keyApplyUserName != null and pd.keyApplyUserName != ''"><!-- 申请人 -->
and f.HOTWORKAPPLICATION_ID in (select FOREIGN_KEY from bus_hotworkapplicationuser houtUser LEFT JOIN sus_user u on u.user_id = houtUser.USER_ID where u.USERNAME = CONCAT(CONCAT('%', #{pd.keyApplyUserName}),'%') and STATE = '11') and f.HOTWORKAPPLICATION_ID in (select FOREIGN_KEY from bus_hotworkapplicationuser houtUser LEFT JOIN vi_user_all u on u.user_id = houtUser.USER_ID where u.USERNAME = CONCAT(CONCAT('%', #{pd.keyApplyUserName}),'%') and STATE = '11')
</if> </if>
<if test="pd.keyApproveUserName != null and pd.keyApproveUserName != ''"><!-- 申请人 --> <if test="pd.keyApproveUserName != null and pd.keyApproveUserName != ''"><!-- 申请人 -->
and f.HOTWORKAPPLICATION_ID in (select FOREIGN_KEY from bus_hotworkapplicationuser houtUser LEFT JOIN sus_user u on u.user_id = houtUser.USER_ID where u.USERNAME = CONCAT(CONCAT('%', #{pd.keyApproveUserName}),'%') and STATE = '12') and f.HOTWORKAPPLICATION_ID in (select FOREIGN_KEY from bus_hotworkapplicationuser houtUser LEFT JOIN vi_user_all u on u.user_id = houtUser.USER_ID where u.USERNAME = CONCAT(CONCAT('%', #{pd.keyApproveUserName}),'%') and STATE = '12')
</if> </if>
<if test="pd.STATE != null and pd.STATE != ''"> <if test="pd.STATE != null and pd.STATE != ''">
<choose> <choose>