From 9f11a12223a429dfec0aea14a5bdc7d53f9878bc Mon Sep 17 00:00:00 2001 From: czx <28353131@qq.com> Date: Fri, 22 Jan 2021 11:37:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=97=85=E6=82=A3=E6=8A=A5?= =?UTF-8?q?=E9=A4=90=E6=8C=89=E6=97=A5=E6=9C=9F=E7=BB=9F=E8=AE=A1=E7=94=A8?= =?UTF-8?q?=E9=A4=90=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/system/fantang/mapper/FtReportMealsDaoMapper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/mapper/FtReportMealsDaoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/mapper/FtReportMealsDaoMapper.java index 00402ff39..68b291bc2 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/mapper/FtReportMealsDaoMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/mapper/FtReportMealsDaoMapper.java @@ -51,4 +51,7 @@ public interface FtReportMealsDaoMapper extends BaseMapper { "where b.depart_id = #{departId} and a.dining_at BETWEEN #{beginOfDay} and #{endOfDay}\n" + "GROUP BY a.type, foods") List 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); }