From 90e436edb375b1983f16aa10066497fbabbaa010 Mon Sep 17 00:00:00 2001
From: zhs <zhs18203887318@163.com>
Date: 星期五, 30 五月 2025 13:58:52 +0800
Subject: [PATCH] 05-30 zhs

---
 smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
index bcf57f7..e76a4e5 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
@@ -287,7 +287,13 @@
             <if test="excep != null ">and excep = #{excep}</if>
             <if test="nurseName != null ">and nurse_name = #{nurseName}</if>
             <if test="score != null">and score = #{score}</if>
-            <if test="visitCount != null">and visit_count = #{visitCount}</if>
+<!--            <if test="visitCount != null">and visit_count = #{visitCount}</if>-->
+            <if test="visit_count_flag != null and visit_count_flag == 0">
+                AND visit_count = 1
+            </if>
+            <if test="visit_count_flag != null and visit_count_flag == 1">
+                AND visit_count > 1
+            </if>
             <if test="remark != null">and remark = #{remark}</if>
             <if test="suggest != null">and suggest = #{suggest}</if>
             <if test="createBy != null">and create_by = #{createBy}</if>

--
Gitblit v1.9.3