|
@@ -42,6 +42,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="isDel" column="is_del" />
|
|
|
<result property="deleteReason" column="delete_reason" />
|
|
|
+ <collection property="czrkJzdzList" javaType="java.util.List" resultMap="CzrkJzdzResult" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <resultMap type="com.boman.domain.CzrkJzdz" id="CzrkJzdzResult">
|
|
|
+ <result property="provinceId" column="province_id_jzdz" />
|
|
|
+ <result property="province" column="province_jzdz" />
|
|
|
+ <result property="cityId" column="city_id_jzdz" />
|
|
|
+ <result property="city" column="city_jzdz" />
|
|
|
+ <result property="regionId" column="region_id_jzdz" />
|
|
|
+ <result property="region" column="region_jzdz" />
|
|
|
+ <result property="townId" column="town_id_jzdz" />
|
|
|
+ <result property="town" column="town_jzdz" />
|
|
|
+ <result property="villageId" column="village_id_jzdz" />
|
|
|
+ <result property="village" column="village_jzdz" />
|
|
|
+ <result property="nowIn" column="now_in_jzdz" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCzrkVo">
|
|
@@ -542,4 +557,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
, update_time = sysdate()
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="findHjInfo" resultMap="CzrkResult">
|
|
|
+ select c.id, c.user_name ,c.gender, c.birthday,c.age,c.code,c.phone_num,c.key_industries,c.province_id,c.province,c.city_id,c.city,c.region_id,c.region,c.village_towns_id,c.village_towns,c.village_id,c.village,c.villager_group_id,c.villager_group,
|
|
|
+ c.now_in,c.house_type,c.code,c.yhzgx,c.remark,
|
|
|
+ cj.province_id as province_id_jzdz,cj.province as province_jzdz,cj.city_id as city_id_jzdz,cj.city as city_jzdz,cj.region_id as region_id_jzdz,cj.region as region_jzdz,cj.town_id as town_id_jzdz,cj.town as town_jzdz,cj.village_id as village_id_jzdz,cj.village as village_jzdz,cj.now_in as now_in_jzdz
|
|
|
+ from czrk c left join czrk_jzdz cj on c.id_card = cj.id_card
|
|
|
+ <where>
|
|
|
+ c.is_del = 'N'
|
|
|
+ and cj.status = 'Y'
|
|
|
+ <if test="idCard != null and idCard != '' "> and c.id_card = #{idCard}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|