INSERT INTO m_institution(
institution_id,
institution_name,
institution_desc,
institution_image,
institution_address,
institution_x,
institution_y,
institution_founding_time,
institution_principal,
institution_contact,
institution_region_province,
institution_region_city,
institution_region_area,
institution_region_village,
institution_region_street,
institution_type,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{institutionId},
#{institutionName},
#{institutionDesc},
#{institutionImage},
#{institutionAddress},
#{institutionX},
#{institutionY},
#{institutionFoundingTime},
#{institutionPrincipal},
#{institutionContact},
#{institutionRegionProvince},
#{institutionRegionCity},
#{institutionRegionArea},
#{institutionRegionVillage},
#{institutionRegionStreet},
#{institutionType}
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
m_institution
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
institution_id IN
#{institutionIds[${index}]}
DELETE FROM
m_institution
WHERE
institution_id IN
#{institutionIds[${index}]}
UPDATE
m_institution
SET
institution_name = #{institutionName},
institution_desc = #{institutionDesc},
institution_image = #{institutionImage},
institution_address = #{institutionAddress},
institution_x = #{institutionX},
institution_y = #{institutionY},
institution_founding_time = #{institutionFoundingTime},
institution_principal = #{institutionPrincipal},
institution_contact = #{institutionContact},
institution_region_province = #{institutionRegionProvince},
institution_region_city = #{institutionRegionCity},
institution_region_area = #{institutionRegionArea},
institution_region_village = #{institutionRegionVillage},
institution_region_street = #{institutionRegionStreet},
institution_type = #{institutionType},
gmt_modified = #{gmtModified},
modifier = #{modifier},
institution_id = institution_id
WHERE
institution_id = #{institutionId}