123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.boman.web.core.mapper.CzrkMapper">
-
- <resultMap type="com.boman.domain.Czrk" id="CzrkResult">
- <result property="id" column="id" />
- <result property="userName" column="user_name" />
- <result property="gender" column="gender" />
- <result property="age" column="age" />
- <result property="birthday" column="birthday" />
- <result property="deptId" column="dept_id" />
- <result property="idCard" column="id_card" />
- <result property="phoneNum" column="phone_num" />
- <result property="code" column="code" />
- <result property="houseType" column="house_type" />
- <result property="rlr" column="rlr" />
- <result property="rlTime" column="rl_time" />
- <result property="keyIndustries" column="key_industries" />
- <result property="yhzgx" column="yhzgx" />
- <result property="workUnit" column="work_unit" />
- <result property="provinceId" column="province_id" />
- <result property="province" column="province" />
- <result property="cityId" column="city_id" />
- <result property="city" column="city" />
- <result property="regionId" column="region_id" />
- <result property="isRl" column="is_rl" />
- <result property="region" column="region" />
- <result property="villageTownsId" column="village_towns_id" />
- <result property="villageTowns" column="village_towns" />
- <result property="villageId" column="village_id" />
- <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="remark" column="remark" />
- <result property="gridId" column="grid_id" />
- <result property="status" column="status" />
- <result property="isConfirm" column="is_confirm" />
- <result property="confirmInfoUser" column="confirm_info_user" />
- <result property="confirmInfoUserTime" column="confirm_info_user_time" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateBy" column="update_by" />
- <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>
- <resultMap type="com.boman.domain.SysDept" id="SysDeptResult">
- <id property="id" column="id" />
- <result property="parentId" column="parent_id" />
- <result property="ancestors" column="ancestors" />
- <result property="deptName" column="dept_name" />
- <result property="orderNum" column="order_num" />
- <result property="leader" column="leader" />
- <result property="phone" column="phone" />
- <result property="email" column="email" />
- <result property="status" column="status" />
- <result property="delFlag" column="del_flag" />
- <result property="parentName" column="parent_name" />
- <result property="num" column="num" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- </resultMap>
- <resultMap type="com.boman.web.core.domain.ConfirmInfoUser" id="ConfrimInforUserResult">
- <result property="confirmInfoUser" column="confirm_info_user" />
- <result property="czrkId" column="czrk_id" />
- </resultMap>
- <sql id="selectCzrkVo">
- 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
- , village_id, village, villager_group_id, villager_group, now_in, remark,grid_id, status,is_confirm,confirm_info_user,confirm_info_user_time, create_by, create_time
- , update_by, update_time, is_del, delete_reason, dept_id, is_rl, key_industries from czrk
- </sql>
- <select id="listByRlry" resultMap="CzrkResult">
- select id, user_name, phone_num,dept_id, id_card, gender, province, city, region, village_towns, village, villager_group, grid_id
- , house_type, update_by, code, rlr, update_time, delete_reason, now_in,is_confirm,confirm_info_user,confirm_info_user_time
- from czrk
- <where>
- <!-- 已认领 -->
- <if test="isRl != null and isRl != ''">and is_rl = #{isRl}</if>
- <if test="userName != null and userName != ''">
- and (user_name like concat('%', #{userName}, '%') or id_card like concat('%', #{userName}, '%'))
- </if>
- <if test="params.startAge != null and params.startAge != ''">and age >= #{params.startAge}</if>
- <if test="params.endAge != null and params.endAge != ''">and age <= #{params.endAge}</if>
- <if test="gender != null and gender != ''"> and gender = #{gender}</if>
- <if test="age != null "> and age = #{age}</if>
- <if test="birthday != null "> and birthday = #{birthday}</if>
- <if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
- <if test="phoneNum != null and phoneNum != ''"> and phone_num = #{phoneNum}</if>
- <if test="code != null and code != ''"> and code = #{code}</if>
- <if test="houseType != null and houseType != ''"> and house_type = #{houseType}</if>
- <if test="rlr != null and rlr != ''"> and rlr = #{rlr}</if>
- <if test="rlTime != null "> and rl_time = #{rlTime}</if>
- <if test="yhzgx != null and yhzgx != ''"> and yhzgx = #{yhzgx}</if>
- <if test="workUnit != null and workUnit != ''"> and work_unit = #{workUnit}</if>
- <if test="provinceId != null and provinceId != ''"> and province_id = #{provinceId}</if>
- <if test="province != null and province != ''"> and province = #{province}</if>
- <if test="cityId != null and cityId != ''"> and city_id = #{cityId}</if>
- <if test="city != null and city != ''"> and city = #{city}</if>
- <if test="regionId != null and regionId != ''"> and region_id = #{regionId}</if>
- <if test="region != null and region != ''"> and region = #{region}</if>
- <if test="villageTownsId != null and villageTownsId != ''"> and village_towns_id = #{villageTownsId}</if>
- <if test="villageTowns != null and villageTowns != ''"> and village_towns = #{villageTowns}</if>
- <if test="villageId != null and villageId != ''"> and village_id = #{villageId}</if>
- <if test="village != null and village != ''"> and village = #{village}</if>
- <!-- <if test="villagerGroupId != null and villagerGroupId != ''"> and villager_group_id = #{villagerGroupId}</if>
- <if test="villagerGroup != null and villagerGroup != ''"> and villager_group = #{villagerGroup}</if>-->
- <if test="nowIn != null and nowIn != ''"> and now_in = #{nowIn}</if>
- <if test="status != null and status != ''"> and status = #{status}</if>
- <if test="isConfirm != null and isConfirm != ''"> and is_confirm = #{isConfirm}</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="gridId != null and gridId != ''"> and grid_id = #{gridId}</if>
- <if test="deptIdList != null and deptIdList.size() > 0">
- and dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- <if test="idCardList != null and idCardList.size() > 0">
- and id_card in
- <foreach item="idCard" collection="idCardList" open="(" separator="," close=")">
- #{idCard}
- </foreach>
- </if>
- </where>
- order by create_time DESC
- </select>
- <select id="listByRlryRel" resultType="com.boman.domain.Czrk">
- SELECT
- czrk.id,
- ANY_VALUE(czrk.user_name) userName,
- ANY_VALUE(czrk.phone_num) phoneNum,
- ANY_VALUE(czrk.id_card) idCard,
- ANY_VALUE(czrk.gender) gender,
- ANY_VALUE(czrk.province) province,
- ANY_VALUE(czrk.is_rl) isRl,
- ANY_VALUE(czrk.city) city,
- ANY_VALUE(czrk.region) region,
- ANY_VALUE(czrk.house_type) houseType,
- ANY_VALUE(czrk.update_by) updateBy,
- ANY_VALUE(czrk. CODE) CODE,
- ANY_VALUE(czrk.rlr) rlr,
- ANY_VALUE(czrk.update_time) updateTime,
- ANY_VALUE(czrk.delete_reason) deleteReason,
- ANY_VALUE(czrk.now_in) nowIn,
- ANY_VALUE(jzdz.province) provinceXjd,
- ANY_VALUE(jzdz.city) cityXjd,
- ANY_VALUE(jzdz.region) regionXjd,
- ANY_VALUE(jzdz.town) villageTownsXjd,
- ANY_VALUE(jzdz.village) villageXjd,
- ANY_VALUE(jzdz.now_in) domicile
- from czrk
- left join czrk_jzdz jzdz on czrk.id = jzdz.czrk_id
- <where>
- jzdz.status = 'Y'
- <!-- 已认领 -->
- <if test="isRl != null and isRl != ''">and czrk.is_rl = #{isRl}</if>
- <if test="userName != null and userName != ''">
- and (czrk.user_name like concat('%', #{userName}, '%') or czrk.id_card like concat('%', #{userName}, '%'))
- </if>
- <if test="params.startAge != null and params.startAge != ''">and czrk.age >= #{params.startAge}</if>
- <if test="params.endAge != null and params.endAge != ''">and czrk.age <= #{params.endAge}</if>
- <if test="gender != null and gender != ''"> and czrk.gender = #{gender}</if>
- <if test="age != null "> and czrk.age = #{age}</if>
- <if test="birthday != null "> and czrk.birthday = #{birthday}</if>
- <if test="idCard != null and idCard != ''"> and czrk.id_card = #{idCard}</if>
- <if test="phoneNum != null and phoneNum != ''"> and czrk.phone_num = #{phoneNum}</if>
- <if test="code != null and code != ''"> and czrk.code = #{code}</if>
- <if test="houseType != null and houseType != ''"> and czrk.house_type = #{houseType}</if>
- <if test="rlr != null and rlr != ''"> and czrk.rlr = #{rlr}</if>
- <if test="rlTime != null "> and czrk.rl_time = #{rlTime}</if>
- <if test="yhzgx != null and yhzgx != ''"> and czrk.yhzgx = #{yhzgx}</if>
- <if test="workUnit != null and workUnit != ''"> and czrk.work_unit = #{workUnit}</if>
- <if test="provinceId != null and provinceId != ''"> and czrk.province_id = #{provinceId}</if>
- <if test="provinceIdXjd != null and provinceIdXjd != ''"> and jzdz.province_id = #{provinceId}</if>
- <if test="cityIdXjd != null and cityIdXjd != ''"> and jzdz.city_id = #{cityIdXjd}</if>
- <if test="regionIdXjd != null and regionIdXjd != ''"> and jzdz.region_id = #{regionIdXjd}</if>
- <if test="villageTownsIdXjd != null and villageTownsIdXjd != ''"> and jzdz.town_id = #{villageTownsIdXjd}</if>
- <if test="villageIdXjd != null and villageIdXjd != ''"> and jzdz.village_id = #{villageIdXjd}</if>
- <if test="province != null and province != ''"> and czrk.province = #{province}</if>
- <if test="cityId != null and cityId != ''"> and czrk.city_id = #{cityId}</if>
- <if test="city != null and city != ''"> and czrk.city = #{city}</if>
- <if test="regionId != null and regionId != ''"> and czrk.region_id = #{regionId}</if>
- <if test="region != null and region != ''"> and czrk.region = #{region}</if>
- <if test="villageTownsId != null and villageTownsId != ''"> and czrk.village_towns_id = #{villageTownsId}</if>
- <if test="villageTowns != null and villageTowns != ''"> and czrk.village_towns = #{villageTowns}</if>
- <if test="villageId != null and villageId != ''"> and czrk.village_id = #{villageId}</if>
- <if test="village != null and village != ''"> and czrk.village = #{village}</if>
- <if test="villagerGroupId != null and villagerGroupId != ''"> and czrk.villager_group_id = #{villagerGroupId}</if>
- <if test="villagerGroup != null and villagerGroup != ''"> and czrk.villager_group = #{villagerGroup}</if>
- <if test="nowIn != null and nowIn != ''"> and czrk.now_in = #{nowIn}</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="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">
- and czrk.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </where>
- GROUP BY czrk.id ORDER BY czrk.update_time DESC
- </select>
- <select id="listByXz" resultMap="CzrkResult">
- select vi.id, vi.create_time, vi.update_time, vi.is_del, vi.update_by, vi.user_name, vi.phone_num, vi.id_card
- , vi.gender, vi.province, vi.city, vi.region, vi.now_in, vi.house_type, vi.update_by, vi.code
- from czrk vi
- where vi.is_del = 'N' and vi.create_time >= #{startTime} and vi.create_time <= #{endTime}
- <if test="userName != null and userName != ''">
- and (vi.user_name like concat('%', #{userName}, '%') or vi.id_card like concat('%', #{userName}, '%'))
- </if>
- <if test="villageTowns != null and villageTowns != ''">
- and vi.village_towns = #{villageTowns}
- </if>
- <if test="village != null and village != ''"> and vi.village = #{village}</if>
- <if test="villagerGroup != null and villagerGroup != ''"> and vi.villager_group = #{villagerGroup}</if>
- <if test="houseType != null and houseType != ''"> and vi.house_type = #{houseType}</if>
- <if test="province != null and province != ''"> and vi.province = #{province}</if>
- <if test="city != null and city != ''"> and vi.city = #{city}</if>
- <if test="region != null and region != ''"> and vi.region = #{region}</if>
- <if test="gender != null and gender != ''"> and vi.gender = #{gender}</if>
- <if test="idCard != null and idCard != ''"> and vi.id_card like concat('%', #{idCard}, '%')</if>
- <if test="phoneNum != null and phoneNum != ''"> and vi.phone_num = #{phoneNum}</if>
- <!--<if test="params.startAge != null and params.startAge != ''"> and vi.age >= #{params.startAge}</if>
- <if test="params.endAge != null and params.endAge != ''"> and vi.age <= #{params.endAge}</if>-->
- <if test="status != null and status != ''"> and vi.status = #{status}</if>
- <if test="code != null and code != ''"> and vi.code = #{code}</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="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">
- and vi.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="countByCzXz" resultType="int">
- select count(1)
- from czrk vi
- where vi.is_del = 'N' and vi.create_time >= #{startTime} and vi.create_time <= #{endTime}
- <choose>
- <when test="type == 1">and vi.province_id = #{areaId}</when>
- <when test="type == 2">and vi.city_id = #{areaId}</when>
- <when test="type == 3">and vi.region_id = #{areaId}</when>
- <when test="type == 4">and vi.village_towns_id = #{areaId}</when>
- <when test="type == 5">and vi.village_id = #{areaId}</when>
- </choose>
- </select>
- <select id="listByCzXz" resultMap="CzrkResult">
- select vi.id, vi.create_time
- from czrk vi
- where vi.is_del = 'N' and vi.create_time >= #{startTime} and vi.create_time <= #{endTime}
- <choose>
- <when test="type == 1">and vi.province_id = #{areaId}</when>
- <when test="type == 2">and vi.city_id = #{areaId}</when>
- <when test="type == 3">and vi.region_id = #{areaId}</when>
- <when test="type == 4">and vi.village_towns_id = #{areaId}</when>
- <when test="type == 5">and vi.village_id = #{areaId}</when>
- </choose>
- </select>
- <select id="listByJs" resultMap="CzrkResult">
- select vi.id, vi.create_time, vi.update_time, vi.is_del, vi.update_by, vi.user_name, vi.phone_num, vi.id_card
- , vi.gender, vi.province, vi.city, vi.region, vi.now_in, vi.house_type, vi.update_by, vi.code
- from czrk vi
- where vi.is_del = 'Y' and vi.update_time >= #{startTime} and vi.update_time <= #{endTime}
- <if test="userName != null and userName != ''">
- and (vi.user_name like concat('%', #{userName}, '%') or vi.id_card like concat('%', #{userName}, '%'))
- </if>
- <if test="villageTowns != null and villageTowns != ''">
- and vi.village_towns = #{villageTowns}
- </if>
- <if test="village != null and village != ''"> and vi.village = #{village}</if>
- <if test="villagerGroup != null and villagerGroup != ''"> and vi.villager_group = #{villagerGroup}</if>
- <if test="houseType != null and houseType != ''"> and vi.house_type = #{houseType}</if>
- <if test="province != null and province != ''"> and vi.province = #{province}</if>
- <if test="city != null and city != ''"> and vi.city = #{city}</if>
- <if test="region != null and region != ''"> and vi.region = #{region}</if>
- <if test="userName != null and userName != ''"> and vi.user_name like concat('%', #{userName}, '%')</if>
- <if test="gender != null and gender != ''"> and vi.gender = #{gender}</if>
- <if test="idCard != null and idCard != ''"> and vi.id_card like concat('%', #{idCard}, '%')</if>
- <if test="phoneNum != null and phoneNum != ''"> and vi.phone_num = #{phoneNum}</if>
- <!--<if test="params.startAge != null and params.startAge != ''"> and vi.age >= #{params.startAge}</if>
- <if test="params.endAge != null and params.endAge != ''"> and vi.age <= #{params.endAge}</if>-->
- <if test="status != null and status != ''"> and vi.status = #{status}</if>
- <if test="code != null and code != ''"> and vi.code = #{code}</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="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">
- and vi.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="countByCzJs" resultType="int">
- select count(1)
- from czrk vi
- where vi.is_del = 'Y' and vi.update_time >= #{startTime} and vi.update_time <= #{endTime}
- <choose>
- <when test="type == 1">and vi.province_id = #{areaId}</when>
- <when test="type == 2">and vi.city_id = #{areaId}</when>
- <when test="type == 3">and vi.region_id = #{areaId}</when>
- <when test="type == 4">and vi.village_towns_id = #{areaId}</when>
- <when test="type == 5">and vi.village_id = #{areaId}</when>
- </choose>
- </select>
- <select id="listByCzJs" resultMap="CzrkResult">
- select vi.id, vi.update_time
- from czrk vi
- where vi.is_del = 'Y' and vi.update_time >= #{startTime} and vi.update_time <= #{endTime}
- <choose>
- <when test="type == 1">and vi.province_id = #{areaId}</when>
- <when test="type == 2">and vi.city_id = #{areaId}</when>
- <when test="type == 3">and vi.region_id = #{areaId}</when>
- <when test="type == 4">and vi.village_towns_id = #{areaId}</when>
- <when test="type == 5">and vi.village_id = #{areaId}</when>
- </choose>
- </select>
- <select id="listByCode" resultMap="CzrkResult">
- select vi.id, vi.user_name, vi.phone_num, vi.id_card, vi.gender, vi.province, vi.city, vi.region, vi.now_in
- , vi.house_type, vi.update_by, vi.code, vi.rlr, vi.yhzgx
- from czrk vi
- <!--把户主放第一位-->
- where vi.is_del = 'N' and code = #{code} order by house_type desc;
- </select>
- <select id="countCzrk" resultType="int">
- select count(vi.id)
- from czrk vi
- where vi.is_del = 'N'
- <choose>
- <when test="type == 1">and vi.province_id = #{areaId}</when>
- <when test="type == 2">and vi.city_id = #{areaId}</when>
- <when test="type == 3">and vi.region_id = #{areaId}</when>
- <when test="type == 4">and vi.village_towns_id = #{areaId}</when>
- <when test="type == 5">and vi.village_id = #{areaId}</when>
- </choose>
- </select>
- <select id="countHj1" resultType="int">
- select count(vi.id)
- from czrk vi
- where vi.is_del = 'N'
- <if test="deptIdList != null and deptIdList.size() > 0">
- and vi.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="countCz1" resultType="int">
- SELECT COUNT(DISTINCT(jzdz.id_card)) from czrk_jzdz jzdz
- where jzdz.status = 'Y'
- <if test="deptIdList != null and deptIdList.size() > 0">
- and jzdz.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="countByCzXz1" resultType="int">
- SELECT COUNT(DISTINCT(jzdz.id_card)) from czrk_jzdz jzdz
- where jzdz.status = 'Y' and jzdz.create_time >= #{startTime} and jzdz.create_time <= #{endTime}
- <if test="deptIdList != null and deptIdList.size() > 0">
- and jzdz.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="listByCzXz1" resultType="com.boman.domain.Czrk">
- SELECT ANY_VALUE(jzdz.id_card) idCard,
- ANY_VALUE(jzdz.create_time) createTime from czrk_jzdz jzdz
- where jzdz.status = 'Y' and jzdz.create_time >= #{startTime} and jzdz.create_time <= #{endTime}
- <if test="deptIdList != null and deptIdList.size() > 0">
- and jzdz.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- group by jzdz.id_card
- </select>
- <select id="countByCzJs1" resultType="int">
- SELECT count(DISTINCT(jzdz.id_card)) from czrk_jzdz jzdz
- where jzdz.status = 'N' and jzdz.update_time >= #{startTime} and jzdz.update_time <= #{endTime}
- <if test="deptIdList != null and deptIdList.size() > 0">
- and jzdz.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="listByCzJs1" resultType="com.boman.domain.Czrk">
- SELECT ANY_VALUE(id_card) idCard,
- ANY_VALUE(update_time) updateTime from czrk_jzdz jzdz
- where jzdz.status = 'N' and jzdz.update_time >= #{startTime} and jzdz.update_time <= #{endTime}
- <if test="deptIdList != null and deptIdList.size() > 0">
- and jzdz.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- group by jzdz.id_card
- </select>
- <select id="countByHjXz1" resultType="int">
- select count(vi.id)
- from czrk vi
- where vi.is_del = 'N' and vi.create_time >= #{startTime} and vi.create_time <= #{endTime}
- <if test="deptIdList != null and deptIdList.size() > 0">
- and vi.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="listByHjXz1" resultMap="CzrkResult">
- select create_time
- from czrk vi
- where vi.is_del = 'N' and vi.create_time >= #{startTime} and vi.create_time <= #{endTime}
- <if test="deptIdList != null and deptIdList.size() > 0">
- and vi.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="countByHjJs1" resultType="int">
- select count(vi.id)
- from czrk vi
- where vi.is_del = 'Y' and vi.update_time >= #{startTime} and vi.update_time <= #{endTime}
- <if test="deptIdList != null and deptIdList.size() > 0">
- and vi.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="listByHjJs1" resultMap="CzrkResult">
- select vi.update_time
- from czrk vi
- where vi.is_del = 'Y' and vi.update_time >= #{startTime} and vi.update_time <= #{endTime}
- <if test="deptIdList != null and deptIdList.size() > 0">
- and vi.dept_id in
- <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- </select>
- <select id="selectCzrkById" parameterType="Long" resultMap="CzrkResult">
- <include refid="selectCzrkVo"/>
- where id = #{id} limit 1
- </select>
- <select id="countIdCard" resultType="int">
- select count(vi.id) from czrk vi where vi.is_del = 'N' and id_card = #{idCard}
- </select>
- <select id="stsByYrl" resultType="int">
- select count(vi.id)
- from czrk vi
- where vi.is_del = 'N'
- <!-- 已认领 -->
- and vi.is_rl = '是'
- <if test="userName != null and userName != ''">
- and (vi.user_name like concat('%', #{userName}, '%') or vi.id_card like concat('%', #{userName}, '%'))
- </if>
- <if test="houseType != null and houseType != ''">
- and vi.house_type = #{houseType}
- </if>
- <if test="isConfirm != null and isConfirm != ''">
- and vi.is_confirm = #{isConfirm}
- </if>
- <choose>
- <when test="type == 1">and vi.province_id = #{areaId}</when>
- <when test="type == 2">and vi.city_id = #{areaId}</when>
- <when test="type == 3">and vi.region_id = #{areaId}</when>
- <when test="type == 4">and vi.village_towns_id = #{areaId}</when>
- <when test="type == 5">and vi.village_id = #{areaId}</when>
- </choose>
- </select>
- <select id="listIsRl" resultMap="CzrkResult">
- SELECT id, is_rl
- from czrk
- where is_del = 'N'
- <if test="userName != null and userName != ''">
- and user_name like concat('%', #{userName}, '%')
- </if>
- <choose>
- <when test="type == 1">and province_id = #{areaId}</when>
- <when test="type == 2">and city_id = #{areaId}</when>
- <when test="type == 3">and region_id = #{areaId}</when>
- <when test="type == 4">and village_towns_id = #{areaId}</when>
- <when test="type == 5">and village_id = #{areaId}</when>
- </choose>
- </select>
- <select id="getHzByCode" resultMap="CzrkResult">
- SELECT user_name, id_card
- from czrk
- where house_type = '是' and code = #{code} limit 1;
- </select>
- <select id="getColumnNamesByIdCard" resultType="com.alibaba.fastjson.JSONObject">
- SELECT id, ${columnNames}
- from czrk
- where id_card = #{idCard} limit 1;
- </select>
- <select id="stsByWrl" resultType="int">
- select count(vi.id)
- from czrk vi
- where vi.is_del = 'N'
- <!-- 未认领 -->
- and vi.is_rl = '否'
- <if test="userName != null and userName != ''">
- and (vi.user_name like concat('%', #{userName}, '%') or vi.id_card like concat('%', #{userName}, '%'))
- </if>
- <if test="houseType != null and houseType != ''">
- and vi.house_type = #{houseType}
- </if>
- <if test="isConfirm != null and isConfirm != ''">
- and vi.is_confirm = #{isConfirm}
- </if>
- <choose>
- <when test="type == 1">and vi.province_id = #{areaId}</when>
- <when test="type == 2">and vi.city_id = #{areaId}</when>
- <when test="type == 3">and vi.region_id = #{areaId}</when>
- <when test="type == 4">and vi.village_towns_id = #{areaId}</when>
- <when test="type == 5">and vi.village_id = #{areaId}</when>
- </choose>
- </select>
- <insert id="insertCzrk" useGeneratedKeys="true" keyProperty="id">
- insert into czrk
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="userName != null">user_name,</if>
- <if test="gender != null">gender,</if>
- <if test="age != null">age,</if>
- <if test="birthday != null">birthday,</if>
- <if test="deptId != null">dept_id,</if>
- <if test="idCard != null">id_card,</if>
- <if test="phoneNum != null">phone_num,</if>
- <if test="code != null">code,</if>
- <if test="keyIndustries != null">key_Industries,</if>
- <if test="houseType != null">house_type,</if>
- <if test="rlr != null">rlr,</if>
- <if test="isRl != null">is_rl,</if>
- <if test="rlTime != null">rl_time,</if>
- <if test="yhzgx != null">yhzgx,</if>
- <if test="workUnit != null">work_unit,</if>
- <if test="provinceId != null">province_id,</if>
- <if test="province != null">province,</if>
- <if test="cityId != null">city_id,</if>
- <if test="city != null">city,</if>
- <if test="regionId != null">region_id,</if>
- <if test="region != null">region,</if>
- <if test="villageTownsId != null">village_towns_id,</if>
- <if test="villageTowns != null">village_towns,</if>
- <if test="villageId != null">village_id,</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="remark != null">remark,</if>
- <if test="gridId != null">grid_id,</if>
- <if test="status != null">status,</if>
- <if test="isConfirm != null">is_confirm,</if>
- <if test="confirmInfoUser != null and confirmInfoUser != ''">confirm_info_user,</if>
- <if test="confirmInfoUserTime != null ">confirm_info_user_time,</if>
- <if test="createBy != null">create_by,</if>
- <if test="updateBy != null">update_by,</if>
- <if test="isDel != null and isDel != ''">is_del,</if>
- <if test="deleteReason != null">delete_reason,</if>
- create_time, update_time
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="userName != null">#{userName},</if>
- <if test="gender != null">#{gender},</if>
- <if test="age != null">#{age},</if>
- <if test="birthday != null">#{birthday},</if>
- <if test="deptId != null">#{deptId},</if>
- <if test="idCard != null">#{idCard},</if>
- <if test="phoneNum != null">#{phoneNum},</if>
- <if test="code != null">#{code},</if>
- <if test="keyIndustries != null">#{keyIndustries},</if>
- <if test="houseType != null">#{houseType},</if>
- <if test="rlr != null">#{rlr},</if>
- <if test="isRl != null">#{isRl},</if>
- <if test="rlTime != null">#{rlTime},</if>
- <if test="yhzgx != null">#{yhzgx},</if>
- <if test="workUnit != null">#{workUnit},</if>
- <if test="provinceId != null">#{provinceId},</if>
- <if test="province != null">#{province},</if>
- <if test="cityId != null">#{cityId},</if>
- <if test="city != null">#{city},</if>
- <if test="regionId != null">#{regionId},</if>
- <if test="region != null">#{region},</if>
- <if test="villageTownsId != null">#{villageTownsId},</if>
- <if test="villageTowns != null">#{villageTowns},</if>
- <if test="villageId != null">#{villageId},</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="remark != null">#{remark},</if>
- <if test="gridId != null">#{gridId},</if>
- <if test="status != null">#{status},</if>
- <if test="isConfirm != null">#{isConfirm},</if>
- <if test="confirmInfoUser != null and confirmInfoUser != ''">#{confirmInfoUser},</if>
- <if test="confirmInfoUserTime != null ">#{confirmInfoUserTime},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="isDel != null and isDel != ''">#{isDel},</if>
- <if test="deleteReason != null">#{deleteReason},</if>
- sysdate(), sysdate()
- </trim>
- </insert>
- <update id="updateCzrk" >
- update czrk
- <trim prefix="SET" suffixOverrides=",">
- <if test="userName != null">user_name = #{userName},</if>
- <if test="gender != null">gender = #{gender},</if>
- <if test="age != null">age = #{age},</if>
- <if test="birthday != null">birthday = #{birthday},</if>
- <if test="idCard != null">id_card = #{idCard},</if>
- <if test="phoneNum != null">phone_num = #{phoneNum},</if>
- <if test="code != null">code = #{code},</if>
- <if test="keyIndustries != null">key_industries = #{keyIndustries},</if>
- <if test="houseType != null">house_type = #{houseType},</if>
- <if test="rlr != null">rlr = #{rlr},</if>
- <if test="isRl != null">is_rl = #{isRl},</if>
- <if test="rlTime != null">rl_time = #{rlTime},</if>
- <if test="yhzgx != null">yhzgx = #{yhzgx},</if>
- <if test="workUnit != null">work_unit = #{workUnit},</if>
- <if test="provinceId != null">province_id = #{provinceId},</if>
- <if test="province != null">province = #{province},</if>
- <if test="cityId != null">city_id = #{cityId},</if>
- <if test="city != null">city = #{city},</if>
- <if test="regionId != null">region_id = #{regionId},</if>
- <if test="region != null">region = #{region},</if>
- <if test="villageTownsId != null">village_towns_id = #{villageTownsId},</if>
- <if test="villageTowns != null">village_towns = #{villageTowns},</if>
- <if test="villageId != null">village_id = #{villageId},</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="remark != null">remark = #{remark},</if>
- <if test="gridId != null">grid_id = #{gridId},</if>
- <if test="status != null">status = #{status},</if>
- <if test="isConfirm != null and isConfirm != ''">is_confirm = #{isConfirm},</if>
- <if test="confirmInfoUser != null and confirmInfoUser != ''">confirm_info_user = #{confirmInfoUser},</if>
- <if test="confirmInfoUserTime != null ">confirm_info_user_time = #{confirmInfoUserTime},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateBy != null">update_by = #{updateBy},</if>
- <if test="updateTime != null">update_time = sysdate(),</if>
- <if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
- <if test="deleteReason != null">delete_reason = #{deleteReason},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteCzrkById" parameterType="Long">
- delete from czrk where id = #{id}
- </delete>
- <update id="reduction">
- update czrk
- set is_del = 'N'
- , update_by = #{updateBy}
- , update_time = sysdate()
- where id = #{id}
- </update>
- <!-- <delete id="deleteCzrk" parameterType="String">-->
- <!-- delete from czrk where id in -->
- <!-- <foreach item="id" collection="array" open="(" separator="," close=")">-->
- <!-- #{id}-->
- <!-- </foreach>-->
- <!-- </delete>-->
- <update id="deleteCzrk">
- update czrk
- set is_del = 'Y'
- , delete_reason = #{deleteReason}
- , update_by = #{updateBy}
- , 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>
- <select id="stsByAppletCz" resultMap="CzrkResult">
- SELECT
- czrk.id,
- czrk.is_rl
- from czrk
- left join czrk_jzdz jzdz on czrk.id = jzdz.czrk_id
- <where>
- czrk.is_del = 'N' and jzdz.status = 'Y'
- <if test="userName != null and userName != ''">
- and (czrk.user_name like concat('%', #{userName}, '%') or czrk.id_card like concat('%', #{userName}, '%'))
- </if>
- <if test="houseType != null and houseType != ''">
- and czrk.house_type = #{houseType}
- </if>
- <if test="isConfirm != null and isConfirm != ''">
- and czrk.is_confirm = #{isConfirm}
- </if>
- <choose>
- <when test="type == 1">and jzdz.province_id = #{areaId}</when>
- <when test="type == 2">and jzdz.city_id = #{areaId}</when>
- <when test="type == 3">and jzdz.region_id = #{areaId}</when>
- <when test="type == 4">and jzdz.town_id = #{areaId}</when>
- <when test="type == 5">and jzdz.village_id = #{areaId}</when>
- </choose>
- <!-- <if test="provinceIdXjd != null and provinceIdXjd != ''"> and jzdz.province_id = #{areaId}</if>
- <if test="cityIdXjd != null and cityIdXjd != ''"> and jzdz.city_id = #{areaId}</if>
- <if test="regionIdXjd != null and regionIdXjd != ''"> and jzdz.region_id = #{areaId}</if>
- <if test="villageTownsIdXjd != null and villageTownsIdXjd != ''"> and jzdz.town_id = #{areaId}</if>
- <if test="villageIdXjd != null and villageIdXjd != ''"> and jzdz.village_id = #{areaId}</if>-->
- <!-- <if test="provinceId != null and provinceId != ''"> and czrk.province_id = #{areaId}</if>
- <if test="cityId != null and cityId != ''"> and czrk.city_id = #{areaId}</if>
- <if test="regionId != null and regionId != ''"> and czrk.region_id = #{areaId}</if>
- <if test="villageTownsId != null and villageTownsId != ''"> and czrk.village_towns_id = #{areaId}</if>
- <if test="villageId != null and villageId != ''"> and czrk.village_id = #{areaId}</if>
- <if test="villagerGroupId != null and villagerGroupId != ''"> and czrk.villager_group_id = #{villagerGroupId}</if>-->
- </where>
- GROUP BY czrk.id
- </select>
- <select id="countByHjXz" resultType="int">
- SELECT COUNT(DISTINCT(jzdz.id_card)) from czrk_jzdz jzdz
- where jzdz.status = 'Y' and jzdz.create_time >= #{startTime} and jzdz.create_time <= #{endTime}
- <!--SELECT czrk.id, czrk.create_time
- from czrk
- left join czrk_jzdz jzdz on czrk.id = jzdz.czrk_id
- where czrk.is_del = 'N'
- <if test="userName != null and userName != ''">
- and (czrk.user_name like concat('%', #{userName}, '%') or czrk.id_card like concat('%', #{userName}, '%'))
- </if>-->
- <choose>
- <when test="type == 1">and jzdz.province_id = #{areaId}</when>
- <when test="type == 2">and jzdz.city_id = #{areaId}</when>
- <when test="type == 3">and jzdz.region_id = #{areaId}</when>
- <when test="type == 4">and jzdz.town_id = #{areaId}</when>
- <when test="type == 5">and jzdz.village_id = #{areaId}</when>
- </choose>
- <!--GROUP BY czrk.id-->
- </select>
- <select id="listByHjXz" resultMap="CzrkResult">
- SELECT czrk.id, czrk.create_time
- where czrk.is_del = 'N' and czrk.create_time >= #{startTime} and czrk.create_time <= #{endTime}
- <!-- <if test="userName != null and userName != ''">
- and (czrk.user_name like concat('%', #{userName}, '%') or czrk.id_card like concat('%', #{userName}, '%'))
- </if>-->
- <choose>
- <when test="type == 1">and jzdz.province_id = #{areaId}</when>
- <when test="type == 2">and jzdz.city_id = #{areaId}</when>
- <when test="type == 3">and jzdz.region_id = #{areaId}</when>
- <when test="type == 4">and jzdz.town_id = #{areaId}</when>
- <when test="type == 5">and jzdz.village_id = #{areaId}</when>
- </choose>
- GROUP BY czrk.id
- </select>
- <select id="countByHjJs" resultType="int">
- SELECT COUNT(DISTINCT(jzdz.id_card)) from czrk_jzdz jzdz
- where jzdz.status = 'N' and jzdz.update_time >= #{startTime} and jzdz.update_time <= #{endTime}
- <!-- SELECT czrk.id, czrk.update_time
- from czrk
- left join czrk_jzdz jzdz on czrk.id = jzdz.czrk_id
- where czrk.is_del = 'Y' and czrk.update_time >= #{startTime} and czrk.update_time <= #{endTime}
- <if test="userName != null and userName != ''">
- and (czrk.user_name like concat('%', #{userName}, '%') or czrk.id_card like concat('%', #{userName}, '%'))
- </if>-->
- <choose>
- <when test="type == 1">and jzdz.province_id = #{areaId}</when>
- <when test="type == 2">and jzdz.city_id = #{areaId}</when>
- <when test="type == 3">and jzdz.region_id = #{areaId}</when>
- <when test="type == 4">and jzdz.town_id = #{areaId}</when>
- <when test="type == 5">and jzdz.village_id = #{areaId}</when>
- </choose>
- <!--GROUP BY czrk.id-->
- </select>
- <select id="listByHjJs" resultMap="CzrkResult">
- SELECT czrk.id, czrk.update_time
- from czrk
- left join czrk_jzdz jzdz on czrk.id = jzdz.czrk_id
- where czrk.is_del = 'Y' and czrk.update_time >= #{startTime} and czrk.update_time <= #{endTime}
- <!-- <if test="userName != null and userName != ''">
- and (czrk.user_name like concat('%', #{userName}, '%') or czrk.id_card like concat('%', #{userName}, '%'))
- </if>-->
- <choose>
- <when test="type == 1">and jzdz.province_id = #{areaId}</when>
- <when test="type == 2">and jzdz.city_id = #{areaId}</when>
- <when test="type == 3">and jzdz.region_id = #{areaId}</when>
- <when test="type == 4">and jzdz.town_id = #{areaId}</when>
- <when test="type == 5">and jzdz.village_id = #{areaId}</when>
- </choose>
- GROUP BY czrk.id
- </select>
- <select id="countHj" resultType="int">
- SELECT COUNT(DISTINCT(jzdz.id_card)) from czrk_jzdz jzdz where jzdz.status = 'Y'
- <!-- SELECT czrk.id
- from czrk
- left join czrk_jzdz jzdz on czrk.id = jzdz.czrk_id
- where czrk.is_del = 'N'
- <if test="userName != null and userName != ''">
- and (czrk.user_name like concat('%', #{userName}, '%') or czrk.id_card like concat('%', #{userName}, '%'))
- </if>-->
- <choose>
- <when test="type == 1">and jzdz.province_id = #{areaId}</when>
- <when test="type == 2">and jzdz.city_id = #{areaId}</when>
- <when test="type == 3">and jzdz.region_id = #{areaId}</when>
- <when test="type == 4">and jzdz.town_id = #{areaId}</when>
- <when test="type == 5">and jzdz.village_id = #{areaId}</when>
- </choose>
- <!--GROUP BY czrk.id-->
- </select>
- <select id="countAll" resultType="int">
- select count(1) from czrk where is_del = 'N';
- </select>
- <select id="selectCzrkListByPage" parameterType="Integer" resultMap="CzrkResult">
- select * from czrk where village_id = '' and village_towns_id != '' and dept_id != 1 limit #{startNum}, #{endNum}
- </select>
- <select id="selectDeptNameById" parameterType="Long" resultMap="SysDeptResult">
- select * from sys_dept where id = #{id} limit 1;
- </select>
- <update id="confirmInfoByIds">
- update czrk
- <trim prefix="SET" suffixOverrides=",">
- is_confirm = 'Y',
- <if test="userName != null and userName !=''"> confirm_info_user = #{userName},</if>
- confirm_info_user_time = sysdate()
- </trim>
- where id in
- <foreach collection="ids" item="id" open="(" separator="," close=")">
- #{id}
- </foreach>
- </update>
- <insert id="insertConfirmInfoUser" useGeneratedKeys="true" keyProperty="id">
- insert into confim_info_user
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="confirmInfoUser != null">confirm_info_user,</if>
- <if test="czrkId != null">czrk_id,</if>
- create_time
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="confirmInfoUser != null">#{confirmInfoUser},</if>
- <if test="czrkId != null">#{czrkId},</if>
- sysdate()
- </trim>
- </insert>
- </mapper>
|