|
@@ -35,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="villagerGroup" column="villager_group" />
|
|
<result property="villagerGroup" column="villager_group" />
|
|
<result property="nowIn" column="now_in" />
|
|
<result property="nowIn" column="now_in" />
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
|
|
+ <result property="gridId" column="grid_id" />
|
|
<result property="status" column="status" />
|
|
<result property="status" column="status" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
@@ -62,12 +63,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<sql id="selectCzrkVo">
|
|
<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, rl_time, yhzgx
|
|
, work_unit, province_id, province, city_id, city, region_id, region, village_towns_id, village_towns
|
|
, 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, status, create_by, create_time
|
|
|
|
|
|
+ , village_id, village, villager_group_id, villager_group, now_in, remark,grid_id, status, create_by, create_time
|
|
, update_by, update_time, is_del, delete_reason, dept_id, is_rl, key_industries from czrk
|
|
, update_by, update_time, is_del, delete_reason, dept_id, is_rl, key_industries from czrk
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="listByRlry" resultMap="CzrkResult">
|
|
<select id="listByRlry" resultMap="CzrkResult">
|
|
- select id, user_name, phone_num,dept_id, id_card, gender, province, city, region
|
|
|
|
|
|
+ select id, user_name, phone_num,dept_id, id_card, gender, province, city, region,grid_id
|
|
, house_type, update_by, code, rlr, update_time, delete_reason, now_in
|
|
, house_type, update_by, code, rlr, update_time, delete_reason, now_in
|
|
from czrk
|
|
from czrk
|
|
<where>
|
|
<where>
|
|
@@ -106,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
|
|
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
|
|
<if test="deleteReason != null and deleteReason != ''"> and delete_reason = #{deleteReason}</if>
|
|
<if test="deleteReason != null and deleteReason != ''"> and delete_reason = #{deleteReason}</if>
|
|
|
|
+ <if test="gridId != null and gridId != ''"> and grid_id = #{gridId}</if>
|
|
<if test="deptIdList != null and deptIdList.size() > 0">
|
|
<if test="deptIdList != null and deptIdList.size() > 0">
|
|
and dept_id in
|
|
and dept_id in
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
|
|
@@ -185,6 +187,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="status != null and status != ''"> and czrk.status = #{status}</if>
|
|
<if test="status != null and status != ''"> and czrk.status = #{status}</if>
|
|
<if test="isDel != null and isDel != ''"> and czrk.is_del = #{isDel}</if>
|
|
<if test="isDel != null and isDel != ''"> and czrk.is_del = #{isDel}</if>
|
|
<if test="deleteReason != null and deleteReason != ''"> and czrk.delete_reason = #{deleteReason}</if>
|
|
<if test="deleteReason != null and deleteReason != ''"> and czrk.delete_reason = #{deleteReason}</if>
|
|
|
|
+ <if test="gridId != null and gridId != ''"> and czrk.grid_id = #{gridId}</if>
|
|
|
|
+
|
|
<if test="deptIdList != null and deptIdList.size() > 0">
|
|
<if test="deptIdList != null and deptIdList.size() > 0">
|
|
and czrk.dept_id in
|
|
and czrk.dept_id in
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
|
|
@@ -222,6 +226,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="birthday != null and birthday != ''"> and vi.birthday = #{birthday}</if>
|
|
<if test="birthday != null and birthday != ''"> and vi.birthday = #{birthday}</if>
|
|
<if test="workUnit != null and workUnit != ''"> and vi.work_unit = #{workUnit}</if>
|
|
<if test="workUnit != null and workUnit != ''"> and vi.work_unit = #{workUnit}</if>
|
|
<if test="nowIn != null and nowIn != ''"> and vi.now_in = #{nowIn}</if>
|
|
<if test="nowIn != null and nowIn != ''"> and vi.now_in = #{nowIn}</if>
|
|
|
|
+ <if test="gridId != null and gridId != ''"> and vi.grid_id = #{gridId}</if>
|
|
|
|
+
|
|
<if test="deptIdList != null and deptIdList.size() > 0">
|
|
<if test="deptIdList != null and deptIdList.size() > 0">
|
|
and vi.dept_id in
|
|
and vi.dept_id in
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
|
|
@@ -284,6 +290,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="birthday != null and birthday != ''"> and vi.birthday = #{birthday}</if>
|
|
<if test="birthday != null and birthday != ''"> and vi.birthday = #{birthday}</if>
|
|
<if test="workUnit != null and workUnit != ''"> and vi.work_unit = #{workUnit}</if>
|
|
<if test="workUnit != null and workUnit != ''"> and vi.work_unit = #{workUnit}</if>
|
|
<if test="nowIn != null and nowIn != ''"> and vi.now_in = #{nowIn}</if>
|
|
<if test="nowIn != null and nowIn != ''"> and vi.now_in = #{nowIn}</if>
|
|
|
|
+ <if test="gridId != null and gridId != ''"> and vi.grid_id = #{gridId}</if>
|
|
|
|
+
|
|
<if test="deptIdList != null and deptIdList.size() > 0">
|
|
<if test="deptIdList != null and deptIdList.size() > 0">
|
|
and vi.dept_id in
|
|
and vi.dept_id in
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
|
|
@@ -433,6 +441,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="villagerGroup != null">villager_group,</if>
|
|
<if test="villagerGroup != null">villager_group,</if>
|
|
<if test="nowIn != null">now_in,</if>
|
|
<if test="nowIn != null">now_in,</if>
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
|
|
+ <if test="gridId != null">grid_id,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="status != null">status,</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>
|
|
@@ -469,6 +478,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="villagerGroup != null">#{villagerGroup},</if>
|
|
<if test="villagerGroup != null">#{villagerGroup},</if>
|
|
<if test="nowIn != null">#{nowIn},</if>
|
|
<if test="nowIn != null">#{nowIn},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
+ <if test="gridId != null">#{gridId},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="status != null">#{status},</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>
|
|
@@ -508,6 +518,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="villagerGroup != null">villager_group = #{villagerGroup},</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="remark != null">remark = #{remark},</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="status != null">status = #{status},</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>
|