From 5ba51c442bd56b2d29a1f0b9d61ef88774c80e6d Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期五, 18 八月 2023 08:19:34 +0800
Subject: [PATCH] 一键调度附近车和app用户增加位置信息

---
 ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml b/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml
index 568b736..3f28c2a 100644
--- a/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml
+++ b/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml
@@ -144,4 +144,16 @@
         </where>
         group by ard_app_patrolplan.id
     </select>
+
+    <select id="oncePlan" parameterType="recordMonthExParam" resultMap="ArdAppPatrolplanResult">
+        select plan.* from ard_app_patrolplan plan
+        LEFT JOIN ard_app_patroluser users on users.patrolplan_id = plan."id"
+        where users.app_user_id = #{userId} and cycle = 'once' and patro_begin_time like #{begin} and plan.del_name is null and plan.del_time is null ;
+    </select>
+
+    <select id="dayPlan" parameterType="recordMonthExParam" resultMap="ArdAppPatrolplanResult">
+        select plan.* from ard_app_patrolplan plan
+                               LEFT JOIN ard_app_patroluser users on users.patrolplan_id = plan."id"
+        where users.app_user_id = #{userId} and cycle = 'day' and create_time &lt; #{end} and del_name is null and del_time is null ;
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3