|
@@ -21,6 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="town" column="town" />
|
|
<result property="town" column="town" />
|
|
<result property="villageId" column="village_id" />
|
|
<result property="villageId" column="village_id" />
|
|
<result property="village" column="village" />
|
|
<result property="village" column="village" />
|
|
|
|
+ <result property="villagerGroupId" column="villager_group_id" />
|
|
|
|
+ <result property="villagerGroup" column="villager_group" />
|
|
<result property="nowIn" column="now_in" />
|
|
<result property="nowIn" column="now_in" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
@@ -30,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCzrkJzdzVo">
|
|
<sql id="selectCzrkJzdzVo">
|
|
- select id, czrk_id, id_card, user_name, sort, dept_id, province_id, province, city_id, city, region_id, region, town_id, town, village_id, village, now_in, create_by, create_time, update_by, update_time, status from czrk_jzdz
|
|
|
|
|
|
+ select id, czrk_id, id_card, user_name, sort, dept_id, province_id, province, city_id, city, region_id, region, town_id, town, village_id, village,villager_group,villager_group_id now_in, create_by, create_time, update_by, update_time, status from czrk_jzdz
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectCzrkJzdzList" resultMap="CzrkJzdzResult">
|
|
<select id="selectCzrkJzdzList" resultMap="CzrkJzdzResult">
|
|
@@ -130,6 +132,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="town != null">town,</if>
|
|
<if test="town != null">town,</if>
|
|
<if test="villageId != null">village_id,</if>
|
|
<if test="villageId != null">village_id,</if>
|
|
<if test="village != null">village,</if>
|
|
<if test="village != null">village,</if>
|
|
|
|
+ <if test="villagerGroupId != null">villager_group_id,</if>
|
|
|
|
+ <if test="villagerGroup != null">villager_group,</if>
|
|
<if test="nowIn != null">now_in,</if>
|
|
<if test="nowIn != null">now_in,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -153,6 +157,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="town != null">#{town},</if>
|
|
<if test="town != null">#{town},</if>
|
|
<if test="villageId != null">#{villageId},</if>
|
|
<if test="villageId != null">#{villageId},</if>
|
|
<if test="village != null">#{village},</if>
|
|
<if test="village != null">#{village},</if>
|
|
|
|
+ <if test="villagerGroupId != null">#{villagerGroupId},</if>
|
|
|
|
+ <if test="villagerGroup != null">#{villagerGroup},</if>
|
|
<if test="nowIn != null">#{nowIn},</if>
|
|
<if test="nowIn != null">#{nowIn},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -180,6 +186,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="town != null">town = #{town},</if>
|
|
<if test="town != null">town = #{town},</if>
|
|
<if test="villageId != null">village_id = #{villageId},</if>
|
|
<if test="villageId != null">village_id = #{villageId},</if>
|
|
<if test="village != null">village = #{village},</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="nowIn != null">now_in = #{nowIn},</if>
|
|
<if test="nowIn != null">now_in = #{nowIn},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
@@ -208,6 +216,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="town != null">town = #{town},</if>
|
|
<if test="town != null">town = #{town},</if>
|
|
<if test="villageId != null">village_id = #{villageId},</if>
|
|
<if test="villageId != null">village_id = #{villageId},</if>
|
|
<if test="village != null">village = #{village},</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="nowIn != null">now_in = #{nowIn},</if>
|
|
<if test="nowIn != null">now_in = #{nowIn},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
@@ -236,6 +246,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="town != null">town = #{town},</if>
|
|
<if test="town != null">town = #{town},</if>
|
|
<if test="villageId != null">village_id = #{villageId},</if>
|
|
<if test="villageId != null">village_id = #{villageId},</if>
|
|
<if test="village != null">village = #{village},</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="nowIn != null">now_in = #{nowIn},</if>
|
|
<if test="nowIn != null">now_in = #{nowIn},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
@@ -360,4 +372,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where 1=1 and status = #{status} and create_time >= #{todayStartStr} and create_time <= #{todayEndStr} and region_id = #{regionId}
|
|
where 1=1 and status = #{status} and create_time >= #{todayStartStr} and create_time <= #{todayEndStr} and region_id = #{regionId}
|
|
group by id_card
|
|
group by id_card
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <select id="selectChinaArea" resultType="java.lang.String">
|
|
|
|
+ select a.name from china_area as a where area_id = #{areaId}
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|