|
@@ -1247,6 +1247,47 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
+ <select id="getAllCzrkNoTown" 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'
|
|
|
|
+ <!-- 已认领 -->
|
|
|
|
+ and cj.region_id = '340882000000'
|
|
|
|
+ and (cj.town_id = '' or cj.town_id = '0')
|
|
|
|
+ </where>
|
|
|
|
+ order by c.code ,c.house_type desc,c.id_card;
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
<select id="listByCzrkJzdz" resultMap="CzrkResult">
|
|
<select id="listByCzrkJzdz" resultMap="CzrkResult">
|
|
select c.id, c.user_name, c.phone_num,c.dept_id, c.id_card,
|
|
select c.id, c.user_name, c.phone_num,c.dept_id, c.id_card,
|
|
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
|