|
@@ -1087,29 +1087,18 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="unusualList" resultMap="CzrkResult">
|
|
|
- select id, user_name, phone_num,dept_id, id_card, gender, province, city, region, village_towns, village,
|
|
|
- villager_group, grid_id
|
|
|
- , house_type, update_by, code, rlr,rlr_nike, update_time, delete_reason,
|
|
|
- now_in,is_confirm,confirm_info_user,confirm_info_nike_user,confirm_info_user_time
|
|
|
- from czrk
|
|
|
+ select id, user_name, phone_num,dept_id, id_card, province, city, region, village_towns, village,
|
|
|
+ villager_group,status, house_type,chang_user,chang_nike_user,chang_user_time from czrk
|
|
|
<where>
|
|
|
<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="status != null and status != ''">and status = #{status}</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="code != null and code != ''">and code = #{code}</if>
|
|
|
- <if test="houseType != null and houseType != ''">and house_type = #{houseType}</if>
|
|
|
- <if test="rlr != null and rlr != ''">and rlr = #{rlr}</if>
|
|
|
- <if test="rlTime != null ">and rl_time = #{rlTime}</if>
|
|
|
- <if test="yhzgx != null and yhzgx != ''">and yhzgx = #{yhzgx}</if>
|
|
|
- <if test="workUnit != null and workUnit != ''">and work_unit = #{workUnit}</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>
|
|
@@ -1120,13 +1109,8 @@
|
|
|
<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="villagerGroupId != null and villagerGroupId != ''"> and villager_group_id = #{villagerGroupId}</if>
|
|
|
- <if test="villagerGroup != null and villagerGroup != ''"> and villager_group = #{villagerGroup}</if>-->
|
|
|
- <if test="nowIn != null and nowIn != ''">and now_in = #{nowIn}</if>
|
|
|
<if test="isConfirm != null and isConfirm != ''">and is_confirm = #{isConfirm}</if>
|
|
|
<if test="isDel != null and isDel != ''">and is_del = #{isDel}</if>
|
|
|
- <if test="deleteReason != null and deleteReason != ''">and delete_reason = #{deleteReason}</if>
|
|
|
- <if test="gridId != null and gridId != ''">and grid_id = #{gridId}</if>
|
|
|
</where>
|
|
|
order by create_time DESC
|
|
|
</select>
|