diff --git a/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/mapper/CheckRecordsDao.xml b/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/mapper/CheckRecordsDao.xml index 9df1fd12b..1465f5684 100644 --- a/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/mapper/CheckRecordsDao.xml +++ b/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/mapper/CheckRecordsDao.xml @@ -47,7 +47,7 @@ left join epdc_check_code st on ecr.SUGGESTION=st.`CODE` where ecr.DEL_FLAG=0 - and ecr.name like '%${name}%' + and ecr.name like CONCAT('%', #{name}, '%') and ecr.CATEGORY = #{category} @@ -56,16 +56,16 @@ - and ecr.CONTENT like '%${content}%' + and ecr.CONTENT like CONCAT('%', #{content}, '%') - and mo.DESCRIPTION like '%${module}%' + and mo.DESCRIPTION like CONCAT('%', #{module}, '%') and ecr.SYSTEM = #{systemStatus} - and ecr.mobile like '%${mobile}%' + and ecr.mobile like CONCAT('%', #{namobileme}, '%') and ecr.SUGGESTION = #{suggestion} diff --git a/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/mapper/ViolationsRecordsDao.xml b/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/mapper/ViolationsRecordsDao.xml index 68b174aed..a621c4feb 100644 --- a/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/mapper/ViolationsRecordsDao.xml +++ b/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/mapper/ViolationsRecordsDao.xml @@ -43,7 +43,7 @@ left join epdc_check_code la on evr.LABEL=la.`CODE` where evr.DEL_FLAG=0 - and evr.name like '%${name}%' + and evr.name like CONCAT('%', #{name}, '%') and evr.CATEGORY = #{category} @@ -52,13 +52,13 @@ and evr.DECISION = #{decision} - and evr.CONTENT like '%${content}%' + and evr.CONTENT like CONCAT('%', #{content}, '%') - and mo.DESCRIPTION like '%${module}%' + and mo.DESCRIPTION like CONCAT('%', #{module}, '%') - and evr.mobile like '%${mobile}%' + and evr.mobile like CONCAT('%', #{mobile}, '%') AND DATE_FORMAT( evr.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} diff --git a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml index fde56f932..75fcf31e5 100755 --- a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml +++ b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml @@ -729,7 +729,7 @@ AND item.PEOPLE_FLAG = #{peopleFlag} - and item.SERIAL_NUM like '%${serialNum}%' + and item.SERIAL_NUM like CONCAT('%', #{serialNum}, '%') AND item.ITEM_STATE = #{itemState} @@ -2095,7 +2095,7 @@ AND t1.MOBILE like concat('%', #{mobile}, '%') - and t1.SERIAL_NUM like '%${serialNum}%' + and t1.SERIAL_NUM like CONCAT('%', #{serialNum}, '%') and t1.APPEAL_SOURCE = #{appealSource} @@ -2250,10 +2250,10 @@ and i.NICK_NAME = #{nickName} - and i.ITEM_CONTENT like '%${itemContent}%' + and i.ITEM_CONTENT like CONCAT('%', #{itemContent}, '%') - and i.SERIAL_NUM like '%${serialNum}%' + and i.SERIAL_NUM like CONCAT('%', #{serialNum}, '%') and i.EVALUATION_SCORE = #{evaluationScore} @@ -2369,10 +2369,10 @@ and i.NICK_NAME = #{nickName} - and i.ITEM_CONTENT like '%${itemContent}%' + and i.ITEM_CONTENT like CONCAT('%', #{itemContent}, '%') - and i.SERIAL_NUM like '%${serialNum}%' + and i.SERIAL_NUM like CONCAT('%', #{serialNum}, '%') and i.EVALUATION_SCORE = #{evaluationScore} @@ -2498,7 +2498,7 @@ AND item.MOBILE like concat('%', #{mobile}, '%') - and item.SERIAL_NUM like '%${serialNum}%' + and item.SERIAL_NUM like CONCAT('%', #{serialNum}, '%') ORDER BY item.CREATED_TIME DESC, @@ -2529,10 +2529,10 @@ and process.STATE=11 and process.CLOSE_CHECK_ID=#{deptId} - and i.ITEM_CONTENT like '%${itemContent}%' + and i.ITEM_CONTENT like CONCAT('%', #{itemContent}, '%') - and i.NICK_NAME like '%${userName}%' + and i.NICK_NAME like CONCAT('%', #{userName}, '%') AND DATE_FORMAT( i.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} @@ -2736,16 +2736,16 @@ AND i.item_state = '10' - and i.serial_num like '%${serialNum}%' + and i.serial_num like CONCAT('%', #{serialNum}, '%') - and i.item_content like '%${itemContent}%' + and i.item_content like CONCAT('%', #{itemContent}, '%') and i.mobile = #{mobile} - and i.nick_name like '%${nickName}%' + and i.nick_name like CONCAT('%', #{nickName}, '%') AND i.all_dept_ids LIKE concat('%', trim(#{deptId}), '%')