insert into bm_area_type(name) values (#{name}) INSERT into ma_type ID, NAME, PARENT_ID, TIME,IS_ACTIVE, #{id}, #{name}, #{parentId}, NOW(), UPDATE ma_type NAME = #{name}, where id=#{id} DELETE from ma_type where id=#{id} INSERT into ma_type ID, NAME, PARENT_ID, WEIGHT, UNIT, LEASE_PRICE, PAY_PRICE, BUY_PRICE, IS_TEST, TIME,IS_ACTIVE, #{id}, #{name}, #{parentId}, #{weight}, #{unit}, #{leasePrice}, #{payPrice}, #{buyPrice}, isTest, NOW(),1, update ma_type NAME=#{name}, where ID =#{id} DELETE FROM bm_area_type WHERE id in( #{o.id} ) update ma_type set `NAME` = #{name}, WEIGHT = #{weight}, UNIT = #{unit}, LEASE_PRICE = #{leasePrice}, PAY_PRICE = #{payPrice}, BUY_PRICE = #{buyPrice}, IS_TEST = #{isTest} where id = #{id}