|
@@ -17,6 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="code" column="code" />
|
|
|
<result property="houseType" column="house_type" />
|
|
|
<result property="rlr" column="rlr" />
|
|
|
+ <result property="rlrNike" column="rlr_nike" />
|
|
|
<result property="rlTime" column="rl_time" />
|
|
|
<result property="keyIndustries" column="key_industries" />
|
|
|
<result property="yhzgx" column="yhzgx" />
|
|
@@ -40,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="status" column="status" />
|
|
|
<result property="isConfirm" column="is_confirm" />
|
|
|
<result property="confirmInfoUser" column="confirm_info_user" />
|
|
|
+ <result property="confirmInfoNikeUser" column="confirm_info_nike_user" />
|
|
|
<result property="confirmInfoUserTime" column="confirm_info_user_time" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
@@ -89,15 +91,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="czrkId" column="czrk_id" />
|
|
|
</resultMap>
|
|
|
<sql id="selectCzrkVo">
|
|
|
- select id, user_name, gender, age, birthday,dept_id, id_card, phone_num, code, house_type, rlr, rl_time, yhzgx
|
|
|
+ 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_user_time, create_by, create_time
|
|
|
+ , 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
|
|
|
</sql>
|
|
|
|
|
|
<select id="listByRlry" 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, update_time, delete_reason, now_in,is_confirm,confirm_info_user,confirm_info_user_time
|
|
|
+ , 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
|
|
|
<where>
|
|
|
<!-- 已认领 -->
|
|
@@ -444,7 +446,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="countByCzJs1" resultType="int">
|
|
|
SELECT count(DISTINCT(jzdz.id_card)) from czrk_jzdz jzdz
|
|
|
- where jzdz.status = 'N' and jzdz.update_time >= #{startTime} and jzdz.update_time <= #{endTime}
|
|
|
+ where jzdz.status = 'N' and jzdz.create_time >= #{startTime} and jzdz.create_time <= #{endTime}
|
|
|
<if test="deptIdList != null and deptIdList.size() > 0">
|
|
|
and jzdz.dept_id in
|
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
|
|
@@ -710,28 +712,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="keyIndustries != null">key_industries = #{keyIndustries},</if>
|
|
|
<if test="houseType != null">house_type = #{houseType},</if>
|
|
|
<if test="rlr != null">rlr = #{rlr},</if>
|
|
|
+ <if test="rlrNike != null">rlr_nike = #{rlrNike},</if>
|
|
|
<if test="isRl != null">is_rl = #{isRl},</if>
|
|
|
<if test="rlTime != null">rl_time = #{rlTime},</if>
|
|
|
<if test="yhzgx != null">yhzgx = #{yhzgx},</if>
|
|
|
<if test="workUnit != null">work_unit = #{workUnit},</if>
|
|
|
- <if test="provinceId != null">province_id = #{provinceId},</if>
|
|
|
- <if test="province != null">province = #{province},</if>
|
|
|
- <if test="cityId != null">city_id = #{cityId},</if>
|
|
|
- <if test="city != null">city = #{city},</if>
|
|
|
- <if test="regionId != null">region_id = #{regionId},</if>
|
|
|
- <if test="region != null">region = #{region},</if>
|
|
|
- <if test="villageTownsId != null">village_towns_id = #{villageTownsId},</if>
|
|
|
- <if test="villageTowns != null">village_towns = #{villageTowns},</if>
|
|
|
- <if test="villageId != null">village_id = #{villageId},</if>
|
|
|
- <if test="village != null">village = #{village},</if>
|
|
|
- <if test="villagerGroupId != null">villager_group_id = #{villagerGroupId},</if>
|
|
|
- <if test="villagerGroup != null">villager_group = #{villagerGroup},</if>
|
|
|
+ <if test="provinceId != ''">province_id = #{provinceId},</if>
|
|
|
+ <if test="province != ''">province = #{province},</if>
|
|
|
+ <if test="cityId != ''">city_id = #{cityId},</if>
|
|
|
+ <if test="city != ''">city = #{city},</if>
|
|
|
+ <if test="regionId != ''">region_id = #{regionId},</if>
|
|
|
+ <if test="region != ''">region = #{region},</if>
|
|
|
+ <if test="villageTownsId != ''">village_towns_id = #{villageTownsId},</if>
|
|
|
+ <if test="villageTowns != ''">village_towns = #{villageTowns},</if>
|
|
|
+ <if test="villageId != ''">village_id = #{villageId},</if>
|
|
|
+ <if test="village != ''">village = #{village},</if>
|
|
|
+ <if test="villagerGroupId != ''">villager_group_id = #{villagerGroupId},</if>
|
|
|
+ <if test="villagerGroup != ''">villager_group = #{villagerGroup},</if>
|
|
|
<if test="nowIn != null">now_in = #{nowIn},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="gridId != null">grid_id = #{gridId},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="isConfirm != null and isConfirm != ''">is_confirm = #{isConfirm},</if>
|
|
|
<if test="confirmInfoUser != null and confirmInfoUser != ''">confirm_info_user = #{confirmInfoUser},</if>
|
|
|
+ <if test="confirmInfoNikeUser != null and confirmInfoNikeUser != ''">confirm_info_nike_user = #{confirmInfoNikeUser},</if>
|
|
|
<if test="confirmInfoUserTime != null ">confirm_info_user_time = #{confirmInfoUserTime},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
@@ -969,11 +973,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into confim_info_user
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="confirmInfoUser != null">confirm_info_user,</if>
|
|
|
+ <if test="confirmInfoNikeUser != null">confirm_info_nike_user,</if>
|
|
|
<if test="czrkId != null">czrk_id,</if>
|
|
|
create_time
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="confirmInfoUser != null">#{confirmInfoUser},</if>
|
|
|
+ <if test="confirmInfoNikeUser != null">#{confirmInfoNikeUser},</if>
|
|
|
<if test="czrkId != null">#{czrkId},</if>
|
|
|
sysdate()
|
|
|
</trim>
|
|
@@ -982,7 +988,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectCzrkList" resultMap="CzrkResult">
|
|
|
- select c.id,z.id as czrk_jzdz_id,c.user_name,c.id_card,z.province_id, z.province, z.city_id, z.city, z.region_id, z.region, z.town_id as village_towns_id, z.town as village_towns, z.village_id, z.village, z.now_in,c.phone_num,c.house_type,c.rlr,c.confirm_info_user,c.confirm_info_user_time
|
|
|
+ select c.id,z.id as czrk_jzdz_id,c.user_name,c.id_card,z.province_id, z.province, z.city_id, z.city, z.region_id, z.region, z.town_id as village_towns_id, z.town as village_towns, z.village_id, z.village, z.now_in,c.phone_num,c.house_type,c.rlr,c.rlr_nike,c.confirm_info_user,c.confirm_info_nike_user,c.confirm_info_user_time
|
|
|
from czrk_jzdz z left join czrk c on c.id = z.czrk_id
|
|
|
<where>
|
|
|
<!-- 已认领 -->
|