|
@@ -100,13 +100,13 @@
|
|
|
and jl_service_user.id = #{id,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="salt != null and salt !=''">
|
|
|
- and jl_service_user.salt like "%"#{salt,jdbcType=VARCHAR}"%"
|
|
|
+ and jl_service_user.salt like concat ('%',#{salt,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="truename != null and truename !=''">
|
|
|
- and jl_service_user.truename like "%"#{truename,jdbcType=VARCHAR}"%"
|
|
|
+ and jl_service_user.truename like concat ('%',#{truename,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="constellation != null and constellation !=''">
|
|
|
- and constellation like "%"#{constellation,jdbcType=VARCHAR}"%"
|
|
|
+ and constellation like concat ('%',#{constellation,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="zodiac != null and zodiac !=''">
|
|
|
and zodiac = #{zodiac,jdbcType=VARCHAR}
|
|
@@ -130,7 +130,7 @@
|
|
|
and babynumber = #{babynumber,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="cityname != null ">
|
|
|
- and citycode like "%"#{cityname,jdbcType=VARCHAR}"%"
|
|
|
+ and citycode like concat ('%',#{cityname,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="ethnicgroup != null ">
|
|
|
and ethnicgroup = #{ethnicgroup,jdbcType=VARCHAR}
|
|
@@ -145,7 +145,8 @@
|
|
|
and marriage = #{marriage,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="highlight != null ">
|
|
|
- and highlight like "%"#{highlight,jdbcType=VARCHAR}"%"
|
|
|
+ and highlight like concat ('%',
|
|
|
+ #{highlight,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="weight != null ">
|
|
|
and weight = #{weight,jdbcType=VARCHAR}
|
|
@@ -179,7 +180,8 @@
|
|
|
and jl_service_user.id = #{id,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="truename != null and truename != ''">
|
|
|
- and jl_service_user.truename like "%"#{truename,jdbcType=VARCHAR}"%"
|
|
|
+ and jl_service_user.truename like concat ('%',
|
|
|
+ #{truename,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="status != null and status != ''">
|
|
|
and status = #{status,jdbcType=VARCHAR}
|
|
@@ -188,7 +190,7 @@
|
|
|
and idcard = #{idcard,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="cityname != null and cityname != ''">
|
|
|
- and citycode like "%"#{cityname,jdbcType=VARCHAR}"%"
|
|
|
+ and citycode like concat ('%',#{cityname,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="np != null and np != ''">
|
|
|
and city = #{np,jdbcType=VARCHAR}
|
|
@@ -200,7 +202,7 @@
|
|
|
and gender = #{gender,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="salt != null and salt != ''">
|
|
|
- and salt like "%"#{salt,jdbcType=VARCHAR}"%"
|
|
|
+ and salt like concat ('%',#{salt,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
</select>
|
|
|
<!--getList-->
|
|
@@ -273,7 +275,7 @@
|
|
|
and jl_service_user.id = #{id,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="truename != null">
|
|
|
- and jl_service_user.truename like "%"#{truename,jdbcType=VARCHAR}"%"
|
|
|
+ and jl_service_user.truename like concat ('%',#{truename,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="status != null ">
|
|
|
and status = #{status,jdbcType=VARCHAR}
|
|
@@ -282,7 +284,7 @@
|
|
|
and idcard = #{idcard,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="cityname != null ">
|
|
|
- and citycode like "%"#{cityname,jdbcType=VARCHAR}"%"
|
|
|
+ and citycode like concat ('%',#{cityname,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="np != null ">
|
|
|
and city = #{np,jdbcType=VARCHAR}
|
|
@@ -294,7 +296,7 @@
|
|
|
and gender = #{gender,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="salt != null and salt !=''">
|
|
|
- and salt like "%"#{salt,jdbcType=VARCHAR}"%"
|
|
|
+ and salt like concat ('%',#{salt,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
order by id
|
|
|
</select>
|
|
@@ -367,10 +369,10 @@
|
|
|
and FIND_IN_SET(jl_service_user.id,#{ids,jdbcType=INTEGER}) = 0
|
|
|
</if>
|
|
|
<if test="salt != null and salt !=''">
|
|
|
- and jl_service_user.salt like "%"#{salt,jdbcType=VARCHAR}"%"
|
|
|
+ and jl_service_user.salt like concat ('%',#{salt,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="truename != null ">
|
|
|
- and jl_service_user.truename like "%"#{truename,jdbcType=VARCHAR}"%"
|
|
|
+ and jl_service_user.truename like concat ('%',#{truename,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="constellation != null ">
|
|
|
and constellation in
|
|
@@ -406,7 +408,7 @@
|
|
|
and babynumber = #{babynumber,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="cityname != null ">
|
|
|
- and citycode like "%"#{cityname,jdbcType=VARCHAR}"%"
|
|
|
+ and citycode like concat ('%',#{cityname,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="ethnicgroup != null ">
|
|
|
and ethnicgroup = #{ethnicgroup,jdbcType=VARCHAR}
|
|
@@ -425,7 +427,7 @@
|
|
|
and marriage = #{marriage,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="highlight != null ">
|
|
|
- and highlight like "%"#{highlight,jdbcType=VARCHAR}"%"
|
|
|
+ and highlight like concat ('%',#{highlight,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="weight != null ">
|
|
|
and weight = #{weight,jdbcType=VARCHAR}
|
|
@@ -676,10 +678,10 @@
|
|
|
and jl_service_user.id = #{id,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="truename != null ">
|
|
|
- and jl_service_user.truename like "%"#{truename,jdbcType=VARCHAR}"%"
|
|
|
+ and jl_service_user.truename like concat ('%',#{truename,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="constellation != null ">
|
|
|
- and constellation like "%"#{constellation,jdbcType=VARCHAR}"%"
|
|
|
+ and constellation like concat ('%',#{constellation,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="zodiac != null ">
|
|
|
and zodiac = #{zodiac,jdbcType=VARCHAR}
|
|
@@ -703,7 +705,7 @@
|
|
|
and babynumber = #{babynumber,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="cityname != null ">
|
|
|
- and citycode like "%"#{cityname,jdbcType=VARCHAR}"%"
|
|
|
+ and citycode like concat ('%',#{cityname,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="ethnicgroup != null ">
|
|
|
and ethnicgroup = #{ethnicgroup,jdbcType=VARCHAR}
|
|
@@ -718,7 +720,7 @@
|
|
|
and marriage = #{marriage,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="highlight != null ">
|
|
|
- and highlight like "%"#{highlight,jdbcType=VARCHAR}"%"
|
|
|
+ and highlight like concat ('%',#{highlight,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="weight != null ">
|
|
|
and weight = #{weight,jdbcType=VARCHAR}
|