From d02d3b681da14c2f342f2247457dc60b426ff299 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期二, 07 一月 2025 17:50:16 +0800
Subject: [PATCH] bug修改

---
 manage/src/main/resources/mapping/TOptometristMapper.xml |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/manage/src/main/resources/mapping/TOptometristMapper.xml b/manage/src/main/resources/mapping/TOptometristMapper.xml
index 5ba7db0..3005ab6 100644
--- a/manage/src/main/resources/mapping/TOptometristMapper.xml
+++ b/manage/src/main/resources/mapping/TOptometristMapper.xml
@@ -46,12 +46,15 @@
             <if test="query.phone != null and query.phone != ''">
                 and t1.phone like  concat('%',#{query.phone},'%')
             </if>
-            <if test="query.storeId != null and query.storeId != ''">
+            <if test="query.storeId != null ">
                 and t1.storeId =  #{query.storeId}
             </if>
-            <if test="query.optometristId != null and query.optometristId != ''">
+            <if test="query.optometristId != null ">
                 and t1.optometristId =  #{query.optometristId}
             </if>
+            <if test="query.userId != null ">
+                and t1.userId =  #{query.userId}
+            </if>
             <if test="query.startTime != null and query.startTime!=''">
                 and (t1.createTime between #{query.startTime} and #{query.endTime})
             </if>

--
Gitblit v1.7.1