|
@@ -55,6 +55,9 @@
|
|
<result property="isNucleicAcid" column="is_nucleicAcid"/>
|
|
<result property="isNucleicAcid" column="is_nucleicAcid"/>
|
|
<result property="nucleicAcidTime" column="nucleicAcid_time"/>
|
|
<result property="nucleicAcidTime" column="nucleicAcid_time"/>
|
|
|
|
|
|
|
|
+ <result property="toAppropriatePhone" column="to_appropriate_phone"/>
|
|
|
|
+ <result property="toAppropriateTime" column="to_appropriate_time"/>
|
|
|
|
+
|
|
|
|
|
|
<result property="provinceXjd" column="provinceXjd"/>
|
|
<result property="provinceXjd" column="provinceXjd"/>
|
|
<result property="cityXjd" column="cityXjd"/>
|
|
<result property="cityXjd" column="cityXjd"/>
|
|
@@ -114,7 +117,7 @@
|
|
<select id="listByCzrk" resultMap="CzrkResult">
|
|
<select id="listByCzrk" resultMap="CzrkResult">
|
|
select id, user_name, phone_num, id_card, gender, province, city, region, village_towns, village,
|
|
select id, user_name, phone_num, id_card, gender, province, city, region, village_towns, village,
|
|
villager_group, grid_id, house_type, code,is_rl,
|
|
villager_group, grid_id, house_type, code,is_rl,
|
|
- rlr,rlr_nike,now_in,is_confirm,confirm_info_user,confirm_info_nike_user,confirm_info_user_time,is_nucleicAcid,nucleicAcid_time
|
|
|
|
|
|
+ rlr,rlr_nike,now_in,is_confirm,confirm_info_user,confirm_info_nike_user,confirm_info_user_time,is_nucleicAcid,nucleicAcid_time,to_appropriate_phone
|
|
from czrk
|
|
from czrk
|
|
<where>
|
|
<where>
|
|
is_del = 'N'
|
|
is_del = 'N'
|
|
@@ -1247,6 +1250,51 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <select id="getAllCzrkHjVillage" resultMap="CzrkResult">
|
|
|
|
+ select
|
|
|
|
+ ANY_VALUE(c.user_name) as user_name,
|
|
|
|
+ ANY_VALUE(c.is_nucleicAcid) as is_nucleicAcid,
|
|
|
|
+ ANY_VALUE(c.nucleicAcid_time) as nucleicAcid_time,
|
|
|
|
+ ANY_VALUE(c.age) as age,
|
|
|
|
+ <!--ANY_VALUE(STUFF (c.id_card, 7, 8, '********')) AS id_card,-->
|
|
|
|
+ ANY_VALUE(c.id_card) AS id_card,
|
|
|
|
+ ANY_VALUE(c.province) as province,
|
|
|
|
+ ANY_VALUE(c.city) as city,
|
|
|
|
+ ANY_VALUE(c.region) as region,
|
|
|
|
+ ANY_VALUE(c.village_towns) as village_towns,
|
|
|
|
+ ANY_VALUE(c.village) as village,
|
|
|
|
+ ANY_VALUE(c.villager_group) as villager_group,
|
|
|
|
+ ANY_VALUE(REPLACE (c.now_in, '/', '')) AS now_in,
|
|
|
|
+ ANY_VALUE(c.key_industries) as key_industries,
|
|
|
|
+ ANY_VALUE(c.gender) as gender,
|
|
|
|
+ ANY_VALUE(c.phone_num) as phone_num,
|
|
|
|
+ ANY_VALUE(c.CODE) as CODE,
|
|
|
|
+ ANY_VALUE(c.house_type) as house_type,
|
|
|
|
+ ANY_VALUE(c.yhzgx) as yhzgx,
|
|
|
|
+ ANY_VALUE(cj.province) AS provinceXjd,
|
|
|
|
+ ANY_VALUE(cj.city) AS cityXjd,
|
|
|
|
+ ANY_VALUE(cj.region) AS regionXjd,
|
|
|
|
+ ANY_VALUE(cj.town) AS villageTownsXjd,
|
|
|
|
+ ANY_VALUE(cj.village) AS villageXjd,
|
|
|
|
+ ANY_VALUE(REPLACE (cj.now_in, '/', '')) AS nowXjd
|
|
|
|
+ from czrk c
|
|
|
|
+ left join czrk_jzdz cj on c.id =cj.czrk_id
|
|
|
|
+ <where>
|
|
|
|
+ c.is_del = 'N'
|
|
|
|
+ and c.status = '1'
|
|
|
|
+ <!-- 已认领 -->
|
|
|
|
+ <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>
|
|
|
|
+ and (c.village_id = '' or c.village_id = '0')
|
|
|
|
+ </where>
|
|
|
|
+ order by c.code ,c.house_type desc,c.id_card;
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
<select id="getAllCzrkNoTownCz" resultMap="CzrkResult">
|
|
<select id="getAllCzrkNoTownCz" resultMap="CzrkResult">
|
|
select
|
|
select
|
|
ANY_VALUE(c.user_name) as user_name,
|
|
ANY_VALUE(c.user_name) as user_name,
|
|
@@ -1334,7 +1382,7 @@
|
|
z.province as provinceXjd, z.city as cityXjd,z.region as regionXjd, z.town as villageTownsXjd, z.village as
|
|
z.province as provinceXjd, z.city as cityXjd,z.region as regionXjd, z.town as villageTownsXjd, z.village as
|
|
villageXjd,z.now_in,
|
|
villageXjd,z.now_in,
|
|
c.gender, c.grid_id, c.house_type, c.update_by, c.code, c.rlr,c.rlr_nike,
|
|
c.gender, c.grid_id, c.house_type, c.update_by, c.code, c.rlr,c.rlr_nike,
|
|
- c.is_confirm,c.confirm_info_user,c.confirm_info_nike_user,c.confirm_info_user_time,c.is_nucleicAcid,c.nucleicAcid_time
|
|
|
|
|
|
+ c.is_confirm,c.confirm_info_user,c.confirm_info_nike_user,c.confirm_info_user_time,c.is_nucleicAcid,c.nucleicAcid_time,c.to_appropriate_phone
|
|
from czrk c left join czrk_jzdz z on c.id =z.czrk_id
|
|
from czrk c left join czrk_jzdz z on c.id =z.czrk_id
|
|
<where>
|
|
<where>
|
|
c.is_del = 'N'
|
|
c.is_del = 'N'
|