From 108e2fc9543ce11e7069c4b4fc10d2f05006333b Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期四, 02 十一月 2023 12:47:13 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/PlanMapper.xml |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/mapper/PlanMapper.xml b/src/main/resources/mapper/PlanMapper.xml
index cfb30cd..a8713e2 100644
--- a/src/main/resources/mapper/PlanMapper.xml
+++ b/src/main/resources/mapper/PlanMapper.xml
@@ -85,11 +85,10 @@
                 (
                     <if test="userId != null and userId != ''">
                         user_id = #{userId}
+                        or
+                        director = #{userId}
+                        or
                     </if>
-                    <if test="userId == null or userId == ''">
-                        user_id is not null
-                    </if>
-                    or
                     mp.id in
                     (
                         select
@@ -111,6 +110,9 @@
             or mp.planner like concat('%',#{condition},'%')
             )
         </if>
+        <if test="director != null and director != ''">
+            or mp.director = #{director}
+        </if>
         ORDER BY mp.create_time DESC
     </select>
 

--
Gitblit v1.9.1