From d7d9b601b2e4fdb663375993e2cfbdbd363df421 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期二, 11 七月 2023 22:17:37 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
---
java110-db/src/main/resources/mapper/store/ClassesTimeV1ServiceDaoImplMapper.xml | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/store/ClassesTimeV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ClassesTimeV1ServiceDaoImplMapper.xml
index 862f70e..46d9724 100644
--- a/java110-db/src/main/resources/mapper/store/ClassesTimeV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ClassesTimeV1ServiceDaoImplMapper.xml
@@ -24,6 +24,13 @@
<if test="classesId !=null and classesId != ''">
and t.classes_id= #{classesId}
</if>
+ <if test="classesIds !=null">
+ and t.classes_id in
+ <foreach collection="classesIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
+
<if test="timeId !=null and timeId != ''">
and t.time_id= #{timeId}
</if>
@@ -50,9 +57,7 @@
<if test="newBId != null and newBId != ''">
,t.b_id = #{newBId}
</if>
- <if test="classesId !=null and classesId != ''">
- , t.classes_id= #{classesId}
- </if>
+
<if test="startTime !=null and startTime != ''">
, t.start_time= #{startTime}
</if>
@@ -63,6 +68,9 @@
<if test="timeId !=null and timeId != ''">
and t.time_id= #{timeId}
</if>
+ <if test="classesId !=null and classesId != ''">
+ and t.classes_id= #{classesId}
+ </if>
</update>
@@ -71,8 +79,11 @@
select count(1) count
from classes_time t
where 1 =1
- <if test="classesId !=null and classesId != ''">
- and t.classes_id= #{classesId}
+ <if test="classesIds !=null">
+ and t.classes_id in
+ <foreach collection="classesIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
</if>
<if test="timeId !=null and timeId != ''">
and t.time_id= #{timeId}
--
Gitblit v1.8.0