select id, enterprise_name, location, code from enterprise
insert into enterprise
enterprise_name,location,code,type_num,#{enterpriseName},#{location},#{code},#{typeNum}>
update enterprise
enterprise_name = #{enterpriseName},location = #{location},code = #{code},type_num = #{typeNum}>
where id = #{id}
delete from enterprise where id = #{id}
delete from enterprise where id in
#{id}
INSERT INTO enterprise (enterprise_name, type_num)
VALUES
(#{item.enterpriseName}, #{item.typeNum})
ON DUPLICATE KEY UPDATE
type_num = IF(VALUES(type_num) != '', VALUES(type_num), type_num)