增加病患报餐按日期统计用餐数据接口

This commit is contained in:
czx 2021-01-22 11:37:33 +08:00
parent 32c8d566a3
commit 9f11a12223

View File

@ -51,4 +51,7 @@ public interface FtReportMealsDaoMapper extends BaseMapper<FtReportMealsDao> {
"where b.depart_id = #{departId} and a.dining_at BETWEEN #{beginOfDay} and #{endOfDay}\n" +
"GROUP BY a.type, foods")
List<FtReportMealVo> getStatisticsFoods(Integer departId, DateTime beginOfDay, DateTime endOfDay);
@Select("SELECT a.patient_id,sum(a.price) as dinner_total_price , sum(a.nutrition_food_price ) as nutrition_total_price , sum(a.total_price) as sum_total_price FROM ft_report_meals a where a.patient_id = #{patientId} AND a.settlement_flag = 0 AND a.dining_flag = 1")
ReportMealsPriceEntity sumAllTotalPrice(Long patientId);
}