select id, customer_heat_id, ingredient, unit, number, quantity, edible_type, protein_quality, heat_value, fat_quality, carbon_water_quality,create_time, create_by, update_time, update_by, del_flag from sys_food_heat_statistics
insert into sys_food_heat_statistics
customer_heat_id,
ingredient,
unit,
number,
quantity,
edible_type,
protein_quality,
heat_value,
fat_quality,
carbon_water_quality,
create_time,
create_by,
update_time,
update_by,
del_flag,
#{customerHeatId},
#{ingredient},
#{unit},
#{number},
#{quantity},
#{edibleType},
#{proteinQuality},
#{heatValue},
#{fatQuality},
#{carbonWaterQuality},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{delFlag},
update sys_food_heat_statistics
customer_heat_id = #{customerHeatId},
ingredient = #{ingredient},
unit = #{unit},
number = #{number},
quantity = #{quantity},
edible_type = #{edibleType},
protein_quality = #{proteinQuality},
heat_value = #{heatValue},
fat_quality = #{fatQuality},
carbon_water_quality = #{carbonWaterQuality},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
del_flag = #{delFlag},
where id = #{id}
update sys_food_heat_statistics set del_flag = 1 where id = #{id}
update sys_food_heat_statistics set del_flag = 1 where id in
#{id}
insert into sys_food_heat_statistics(customer_heat_id,ingredient,unit,number,quantity) values
(#{food.customerHeatId}, #{food.ingredient},#{food.unit},#{food.number},#{food.quantity})