From 9abc6588d464269024d3e680b98cfd71e2acc84e Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Wed, 29 Apr 2026 13:14:15 +0800
Subject: [PATCH] 新增修改部分限制

---
 multi-system/src/main/resources/mapper/system/ExPhaseStudentMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/multi-system/src/main/resources/mapper/system/ExPhaseStudentMapper.xml b/multi-system/src/main/resources/mapper/system/ExPhaseStudentMapper.xml
index 00173b6..180dc2f 100644
--- a/multi-system/src/main/resources/mapper/system/ExPhaseStudentMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/ExPhaseStudentMapper.xml
@@ -66,7 +66,7 @@
                 and b.phone like concat('%',#{studentPhone},'%')
             </if>
             <if test="studentId!=null">
-                and a.student_id=#{studentId}
+                and a.student_id=#{studentId} and (d.stop_time is null or d.stop_time > now())
             </if>
         </where>
         order by a.id desc
@@ -88,7 +88,7 @@
         select a.*,b.name as phase_name,c.id as company_id,c.name as company_name from ex_phase_student a
         left join ex_course_phase b on b.id=a.phase_id
         left join sys_company c on c.id=b.company_id
-        where a.student_id=#{studentId}
+        where b.del_flag = 0 and a.student_id=#{studentId}
     </select>
 
 

--
Gitblit v1.9.2