|
@@ -367,9 +367,12 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="np != null ">
|
|
|
- and city = #{np,jdbcType=VARCHAR}
|
|
|
+ and city
|
|
|
+ IN <foreach collection="np" item="item" index="index" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
- <if test="experiencestart != null and experienceend != null">
|
|
|
+ <if test="experiencestart != null and experienceend != null and experiencestart != 0 and experienceend !=0">
|
|
|
and CAST( seniority AS SIGNED) >= CAST( #{experiencestart,jdbcType=VARCHAR} AS SIGNED )
|
|
|
and CAST( seniority AS SIGNED) <= CAST( #{experienceend,jdbcType=VARCHAR} AS SIGNED )
|
|
|
</if>
|
|
@@ -379,7 +382,7 @@
|
|
|
<if test="status != null ">
|
|
|
and status = #{status,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test="babynumber != null ">
|
|
|
+ <if test="babynumber != null and babynumber != 0">
|
|
|
and babynumber = #{babynumber,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="cityname != null ">
|
|
@@ -389,7 +392,10 @@
|
|
|
and ethnicgroup = #{ethnicgroup,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="education != null ">
|
|
|
- and education = #{education,jdbcType=VARCHAR}
|
|
|
+ and education
|
|
|
+ IN <foreach collection="education" item="item" index="index" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="height != null ">
|
|
|
and height = #{height,jdbcType=VARCHAR}
|
|
@@ -403,7 +409,7 @@
|
|
|
<if test="weight != null ">
|
|
|
and weight = #{weight,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test="agestart != null and ageend != null ">
|
|
|
+ <if test="agestart != null and ageend != null and agestart != 0 and ageend != 0">
|
|
|
and year(CURDATE())-substring(jl_service_user_info.idcard,7,4) >= #{agestart,jdbcType=VARCHAR}
|
|
|
and year(CURDATE())-substring(jl_service_user_info.idcard,7,4) <= #{ageend,jdbcType=VARCHAR}
|
|
|
</if>
|