INSERT INTO population_population_info(
population_info_id,
name,
idcard,
label,
idcard_type,
birthday,
sex,
nation,
education,
description,
organization,
religion,
marriage_status,
marriage_change_time,
marriage_first_time,
social_security,
health_status,
department_type,
department,
pastion,
pastion_title,
expertise,
phone,
father_id,
father_name,
father_idcard,
father_phone,
mother_id,
mother_name,
mother_idcard,
mother_phone,
relationship,
domicile_address,
domicile_address_type,
domicile_area_code,
domicile_area_name,
origin_address,
origin_area_code,
origin_area_name,
flow_time,
flow_reason,
flow_reasontext,
is_oldage,
oldage_type,
oldage_department,
oldage_lift,
oldage_health_status,
oldage_selfcare,
oldage_live,
is_disability,
disability_type,
disability_level,
disability_number,
disability_carnumber,
disability_address,
disability_area_code,
disability_area_name,
disability_income,
disability_house,
disability_time,
disability_guardian,
disability_guardian_phone,
disability_guardian_relation,
is_military,
military_time,
military_position,
is_succour,
succour_dibao,
succour_help,
succour_difficulty,
succour_subsidy,
is_party,
party_organization,
party_time,
othertext,
creator_area1,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{populationInfoId},
#{name},
#{idcard},
#{label},
#{idcardType},
#{birthday},
#{sex},
#{nation},
#{education},
#{description},
#{organization},
#{religion},
#{marriageStatus},
#{marriageChangeTime},
#{marriageFirstTime},
#{socialSecurity},
#{healthStatus},
#{departmentType},
#{department},
#{pastion},
#{pastionTitle},
#{expertise},
#{phone},
#{fatherId},
#{fatherName},
#{fatherIdcard},
#{fatherPhone},
#{motherId},
#{motherName},
#{motherIdcard},
#{motherPhone},
#{relationship},
#{domicileAddress},
#{domicileAddressType},
#{domicileAreaCode},
#{domicileAreaName},
#{originAddress},
#{originAreaCode},
#{originAreaName},
#{flowTime},
#{flowReason},
#{flowReasontext},
#{isOldage},
#{oldageType},
#{oldageDepartment},
#{oldageLift},
#{oldageHealthStatus},
#{oldageSelfcare},
#{oldageLive},
#{isDisability},
#{disabilityType},
#{disabilityLevel},
#{disabilityNumber},
#{disabilityCarnumber},
#{disabilityAddress},
#{disabilityAreaCode},
#{disabilityAreaName},
#{disabilityIncome},
#{disabilityHouse},
#{disabilityTime},
#{disabilityGuardian},
#{disabilityGuardianPhone},
#{disabilityGuardianRelation},
#{isMilitary},
#{militaryTime},
#{militaryPosition},
#{isSuccour},
#{succourDibao},
#{succourHelp},
#{succourDifficulty},
#{succourSubsidy},
#{isParty},
#{partyOrganization},
#{partyTime},
#{othertext},
#{creatorArea1},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
population_population_info
SET
creator = #{creator},
creator_area1 = #{creatorArea1}
WHERE
population_info_id = #{populationInfoId}
UPDATE
population_population_info
SET
is_delete = 1,
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
population_info_id IN
#{populationInfoIds[${index}]}
UPDATE
population_population_info
SET
population_info_id = #{populationInfoId},
name = #{name},
label = #{label},
idcard = #{idcard},
idcard_type = #{idcardType},
birthday = #{birthday},
sex = #{sex},
nation = #{nation},
education = #{education},
description = #{description},
organization = #{organization},
religion = #{religion},
marriage_status = #{marriageStatus},
marriage_change_time = #{marriageChangeTime},
marriage_first_time = #{marriageFirstTime},
social_security = #{socialSecurity},
health_status = #{healthStatus},
department_type = #{departmentType},
department = #{department},
pastion = #{pastion},
pastion_title = #{pastionTitle},
expertise = #{expertise},
phone = #{phone},
father_id = #{fatherId},
father_name = #{fatherName},
father_idcard = #{fatherIdcard},
father_phone = #{fatherPhone},
mother_id = #{motherId},
mother_name = #{motherName},
mother_idcard = #{motherIdcard},
mother_phone = #{motherPhone},
relationship = #{relationship},
domicile_address = #{domicileAddress},
domicile_address_type = #{domicileAddressType},
domicile_area_code = #{domicileAreaCode},
domicile_area_name = #{domicileAreaName},
origin_address = #{originAddress},
origin_area_code = #{originAreaCode},
origin_area_name = #{originAreaName},
flow_time = #{flowTime},
flow_reason = #{flowReason},
flow_reasontext = #{flowReasontext},
is_oldage = #{isOldage},
oldage_type = #{oldageType},
oldage_department = #{oldageDepartment},
oldage_lift = #{oldageLift},
oldage_health_status = #{oldageHealthStatus},
oldage_selfcare = #{oldageSelfcare},
oldage_live = #{oldageLive},
is_disability = #{isDisability},
disability_type = #{disabilityType},
disability_level = #{disabilityLevel},
disability_number = #{disabilityNumber},
disability_carnumber = #{disabilityCarnumber},
disability_address = #{disabilityAddress},
disability_area_code = #{disabilityAreaCode},
disability_area_name = #{disabilityAreaName},
disability_income = #{disabilityIncome},
disability_house = #{disabilityHouse},
disability_time = #{disabilityTime},
disability_guardian = #{disabilityGuardian},
disability_guardian_phone = #{disabilityGuardianPhone},
disability_guardian_relation = #{disabilityGuardianRelation},
is_military = #{isMilitary},
military_time = #{militaryTime},
military_position = #{militaryPosition},
is_succour = #{isSuccour},
succour_dibao = #{succourDibao},
succour_help = #{succourHelp},
succour_difficulty = #{succourDifficulty},
succour_subsidy = #{succourSubsidy},
is_party = #{isParty},
party_organization = #{partyOrganization},
party_time = #{partyTime},
othertext = #{othertext},
creator_area1 = #{creatorArea1},
modifier = #{modifier},
gmt_modified = #{gmtModified},
population_info_id = population_info_id
WHERE
population_info_id = #{populationInfoId}