From 552c700f584700316e8d1919dd1ad7f551c53ec4 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 12 十一月 2024 10:03:22 +0800
Subject: [PATCH] fix : 新增日统计接口

---
 src/main/resources/mapper/OutParkMapper.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/OutParkMapper.xml b/src/main/resources/mapper/OutParkMapper.xml
index 81a4ccf..11e82cd 100644
--- a/src/main/resources/mapper/OutParkMapper.xml
+++ b/src/main/resources/mapper/OutParkMapper.xml
@@ -70,4 +70,15 @@
           select id,car_no,status2 from  out_park
           where barrier_id = #{barrierId} and `status` = 1 and status2 = 0 and del_flag = 0 limit 1;
     </select>
+
+    <select id="getVoList" resultType="com.boying.entity.vo.OutParkVo">
+          SELECT SUM(price) price,IFNULL(count( id ),0) num,park_id,DATE_FORMAT(update_time, '%Y-%m-%d') ti FROM out_park
+          WHERE `status` = 1 AND pay_code IS NOT NULL
+                <if test="parkId != null and parkId != ''">
+                      and park_id = #{parkId}
+                </if>
+            AND DATE_FORMAT(update_time,'%Y-%m-%d') &gt;= DATE_FORMAT(#{startDate},'%Y-%m-%d')
+            AND DATE_FORMAT(update_time,'%Y-%m-%d') &lt;= DATE_FORMAT(#{endDate},'%Y-%m-%d')
+          GROUP BY ti,park_id
+    </select>
 </mapper>

--
Gitblit v1.9.1