Commit 3291ded1 authored by tangwei's avatar tangwei

增加模糊匹配

parent 086dd6f9
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
<where> <where>
person_basic.is_delete=0 person_basic.is_delete=0
<if test="name != null and name != ''"> <if test="name != null and name != ''">
AND person_basic.name like concat(#{name},'%') AND person_basic.name like concat('%',#{name},'%')
</if> </if>
<if test="accountName != null and accountName != ''"> <if test="accountName != null and accountName != ''">
AND person_account.account_name like concat(#{accountName},'%') AND person_account.account_name like concat('%',#{accountName},'%')
</if> </if>
<if test="projectName != null and projectName != ''"> <if test="projectName != null and projectName != ''">
AND person_ascription.project_name like concat(#{projectName},'%') AND person_ascription.project_name like concat('%',#{projectName},'%')
</if> </if>
</where> </where>
ORDER BY person_basic.rec_date DESC ORDER BY person_basic.rec_date DESC
...@@ -48,13 +48,13 @@ ...@@ -48,13 +48,13 @@
<where> <where>
person_basic.is_delete=0 person_basic.is_delete=0
<if test="name != null and name != ''"> <if test="name != null and name != ''">
AND person_basic.name like concat(#{name},'%') AND person_basic.name like concat('%',#{name},'%')
</if> </if>
<if test="accountName != null and accountName != ''"> <if test="accountName != null and accountName != ''">
AND person_account.account_name like concat(#{accountName},'%') AND person_account.account_name like concat('%',#{accountName},'%')
</if> </if>
<if test="projectName != null and projectName != ''"> <if test="projectName != null and projectName != ''">
AND person_ascription.project_name like concat(#{projectName},'%') AND person_ascription.project_name like concat('%',#{projectName},'%')
</if> </if>
</where> </where>
</select> </select>
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
<where> <where>
is_delete=0 is_delete=0
<if test="stationMasterName != null and stationMasterName != ''"> <if test="stationMasterName != null and stationMasterName != ''">
AND station_basic.station_master_name like concat(#{stationMasterName},'%') AND station_basic.station_master_name like concat('%',#{stationMasterName},'%')
</if> </if>
<if test="stationName != null and stationName != ''"> <if test="stationName != null and stationName != ''">
AND station_basic.station_name like concat(#{stationName},'%') AND station_basic.station_name like concat('%',#{stationName},'%')
</if> </if>
<if test="stationType != null and stationType != ''"> <if test="stationType != null and stationType != ''">
AND station_basic.station_type = #{stationType} AND station_basic.station_type = #{stationType}
...@@ -39,10 +39,10 @@ ...@@ -39,10 +39,10 @@
<where> <where>
is_delete=0 is_delete=0
<if test="stationMasterName != null and stationMasterName != ''"> <if test="stationMasterName != null and stationMasterName != ''">
AND station_basic.station_master_name like concat(#{stationMasterName},'%') AND station_basic.station_master_name like concat('%',#{stationMasterName},'%')
</if> </if>
<if test="stationName != null and stationName != ''"> <if test="stationName != null and stationName != ''">
AND station_basic.station_name like concat(#{stationName},'%') AND station_basic.station_name like concat('%',#{stationName},'%')
</if> </if>
<if test="stationType != null and stationType != ''"> <if test="stationType != null and stationType != ''">
AND station_basic.station_type = #{stationType} AND station_basic.station_type = #{stationType}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment