|
@@ -98,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select id, user_name, gender, age, birthday,dept_id, id_card, phone_num, code, house_type, rlr,rlr_nike, rl_time, yhzgx
|
|
|
, work_unit, province_id, province, city_id, city, region_id, region, village_towns_id, village_towns
|
|
|
, village_id, village, villager_group_id, villager_group, now_in, remark,grid_id, status,is_confirm,confirm_info_user,confirm_info_nike_user,confirm_info_user_time, create_by, create_time
|
|
|
- , update_by, update_time, is_del, delete_reason, dept_id, is_rl, key_industries from czrk
|
|
|
+ , update_by, update_time, is_del, delete_reason, is_rl, key_industries from czrk
|
|
|
</sql>
|
|
|
|
|
|
<select id="listByRlry" resultMap="CzrkResult">
|
|
@@ -110,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isRl != null and isRl != ''">and is_rl = #{isRl}</if>
|
|
|
|
|
|
<if test="userName != null and userName != ''">
|
|
|
- and user_name like concat('%', #{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>
|
|
@@ -191,7 +191,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isRl != null and isRl != ''">and czrk.is_rl = #{isRl}</if>
|
|
|
|
|
|
<if test="userName != null and userName != ''">
|
|
|
- and (czrk.user_name like concat('%', #{userName}, '%') or czrk.id_card like concat('%', #{userName}, '%'))
|
|
|
+ and (czrk.user_name like concat(#{userName}, '%') or czrk.id_card like concat( #{userName}, '%'))
|
|
|
</if>
|
|
|
<if test="params.startAge != null and params.startAge != ''">and czrk.age >= #{params.startAge}</if>
|
|
|
<if test="params.endAge != null and params.endAge != ''">and czrk.age <= #{params.endAge}</if>
|
|
@@ -247,7 +247,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from czrk vi
|
|
|
where vi.is_del = 'N' and vi.create_time >= #{startTime} and vi.create_time <= #{endTime}
|
|
|
<if test="userName != null and userName != ''">
|
|
|
- and (vi.user_name like concat('%', #{userName}, '%') or vi.id_card like concat('%', #{userName}, '%'))
|
|
|
+ and (vi.user_name like concat( #{userName}, '%') or vi.id_card like concat( #{userName}, '%'))
|
|
|
</if>
|
|
|
<if test="villageTowns != null and villageTowns != ''">
|
|
|
and vi.village_towns = #{villageTowns}
|
|
@@ -259,7 +259,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="city != null and city != ''"> and vi.city = #{city}</if>
|
|
|
<if test="region != null and region != ''"> and vi.region = #{region}</if>
|
|
|
<if test="gender != null and gender != ''"> and vi.gender = #{gender}</if>
|
|
|
- <if test="idCard != null and idCard != ''"> and vi.id_card like concat('%', #{idCard}, '%')</if>
|
|
|
+ <if test="idCard != null and idCard != ''"> and vi.id_card like concat(#{idCard}, '%')</if>
|
|
|
<if test="phoneNum != null and phoneNum != ''"> and vi.phone_num = #{phoneNum}</if>
|
|
|
<!--<if test="params.startAge != null and params.startAge != ''"> and vi.age >= #{params.startAge}</if>
|
|
|
<if test="params.endAge != null and params.endAge != ''"> and vi.age <= #{params.endAge}</if>-->
|
|
@@ -310,7 +310,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from czrk vi
|
|
|
where vi.is_del = 'Y' and vi.update_time >= #{startTime} and vi.update_time <= #{endTime}
|
|
|
<if test="userName != null and userName != ''">
|
|
|
- and (vi.user_name like concat('%', #{userName}, '%') or vi.id_card like concat('%', #{userName}, '%'))
|
|
|
+ and (vi.user_name like concat(#{userName}, '%') or vi.id_card like concat(#{userName}, '%'))
|
|
|
</if>
|
|
|
<if test="villageTowns != null and villageTowns != ''">
|
|
|
and vi.village_towns = #{villageTowns}
|
|
@@ -321,9 +321,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="province != null and province != ''"> and vi.province = #{province}</if>
|
|
|
<if test="city != null and city != ''"> and vi.city = #{city}</if>
|
|
|
<if test="region != null and region != ''"> and vi.region = #{region}</if>
|
|
|
- <if test="userName != null and userName != ''"> and vi.user_name like concat('%', #{userName}, '%')</if>
|
|
|
+ <if test="userName != null and userName != ''"> and vi.user_name like concat(#{userName}, '%')</if>
|
|
|
<if test="gender != null and gender != ''"> and vi.gender = #{gender}</if>
|
|
|
- <if test="idCard != null and idCard != ''"> and vi.id_card like concat('%', #{idCard}, '%')</if>
|
|
|
+ <if test="idCard != null and idCard != ''"> and vi.id_card like concat(#{idCard}, '%')</if>
|
|
|
<if test="phoneNum != null and phoneNum != ''"> and vi.phone_num = #{phoneNum}</if>
|
|
|
<!--<if test="params.startAge != null and params.startAge != ''"> and vi.age >= #{params.startAge}</if>
|
|
|
<if test="params.endAge != null and params.endAge != ''"> and vi.age <= #{params.endAge}</if>-->
|
|
@@ -547,7 +547,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 已认领 -->
|
|
|
and vi.is_rl = '是'
|
|
|
<if test="userName != null and userName != ''">
|
|
|
- and (vi.user_name like concat('%', #{userName}, '%') or vi.id_card like concat('%', #{userName}, '%'))
|
|
|
+ and (vi.user_name like concat(#{userName}, '%') or vi.id_card like concat(#{userName}, '%'))
|
|
|
</if>
|
|
|
<if test="houseType != null and houseType != ''">
|
|
|
and vi.house_type = #{houseType}
|
|
@@ -569,7 +569,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from czrk
|
|
|
where is_del = 'N'
|
|
|
<if test="userName != null and userName != ''">
|
|
|
- and user_name like concat('%', #{userName}, '%')
|
|
|
+ and user_name like concat(#{userName}, '%')
|
|
|
</if>
|
|
|
<choose>
|
|
|
<when test="type == 1">and province_id = #{areaId}</when>
|
|
@@ -599,7 +599,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 未认领 -->
|
|
|
and vi.is_rl = '否'
|
|
|
<if test="userName != null and userName != ''">
|
|
|
- and (vi.user_name like concat('%', #{userName}, '%') or vi.id_card like concat('%', #{userName}, '%'))
|
|
|
+ and (vi.user_name like concat(#{userName}, '%') or vi.id_card like concat(#{userName}, '%'))
|
|
|
</if>
|
|
|
<if test="houseType != null and houseType != ''">
|
|
|
and vi.house_type = #{houseType}
|
|
@@ -819,7 +819,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
czrk.is_del = 'N' and jzdz.status = 'Y'
|
|
|
<if test="userName != null and userName != ''">
|
|
|
- and (czrk.user_name like concat('%', #{userName}, '%') or czrk.id_card like concat('%', #{userName}, '%'))
|
|
|
+ and (czrk.user_name like concat(#{userName}, '%') or czrk.id_card like concat(#{userName}, '%'))
|
|
|
</if>
|
|
|
<if test="houseType != null and houseType != ''">
|
|
|
and czrk.house_type = #{houseType}
|
|
@@ -1000,7 +1000,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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}, '%') or c.id_card like concat('%', #{userName}, '%'))
|
|
|
+ and (c.user_name like concat(#{userName}, '%') or c.id_card 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>
|
|
@@ -1075,4 +1075,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectCzrkVo"/>
|
|
|
where is_del = 'N' and id_card = #{idCard} limit 1;
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectLost" resultMap="CzrkResult">
|
|
|
+ <include refid="selectCzrkVo"/>
|
|
|
+ where is_confirm = 'Y' and (village_towns is null or village_towns = '') and is_del ='N'
|
|
|
+ </select>
|
|
|
</mapper>
|