INSERT INTO gen_enterprise(
enterprise_id,
name,
type,
area1,
area2,
area3,
area4,
area5,
address,
industry,
engaged_count,
risk_operation,
master,
phone,
factory_gate,
workplace,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{enterpriseId},
#{name},
#{type},
#{area1},
#{area2},
#{area3},
#{area4},
#{area5},
#{address},
#{industry},
#{engagedCount},
#{riskOperation},
#{master},
#{phone},
#{factoryGate},
#{workplace},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
gen_enterprise
SET
is_delete = 1,
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
enterprise_id IN
#{enterpriseIds[${index}]}
UPDATE
gen_enterprise
SET
name = #{name},
type = #{type},
area1 = #{area1},
area2 = #{area2},
area3 = #{area3},
area4 = #{area4},
area5 = #{area5},
address = #{address},
industry = #{industry},
engaged_count = #{engagedCount},
risk_operation = #{riskOperation},
master = #{master},
phone = #{phone},
factory_gate = #{factoryGate},
workplace = #{workplace},
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
enterprise_id = #{enterpriseId}