|
@@ -565,6 +565,7 @@
|
|
<if test="params.endAge != null and params.endAge != ''">and c.age <= #{params.endAge}</if>
|
|
<if test="params.endAge != null and params.endAge != ''">and c.age <= #{params.endAge}</if>
|
|
<if test="idCard != null and idCard != ''">and c.id_card = #{idCard}</if>
|
|
<if test="idCard != null and idCard != ''">and c.id_card = #{idCard}</if>
|
|
<if test="phoneNum != null and phoneNum != ''">and c.phone_num = #{phoneNum}</if>
|
|
<if test="phoneNum != null and phoneNum != ''">and c.phone_num = #{phoneNum}</if>
|
|
|
|
+ <if test="isConfirm != null and isConfirm != ''">and c.is_confirm = #{isConfirm}</if>
|
|
<if test="houseType != null and houseType != ''">and c.house_type = #{houseType}</if>
|
|
<if test="houseType != null and houseType != ''">and c.house_type = #{houseType}</if>
|
|
<if test="provinceId != null and provinceId != ''">and c.province_id = #{provinceId}</if>
|
|
<if test="provinceId != null and provinceId != ''">and c.province_id = #{provinceId}</if>
|
|
<if test="cityId != null and cityId != ''">and c.city_id = #{cityId}</if>
|
|
<if test="cityId != null and cityId != ''">and c.city_id = #{cityId}</if>
|
|
@@ -614,7 +615,6 @@
|
|
<where>
|
|
<where>
|
|
c.is_del = 'N'
|
|
c.is_del = 'N'
|
|
and c.is_rl = '否'
|
|
and c.is_rl = '否'
|
|
- and c.is_confirm = 'N'
|
|
|
|
and c.status = '1'
|
|
and c.status = '1'
|
|
<if test="userName != null and userName != ''">
|
|
<if test="userName != null and userName != ''">
|
|
and c.user_name like concat(#{userName}, '%')
|
|
and c.user_name like concat(#{userName}, '%')
|
|
@@ -623,6 +623,7 @@
|
|
<if test="params.endAge != null and params.endAge != ''">and c.age <= #{params.endAge}</if>
|
|
<if test="params.endAge != null and params.endAge != ''">and c.age <= #{params.endAge}</if>
|
|
<if test="idCard != null and idCard != ''">and c.id_card = #{idCard}</if>
|
|
<if test="idCard != null and idCard != ''">and c.id_card = #{idCard}</if>
|
|
<if test="phoneNum != null and phoneNum != ''">and c.phone_num = #{phoneNum}</if>
|
|
<if test="phoneNum != null and phoneNum != ''">and c.phone_num = #{phoneNum}</if>
|
|
|
|
+ <if test="isConfirm != null and isConfirm != ''">and c.is_confirm = #{isConfirm}</if>
|
|
<if test="provinceId != null and provinceId != ''">and c.province_id = #{provinceId}</if>
|
|
<if test="provinceId != null and provinceId != ''">and c.province_id = #{provinceId}</if>
|
|
<if test="cityId != null and cityId != ''">and c.city_id = #{cityId}</if>
|
|
<if test="cityId != null and cityId != ''">and c.city_id = #{cityId}</if>
|
|
<if test="regionId != null and regionId != ''">and c.region_id = #{regionId}</if>
|
|
<if test="regionId != null and regionId != ''">and c.region_id = #{regionId}</if>
|
|
@@ -649,6 +650,7 @@
|
|
<if test="params.endAge != null and params.endAge != ''">and c.age <= #{params.endAge}</if>
|
|
<if test="params.endAge != null and params.endAge != ''">and c.age <= #{params.endAge}</if>
|
|
<if test="idCard != null and idCard != ''">and c.id_card = #{idCard}</if>
|
|
<if test="idCard != null and idCard != ''">and c.id_card = #{idCard}</if>
|
|
<if test="phoneNum != null and phoneNum != ''">and c.phone_num = #{phoneNum}</if>
|
|
<if test="phoneNum != null and phoneNum != ''">and c.phone_num = #{phoneNum}</if>
|
|
|
|
+ <if test="isConfirm != null and isConfirm != ''">and c.is_confirm = #{isConfirm}</if>
|
|
<if test="houseType != null and houseType != ''">and c.house_type = #{houseType}</if>
|
|
<if test="houseType != null and houseType != ''">and c.house_type = #{houseType}</if>
|
|
<if test="provinceId != null and provinceId != ''">and c.province_id = #{provinceId}</if>
|
|
<if test="provinceId != null and provinceId != ''">and c.province_id = #{provinceId}</if>
|
|
<if test="cityId != null and cityId != ''">and c.city_id = #{cityId}</if>
|
|
<if test="cityId != null and cityId != ''">and c.city_id = #{cityId}</if>
|
|
@@ -1289,4 +1291,72 @@
|
|
#{idCard}
|
|
#{idCard}
|
|
</foreach>
|
|
</foreach>
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <select id="selectCzrkCount" resultType="long">
|
|
|
|
+ select ifnull(count(1),0)
|
|
|
|
+ from czrk
|
|
|
|
+ <where>
|
|
|
|
+ is_del = 'N'
|
|
|
|
+ and status = '1'
|
|
|
|
+ <!-- 已认领 -->
|
|
|
|
+ <if test="isRl != null and isRl != ''">and is_rl = #{isRl}</if>
|
|
|
|
+ <if test="userName != null and userName != ''">
|
|
|
|
+ and user_name like concat(#{userName}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="params.startAge != null and params.startAge != ''">and age >= #{params.startAge}</if>
|
|
|
|
+ <if test="params.endAge != null and params.endAge != ''">and age <= #{params.endAge}</if>
|
|
|
|
+ <if test="gender != null and gender != ''">and gender = #{gender}</if>
|
|
|
|
+ <if test="age != null ">and age = #{age}</if>
|
|
|
|
+ <if test="birthday != null ">and birthday = #{birthday}</if>
|
|
|
|
+ <if test="idCard != null and idCard != ''">and id_card = #{idCard}</if>
|
|
|
|
+ <if test="phoneNum != null and phoneNum != ''">and phone_num = #{phoneNum}</if>
|
|
|
|
+ <if test="isConfirm != null and isConfirm != ''">and c.is_confirm = #{isConfirm}</if>
|
|
|
|
+ <if test="houseType != null and houseType != ''">and house_type = #{houseType}</if>
|
|
|
|
+ <if test="provinceId != null and provinceId != ''">and province_id = #{provinceId}</if>
|
|
|
|
+ <if test="province != null and province != ''">and province = #{province}</if>
|
|
|
|
+ <if test="cityId != null and cityId != ''">and city_id = #{cityId}</if>
|
|
|
|
+ <if test="city != null and city != ''">and city = #{city}</if>
|
|
|
|
+ <if test="regionId != null and regionId != ''">and region_id = #{regionId}</if>
|
|
|
|
+ <if test="region != null and region != ''">and region = #{region}</if>
|
|
|
|
+ <if test="villageTownsId != null and villageTownsId != ''">and village_towns_id = #{villageTownsId}</if>
|
|
|
|
+ <if test="villageTowns != null and villageTowns != ''">and village_towns = #{villageTowns}</if>
|
|
|
|
+ <if test="villageId != null and villageId != ''">and village_id = #{villageId}</if>
|
|
|
|
+ <if test="village != null and village != ''">and village = #{village}</if>
|
|
|
|
+ <if test="isConfirm != null and isConfirm != ''">and is_confirm = #{isConfirm}</if>
|
|
|
|
+ <if test="gridId != null and gridId != ''">and grid_id = #{gridId}</if>
|
|
|
|
+ </where>
|
|
|
|
+ order by create_time DESC
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="selectCzrkJzdzCount" resultType="java.lang.long">
|
|
|
|
+ select ifnull(count(1),0)
|
|
|
|
+ from czrk c left join czrk_jzdz z on c.id =z.czrk_id
|
|
|
|
+ <where>
|
|
|
|
+ c.is_del = 'N'
|
|
|
|
+ and c.status = '1'
|
|
|
|
+ <if test="isRl != null and isRl != ''">and c.is_rl = #{isRl}</if>
|
|
|
|
+ <if test="userName != null and userName != ''">
|
|
|
|
+ and c.user_name like concat(#{userName}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="params.startAge != null and params.startAge != ''">and c.age >= #{params.startAge}</if>
|
|
|
|
+ <if test="params.endAge != null and params.endAge != ''">and c.age <= #{params.endAge}</if>
|
|
|
|
+ <if test="idCard != null and idCard != ''">and c.id_card = #{idCard}</if>
|
|
|
|
+ <if test="phoneNum != null and phoneNum != ''">and c.phone_num = #{phoneNum}</if>
|
|
|
|
+ <if test="isConfirm != null and isConfirm != ''">and c.is_confirm = #{isConfirm}</if>
|
|
|
|
+ <if test="houseType != null and houseType != ''">and c.house_type = #{houseType}</if>
|
|
|
|
+ <if test="provinceId != null and provinceId != ''">and c.province_id = #{provinceId}</if>
|
|
|
|
+ <if test="cityId != null and cityId != ''">and c.city_id = #{cityId}</if>
|
|
|
|
+ <if test="regionId != null and regionId != ''">and c.region_id = #{regionId}</if>
|
|
|
|
+ <if test="villageTownsId != null and villageTownsId != ''">and c.village_towns_id = #{villageTownsId}</if>
|
|
|
|
+ <if test="villageId != null and villageId != ''">and c.village_id = #{villageId}</if>
|
|
|
|
+ <if test="isConfirm != null and isConfirm != ''">and c.is_confirm = #{isConfirm}</if>
|
|
|
|
+ <if test="provinceIdXjd != null and provinceIdXjd != ''">and z.province_id = #{provinceIdXjd}</if>
|
|
|
|
+ <if test="cityIdXjd != null and cityIdXjd != ''">and z.city_id = #{cityIdXjd}</if>
|
|
|
|
+ <if test="regionIdXjd != null and regionIdXjd != ''">and z.region_id = #{regionIdXjd}</if>
|
|
|
|
+ <if test="villageTownsIdXjd != null and villageTownsIdXjd != ''">and z.town_id = #{villageTownsIdXjd}</if>
|
|
|
|
+ <if test="villageIdXjd != null and villageIdXjd != ''">and z.village_id = #{villageIdXjd}</if>
|
|
|
|
+ </where>
|
|
|
|
+ order by c.create_time DESC
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|