INSERT INTO gen_base_population_info( subtype,type,base_population_info_id, id_card_number, full_name, name_used_before, gender, birth_date, area_id, area_code, area_names, grid_id, grid_name, nation, native_place, native_place_addr, political_status, marital_status, education, religion, occupation_category, occupation, service_space, telephone, registered_residence, registered_residence_addr, current_residence, current_residence_addr, creator, gmt_create, modifier, gmt_modified, is_delete ) VALUES( '',#{type}, #{basePopulationInfoId}, #{idCardNumber}, #{fullName}, #{nameUsedBefore}, #{gender}, #{birthDate}, #{areaId}, #{areaCode}, #{areaNames}, #{gridId}, #{gridName}, #{nation}, #{nativePlace}, #{nativePlaceAddr}, #{politicalStatus}, #{maritalStatus}, #{education}, #{religion}, #{occupationCategory}, #{occupation}, #{serviceSpace}, #{telephone}, #{registeredResidence}, #{registeredResidenceAddr}, #{currentResidence}, #{currentResidenceAddr}, #{creator}, #{gmtCreate}, #{modifier}, #{gmtModified}, #{isDelete} ) UPDATE gen_base_population_info SET subtype = #{subtype} WHERE id_card_number = #{idCardNumber} UPDATE gen_base_population_info SET is_delete = 1, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE base_population_info_id IN #{basePopulationInfoIds[${index}]} DELETE FROM gen_base_population_info WHERE base_population_info_id IN #{basePopulationInfoIds[${index}]} UPDATE gen_base_population_info SET grid_id = '', grid_name = '' WHERE base_population_info_id = #{basePopulationInfoId} UPDATE gen_base_population_info SET type = #{type}, area_id = #{areaId}, area_code = #{areaCode}, area_names = #{areaNames}, grid_id = #{gridId}, grid_name = #{gridName}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE base_population_info_id = #{basePopulationInfoId} UPDATE gen_base_population_info SET id_card_number = #{idCardNumber}, full_name = #{fullName}, name_used_before = #{nameUsedBefore}, type = #{type}, gender = #{gender}, birth_date = #{birthDate}, area_id = #{areaId}, area_code = #{areaCode}, area_names = #{areaNames}, grid_id = #{gridId}, grid_name = #{gridName}, nation = #{nation}, native_place = #{nativePlace}, native_place_addr = #{nativePlaceAddr}, political_status = #{politicalStatus}, marital_status = #{maritalStatus}, education = #{education}, religion = #{religion}, occupation_category = #{occupationCategory}, occupation = #{occupation}, service_space = #{serviceSpace}, telephone = #{telephone}, registered_residence = #{registeredResidence}, registered_residence_addr = #{registeredResidenceAddr}, current_residence = #{currentResidence}, current_residence_addr = #{currentResidenceAddr}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE base_population_info_id = #{basePopulationInfoId}