INSERT INTO pollute_enterprise_poll(
enterprise_poll_id,
enterprise_id,
poll_id,
enterprise_poll_beyond,
gmt_create,
creator,
gmt_modified,
modifier,
is_delete
) VALUES(
#{enterprisePollId},
#{enterpriseId},
#{pollId},
#{enterprisePollBeyond},
#{gmtCreate},
#{creator},
#{gmtModified},
#{modifier},
#{isDelete}
)
UPDATE
pollute_enterprise_poll
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
enterprise_poll_id IN
#{enterprisePollIds[${index}]}
DELETE FROM
pollute_enterprise_poll
WHERE
enterprise_poll_id IN
#{enterprisePollIds[${index}]}
UPDATE
pollute_enterprise_poll
SET
enterprise_id = #{enterpriseId},
poll_id = #{pollId},
enterprise_poll_beyond = #{enterprisePollBeyond},
gmt_modified = #{gmtModified},
modifier = #{modifier},
enterprise_poll_id = enterprise_poll_id
WHERE
enterprise_poll_id = #{enterprisePollId}