select id, dishes_id, material_id, weight, material_type, create_by, create_time, update_by, update_time from cook_dishes_material insert into cook_dishes_material dishes_id, material_id, weight, material_type, create_by, create_time, update_by, update_time, #{dishesId}, #{materialId}, #{weight}, #{materialType}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update cook_dishes_material dishes_id = #{dishesId}, material_id = #{materialId}, weight = #{weight}, material_type = #{materialType}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where id = #{id} delete from cook_dishes_material where id = #{id} delete from cook_dishes_material where id in #{id}