update sys_customer_menu_dishes
menu_id = #{menuId},
dishes_id = #{dishesId},
type = #{type},
detail =
#{detail, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler},
remark = #{remark},
where id = #{id}
insert into sys_customer_menu_dishes
menu_id,
dishes_id,
type,
detail,
remark,
#{menuId},
#{dishesId},
#{type},
#{detail, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler},
#{remark},
delete from sys_customer_menu_dishes where id = #{id}
insert into sys_customer_menu
cus_id,
#{cusId},
insert into sys_customer_menu_dishes (menu_id, type, dishes_id, remark, detail) values
(#{item.menuId}, #{item.type}, #{item.dishesId}, #{item.remark},
#{item.detail, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler})
update sys_customer_daily_menu
num_day = #{numDay},
where id = #{id}