外食计算器优化,营养成分以及热量比例数据计算
This commit is contained in:
		| @@ -124,7 +124,10 @@ | ||||
|         <result property="number"    column="number"    /> | ||||
|         <result property="quantity"    column="quantity"    /> | ||||
|         <result property="edibleType"    column="edible_type"    /> | ||||
|         <result property="proteinQuality"    column="protein_quality"    /> | ||||
|         <result property="heatValue"    column="heat_value"    /> | ||||
|         <result property="fatQuality"    column="fat_quality"    /> | ||||
|         <result property="carbonWaterQuality"    column="carbon_water_quality"    /> | ||||
|         <result property="createTime"    column="create_time"    /> | ||||
|         <result property="createBy"    column="create_by"    /> | ||||
|         <result property="updateTime"    column="update_time"    /> | ||||
| @@ -135,7 +138,7 @@ | ||||
|     </resultMap> | ||||
|  | ||||
|     <select id="selectSysFoodHeatStatisticsList" parameterType="Long" resultMap="SysFoodHeatStatisticsResult"> | ||||
|         select sfhs.id, sfhs.customer_heat_id, sfhs.ingredient, sfhs.unit, sfhs.number, sfhs.quantity, sfhs.edible_type, sfhs.heat_value,cusUnit.dict_label as unitName | ||||
|         select sfhs.id, sfhs.customer_heat_id, sfhs.ingredient, sfhs.unit, sfhs.number, sfhs.quantity, sfhs.edible_type, sfhs.protein_quality, sfhs.fat_quality, sfhs.carbon_water_quality,sfhs.heat_value,cusUnit.dict_label as unitName | ||||
|         from sys_food_heat_statistics as  sfhs | ||||
|         LEFT JOIN (SELECT dict_label, dict_value FROM sys_dict_data WHERE dict_type = 'cus_cus_unit') AS cusUnit ON cusUnit.dict_value = sfhs.unit | ||||
|         where sfhs.del_flag = 0 and customer_heat_id = #{id} | ||||
|   | ||||
| @@ -12,7 +12,10 @@ | ||||
|         <result property="number"    column="number"    /> | ||||
|         <result property="quantity"    column="quantity"    /> | ||||
|         <result property="edibleType"    column="edible_type"    /> | ||||
|         <result property="proteinQuality"    column="protein_quality"    /> | ||||
|         <result property="heatValue"    column="heat_value"    /> | ||||
|         <result property="fatQuality"    column="fat_quality"    /> | ||||
|         <result property="carbonWaterQuality"    column="carbon_water_quality"    /> | ||||
|         <result property="createTime"    column="create_time"    /> | ||||
|         <result property="createBy"    column="create_by"    /> | ||||
|         <result property="updateTime"    column="update_time"    /> | ||||
| @@ -23,11 +26,11 @@ | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="selectSysFoodHeatStatisticsVo"> | ||||
|         select id, customer_heat_id, ingredient, unit, number, quantity, edible_type, heat_value, create_time, create_by, update_time, update_by, del_flag from sys_food_heat_statistics | ||||
|         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 | ||||
|     </sql> | ||||
|  | ||||
|     <select id="selectSysFoodHeatStatisticsList" parameterType="SysFoodHeatStatistics" resultMap="SysFoodHeatStatisticsResult"> | ||||
|         select sfhs.id, sfhs.customer_heat_id, sfhs.ingredient, sfhs.unit, sfhs.number, sfhs.quantity, sfhs.edible_type, sfhs.heat_value,cusUnit.dict_label as unitName | ||||
|         select sfhs.id, sfhs.customer_heat_id, sfhs.ingredient, sfhs.unit, sfhs.number, sfhs.quantity, sfhs.edible_type, sfhs.protein_quality, sfhs.fat_quality, sfhs.carbon_water_quality,sfhs.heat_value,cusUnit.dict_label as unitName | ||||
|         from sys_food_heat_statistics as  sfhs | ||||
|         LEFT JOIN (SELECT dict_label, dict_value FROM sys_dict_data WHERE dict_type = 'cus_cus_unit') AS cusUnit ON cusUnit.dict_value = sfhs.unit | ||||
|         where sfhs.del_flag = 0 | ||||
| @@ -47,7 +50,10 @@ | ||||
|             <if test="number != null">number,</if> | ||||
|             <if test="quantity != null">quantity,</if> | ||||
|             <if test="edibleType != null">edible_type,</if> | ||||
|             <if test="proteinQuality != null">protein_quality,</if> | ||||
|             <if test="heatValue != null">heat_value,</if> | ||||
|             <if test="fatQuality != null">fat_quality,</if> | ||||
|             <if test="carbonWaterQuality != null">carbon_water_quality,</if> | ||||
|             <if test="createTime != null">create_time,</if> | ||||
|             <if test="createBy != null">create_by,</if> | ||||
|             <if test="updateTime != null">update_time,</if> | ||||
| @@ -61,7 +67,10 @@ | ||||
|             <if test="number != null">#{number},</if> | ||||
|             <if test="quantity != null">#{quantity},</if> | ||||
|             <if test="edibleType != null">#{edibleType},</if> | ||||
|             <if test="proteinQuality != null">#{proteinQuality},</if> | ||||
|             <if test="heatValue != null">#{heatValue},</if> | ||||
|             <if test="fatQuality != null">#{fatQuality},</if> | ||||
|             <if test="carbonWaterQuality != null">#{carbonWaterQuality},</if> | ||||
|             <if test="createTime != null">#{createTime},</if> | ||||
|             <if test="createBy != null">#{createBy},</if> | ||||
|             <if test="updateTime != null">#{updateTime},</if> | ||||
| @@ -79,7 +88,10 @@ | ||||
|             <if test="number != null">number = #{number},</if> | ||||
|             <if test="quantity != null">quantity = #{quantity},</if> | ||||
|             <if test="edibleType != null">edible_type = #{edibleType},</if> | ||||
|             <if test="proteinQuality != null">protein_quality = #{proteinQuality},</if> | ||||
|             <if test="heatValue != null">heat_value = #{heatValue},</if> | ||||
|             <if test="fatQuality != null">fat_quality = #{fatQuality},</if> | ||||
|             <if test="carbonWaterQuality != null">carbon_water_quality = #{carbonWaterQuality},</if> | ||||
|             <if test="createTime != null">create_time = #{createTime},</if> | ||||
|             <if test="createBy != null">create_by = #{createBy},</if> | ||||
|             <if test="updateTime != null">update_time = #{updateTime},</if> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user