select customer_id, customer_name, phonenumber, sex, birthday, remark from sys_customer insert into sys_customer customer_name, phonenumber, sex, birthday, remark, #{customerName}, #{phonenumber}, #{sex}, #{birthday}, #{remark}, update sys_customer customer_name = #{customerName}, phonenumber = #{phonenumber}, sex = #{sex}, birthday = #{birthday}, remark = #{remark}, where customer_id = #{customerId} delete from sys_customer where customer_id = #{customerId} delete from sys_customer where customer_id in #{customerId} delete from sys_goods where customer_id in #{customerId} delete from sys_goods where customer_id = #{customerId} insert into sys_goods( goods_id, customer_id, name, weight, price, date, type) values ( #{item.goodsId}, #{item.customerId}, #{item.name}, #{item.weight}, #{item.price}, #{item.date}, #{item.type})