From 8c73a9ff2bf3c88b17a1279f51c1ae3993effdcf Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Tue, 19 Aug 2025 10:53:37 +0800
Subject: [PATCH] 修改
---
exam-system/src/main/resources/mapper/institutionaccess/ThStudentBatchMapper.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/exam-system/src/main/resources/mapper/institutionaccess/ThStudentBatchMapper.xml b/exam-system/src/main/resources/mapper/institutionaccess/ThStudentBatchMapper.xml
index 6cff219..85b03cf 100644
--- a/exam-system/src/main/resources/mapper/institutionaccess/ThStudentBatchMapper.xml
+++ b/exam-system/src/main/resources/mapper/institutionaccess/ThStudentBatchMapper.xml
@@ -123,7 +123,7 @@
</update>
<select id="getStudentBatchVOByBatchUuid" resultType="com.gkhy.exam.institutionalaccess.model.vo.ThStudentBatchVO">
- select sb.*, b.batch_lesson_num from th_student_batch sb INNER JOIN th_batch b ON sb.batch_uuid = b.uuid where sb.del_flag = 0 and sb.batch_uuid = #{batchUuid}
+ select sb.*, b.batch_lesson_num from th_student_batch sb INNER JOIN th_batch b ON sb.batch_uuid = b.uuid where sb.del_flag = 0 and b.del_flag=0 and sb.batch_uuid = #{batchUuid}
</select>
<select id="getByIdCards" resultType="com.gkhy.exam.institutionalaccess.entity.ThStudentBatch" >
@@ -162,7 +162,7 @@
and b.subject_code like concat(#{query.subjectCode}, '%')
</if>
<if test="query.trainOrgName != null and query.trainOrgName != ''">
- and b.train_org_name = #{query.trainOrgName}, '%')
+ and b.train_org_name like concat('%',#{query.trainOrgName},'%')
</if>
<if test="query.startTime != null"><!-- 开始时间检索 -->
and date_format(b.actual_start_time,'%y-%m-%d') >= date_format(#{query.startTime},'%y-%m-%d')
@@ -189,7 +189,7 @@
and b.subject_code like concat(#{query.subjectCode}, '%')
</if>
<if test="query.trainOrgName != null and query.trainOrgName != ''">
- and b.train_org_name = #{query.trainOrgName}, '%')
+ and b.train_org_name = concat('%', #{query.trainOrgName}, '%')
</if>
<if test="query.startTime != null"><!-- 开始时间检索 -->
and date_format(b.actual_start_time,'%y-%m-%d') >= date_format(#{query.startTime},'%y-%m-%d')
--
Gitblit v1.9.2