<?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.panzhihua.service_community.dao.ComMngPopulationDAO">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.panzhihua.service_community.model.dos.ComMngPopulationDO">
|
<id column="id" property="id" />
|
<result column="street_id" property="streetId" />
|
<result column="act_id" property="actId" />
|
<result column="village_id" property="villageId" />
|
<result column="name" property="name" />
|
<result column="sex" property="sex" />
|
<result column="certificate_type" property="certificateType" />
|
<result column="card_no" property="cardNo" />
|
<result column="card_no_expiration_date" property="cardNoExpirationDate" />
|
<result column="card_no_str" property="cardNoStr" />
|
<result column="road" property="road" />
|
<result column="door_no" property="doorNo" />
|
<result column="floor" property="floor" />
|
<result column="unit_no" property="unitNo" />
|
<result column="house_no" property="houseNo" />
|
<result column="political_outlook" property="politicalOutlook" />
|
<result column="work_company" property="workCompany" />
|
<result column="special_situation" property="specialSituation" />
|
<result column="phone" property="phone" />
|
<result column="out_or_local" property="outOrLocal" />
|
<result column="census_register" property="censusRegister" />
|
<result column="person_type" property="personType" />
|
<result column="country" property="country" />
|
<result column="date_of_departure" property="dateOfDeparture" />
|
<result column="native_place" property="nativePlace" />
|
<result column="nation_code" property="nationCode" />
|
<result column="nation" property="nation" />
|
<result column="is_rent" property="isRent" />
|
<result column="culture_level" property="cultureLevel" />
|
<result column="marriage" property="marriage" />
|
<result column="healthy" property="healthy" />
|
<result column="blood_type" property="bloodType" />
|
<result column="religion" property="religion" />
|
<result column="profession" property="profession" />
|
<result column="person_status" property="personStatus" />
|
<result column="death" property="death" />
|
<result column="head_portrait" property="headPortrait" />
|
<result column="monthly_income" property="monthlyIncome" />
|
<result column="family_status" property="familyStatus" />
|
<result column="birthday" property="birthday" />
|
<result column="goal_in_china" property="goalInChina" />
|
<result column="date_of_arrival" property="dateOfArrival" />
|
<result column="label" property="label" />
|
<result column="card_photo_front" property="cardPhotoFront" />
|
<result column="card_photo_back" property="cardPhotoBack" />
|
<result column="family_book" property="familyBook" />
|
<result column="delete_flag" property="deleteFlag" />
|
<result column="remark" property="remark" />
|
<result column="create_at" property="createAt" />
|
<result column="update_at" property="updateAt" />
|
<result column="residence" property="residence" />
|
<result column="address" property="address" />
|
<result column="house_id" property="houseId" />
|
</resultMap>
|
|
<!-- 通用查询结果列 -->
|
<sql id="Base_Column_List">
|
id, street_id, act_id, village_id, name, sex, certificate_type, card_no, card_no_expiration_date, card_no_str, road, door_no, floor, unit_no, house_no, political_outlook, work_company, special_situation, phone, out_or_local, census_register, person_type, country, date_of_departure, native_place, nation_code, nation, is_rent, culture_level, marriage, healthy, blood_type, religion, profession, person_status, death, head_portrait, monthly_income, family_status, birthday, goal_in_china, date_of_arrival, label, card_photo_front, card_photo_back, family_book, delete_flag, remark, create_at, update_at, residence, address, house_id
|
</sql>
|
|
<update id="updateAll" parameterType="java.util.List">
|
<foreach collection="populationList" item="item" index="index" separator=";">
|
update com_mng_population
|
<set>
|
<if test="item.streetId != null">
|
`street_id` = #{item.streetId},
|
</if>
|
<if test="item.actId != null">
|
`act_id` = #{item.actId},
|
</if>
|
<if test="item.villageId != null">
|
`village_id` = #{item.villageId},
|
</if>
|
<if test="item.name != null and item.name !=""">
|
`name` = #{item.name},
|
</if>
|
<if test="item.sex != null">
|
`sex` = #{item.sex},
|
</if>
|
<if test="item.certificateType != null and item.certificateType !=""">
|
`certificate_type` = #{item.certificateType},
|
</if>
|
<if test="item.cardNo != null and item.cardNo !=""">
|
`card_no` = #{item.cardNo},
|
</if>
|
<if test="item.cardNoExpirationDate != null">
|
`card_no_expiration_date` = #{item.cardNoExpirationDate},
|
</if>
|
<if test="item.cardNoStr != null and item.cardNoStr !=""">
|
`card_no_str` = #{item.cardNoStr},
|
</if>
|
<if test="item.road != null and item.road !=""">
|
`road` = #{item.road},
|
</if>
|
<if test="item.doorNo != null and item.doorNo !=""">
|
`door_no` = #{item.doorNo},
|
</if>
|
<if test="item.floor != null and item.floor !=""">
|
`floor` = #{item.floor},
|
</if>
|
<if test="item.unitNo != null and item.unitNo !=""">
|
`unit_no` = #{item.unitNo},
|
</if>
|
<if test="item.houseNo != null and item.houseNo !=""">
|
`house_no` = #{item.houseNo},
|
</if>
|
<if test="item.politicalOutlook != null">
|
`political_outlook` = #{item.politicalOutlook},
|
</if>
|
<if test="item.workCompany != null and item.workCompany !=""">
|
`work_company` = #{item.workCompany},
|
</if>
|
<if test="item.specialSituation != null and item.specialSituation !=""">
|
`special_situation` = #{item.specialSituation},
|
</if>
|
<if test="item.phone != null and item.phone !=""">
|
`phone` = #{item.phone},
|
</if>
|
<if test="item.outOrLocal != null">
|
`out_or_local` = #{item.outOrLocal},
|
</if>
|
<if test="item.censusRegister != null and item.censusRegister !=""">
|
`census_register` = #{item.censusRegister},
|
</if>
|
<if test="item.personType != null and item.personType !=""">
|
`person_type` = #{item.personType},
|
</if>
|
<if test="item.country != null and item.country !=""">
|
`country` = #{item.country},
|
</if>
|
<if test="item.dateOfDeparture != null">
|
`date_of_departure` = #{item.dateOfDeparture},
|
</if>
|
<if test="item.nativePlace != null and item.nativePlace !=""">
|
`native_place` = #{item.nativePlace},
|
</if>
|
<if test="item.nationCode != null and item.nationCode !=""">
|
`nation_code` = #{item.nationCode},
|
</if>
|
<if test="item.nation != null and item.nation !=""">
|
`nation` = #{item.nation},
|
</if>
|
<if test="item.isRent != null">
|
`is_rent` = #{item.isRent},
|
</if>
|
<if test="item.cultureLevel != null">
|
`culture_level` = #{item.cultureLevel},
|
</if>
|
<if test="item.marriage != null">
|
`marriage` = #{item.marriage},
|
</if>
|
<if test="item.healthy != null and item.healthy !=""">
|
`healthy` = #{item.healthy},
|
</if>
|
<if test="item.bloodType != null and item.bloodType !=""">
|
`blood_type` = #{item.bloodType},
|
</if>
|
<if test="item.religion != null and item.religion !=""">
|
`religion` = #{item.religion},
|
</if>
|
<if test="item.profession != null and item.profession !=""">
|
`profession` = #{item.profession},
|
</if>
|
<if test="item.personStatus != null and item.personStatus !=""">
|
`person_status` = #{item.personStatus},
|
</if>
|
<if test="item.death != null and item.death !=""">
|
`death` = #{item.death},
|
</if>
|
<if test="item.headPortrait != null and item.headPortrait !=""">
|
`head_portrait` = #{item.headPortrait},
|
</if>
|
<if test="item.monthlyIncome != null and item.monthlyIncome !=""">
|
`monthly_income` = #{item.monthlyIncome},
|
</if>
|
<if test="item.familyStatus != null and item.familyStatus !=""">
|
`family_status` = #{item.familyStatus},
|
</if>
|
<if test="item.birthday != null and item.birthday !=""">
|
`birthday` = #{item.birthday},
|
</if>
|
<if test="item.goalInChina != null and item.goalInChina !=""">
|
`goal_in_china` = #{item.goalInChina},
|
</if>
|
<if test="item.label != null and item.label !=""">
|
`label` = #{item.label},
|
</if>
|
<if test="item.dateOfArrival != null">
|
`date_of_arrival` = #{item.dateOfArrival},
|
</if>
|
<if test="item.cardPhotoFront != null and item.cardPhotoFront !=""">
|
`card_photo_front` = #{item.cardPhotoFront},
|
</if>
|
<if test="item.cardPhotoBack != null and item.cardPhotoBack !=""">
|
`card_photo_back` = #{item.cardPhotoBack},
|
</if>
|
<if test="item.familyBook != null and item.familyBook !=""">
|
`family_book` = #{item.familyBook},
|
</if>
|
<if test="item.deleteFlag != null">
|
`delete_flag` = #{item.deleteFlag},
|
</if>
|
<if test="item.remark != null and item.remark !=""">
|
`remark` = #{item.remark},
|
</if>
|
<if test="item.residence != null and item.residence !=""">
|
`residence` = #{item.residence},
|
</if>
|
<if test="item.address != null and item.address !=""">
|
`address` = #{item.address},
|
</if>
|
<if test="item.houseId != null">
|
`house_id` = #{item.houseId},
|
</if>
|
`update_at` = NOW()
|
</set>
|
WHERE `id` = #{item.id}
|
</foreach>
|
;
|
</update>
|
|
</mapper>
|