INSERT INTO e_distribution_field(
distribution_field_id,
distribution_id,
field_id,
field_name,
field_number,
field_status,
invigilator_id,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{distributionFieldId},
#{distributionId},
#{fieldId},
#{fieldName},
#{fieldNumber},
#{fieldStatus},
#{invigilatorId},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
e_distribution_field
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
distribution_field_id IN
#{distributionFieldIds[${index}]}
DELETE FROM
e_distribution_field
WHERE
distribution_field_id IN
#{distributionFieldIds[${index}]}
UPDATE
e_distribution_field
SET
invigilator_id = #{invigilatorId},
gmt_modified = #{gmtModified},
modifier = #{modifier},
distribution_field_id = distribution_field_id
WHERE
distribution_field_id = #{distributionFieldId}