INSERT INTO gen_enterprise_of_grid_operator(
enterprise_of_grid_operator_id,
user_id,
enterprise_id,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{enterpriseOfGridOperatorId},
#{userId},
#{enterpriseId},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
gen_enterprise_of_grid_operator
SET
is_delete = 1,
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
enterprise_of_grid_operator_id IN
#{enterpriseOfGridOperatorIds[${index}]}
DELETE FROM
gen_enterprise_of_grid_operator
WHERE
enterprise_of_grid_operator_id IN
#{enterpriseOfGridOperatorIds[${index}]}
enterprise_id = #{enterpriseId}
AND
user_id = #{userId}
UPDATE
gen_enterprise_of_grid_operator
SET
user_id = #{userId},
enterprise_id = #{enterpriseId},
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
enterprise_of_grid_operator_id = #{enterpriseOfGridOperatorId}