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 | 143 +++++++++++++++++++++++++----------------------
1 files changed, 75 insertions(+), 68 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/store/ClassesTimeV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ClassesTimeV1ServiceDaoImplMapper.xml
index 2285ee7..46d9724 100644
--- a/java110-db/src/main/resources/mapper/store/ClassesTimeV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ClassesTimeV1ServiceDaoImplMapper.xml
@@ -5,93 +5,100 @@
<mapper namespace="classesTimeV1ServiceDaoImpl">
-
-
-
<!-- 淇濆瓨鐝鏃堕棿淇℃伅 add by wuxw 2018-07-03 -->
<insert id="saveClassesTimeInfo" parameterType="Map">
insert into classes_time(
-classes_id,time_id,start_time,end_time
-) values (
-#{classesId},#{timeId},#{startTime},#{endTime}
-)
+ classes_id,time_id,start_time,end_time
+ ) values (
+ #{classesId},#{timeId},#{startTime},#{endTime}
+ )
</insert>
-
<!-- 鏌ヨ鐝鏃堕棿淇℃伅 add by wuxw 2018-07-03 -->
<select id="getClassesTimeInfo" parameterType="Map" resultType="Map">
- select t.classes_id,t.classes_id classesId,t.time_id,t.time_id timeId,t.start_time,t.start_time startTime,t.status_cd,t.status_cd statusCd,t.end_time,t.end_time endTime
-from classes_time t
-where 1 =1
-<if test="classesId !=null and classesId != ''">
- and t.classes_id= #{classesId}
-</if>
-<if test="timeId !=null and timeId != ''">
- and t.time_id= #{timeId}
-</if>
-<if test="startTime !=null and startTime != ''">
- and t.start_time= #{startTime}
-</if>
-<if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
-</if>
-<if test="endTime !=null and endTime != ''">
- and t.end_time= #{endTime}
-</if>
-order by t.create_time desc
-<if test="page != -1 and page != null ">
- limit #{page}, #{row}
-</if>
+ select t.classes_id,t.classes_id classesId,t.time_id,t.time_id timeId,t.start_time,t.start_time
+ startTime,t.status_cd,t.status_cd statusCd,t.end_time,t.end_time endTime
+ from classes_time t
+ where 1 =1
+ <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>
+ <if test="startTime !=null and startTime != ''">
+ and t.start_time= #{startTime}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="endTime !=null and endTime != ''">
+ and t.end_time= #{endTime}
+ </if>
+ order by t.create_time desc
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
</select>
-
-
<!-- 淇敼鐝鏃堕棿淇℃伅 add by wuxw 2018-07-03 -->
<update id="updateClassesTimeInfo" parameterType="Map">
- update classes_time t set t.status_cd = #{statusCd}
-<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>
-<if test="endTime !=null and endTime != ''">
-, t.end_time= #{endTime}
-</if>
- where 1=1 <if test="timeId !=null and timeId != ''">
-and t.time_id= #{timeId}
-</if>
+ update classes_time t set t.status_cd = #{statusCd}
+ <if test="newBId != null and newBId != ''">
+ ,t.b_id = #{newBId}
+ </if>
+
+ <if test="startTime !=null and startTime != ''">
+ , t.start_time= #{startTime}
+ </if>
+ <if test="endTime !=null and endTime != ''">
+ , t.end_time= #{endTime}
+ </if>
+ where 1=1
+ <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>
<!-- 鏌ヨ鐝鏃堕棿鏁伴噺 add by wuxw 2018-07-03 -->
- <select id="queryClassesTimesCount" parameterType="Map" resultType="Map">
- select count(1) count
-from classes_time t
-where 1 =1
-<if test="classesId !=null and classesId != ''">
- and t.classes_id= #{classesId}
-</if>
-<if test="timeId !=null and timeId != ''">
- and t.time_id= #{timeId}
-</if>
-<if test="startTime !=null and startTime != ''">
- and t.start_time= #{startTime}
-</if>
-<if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
-</if>
-<if test="endTime !=null and endTime != ''">
- and t.end_time= #{endTime}
-</if>
+ <select id="queryClassesTimesCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from classes_time t
+ where 1 =1
+ <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>
+ <if test="startTime !=null and startTime != ''">
+ and t.start_time= #{startTime}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="endTime !=null and endTime != ''">
+ and t.end_time= #{endTime}
+ </if>
- </select>
+ </select>
</mapper>
--
Gitblit v1.8.0