From 727c30f11ede5b3c82ead6e09e5e077c0e7519f1 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Wed, 05 Feb 2025 13:02:21 +0800
Subject: [PATCH] Merge branch 'dev-20250116' of https://sinanoaq.cn:8888/r/swspkmas into dev-20250116
---
exam-system/src/main/resources/mapper/institutionaccess/ThStudyTrackMapper.xml | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/exam-system/src/main/resources/mapper/institutionaccess/ThStudyTrackMapper.xml b/exam-system/src/main/resources/mapper/institutionaccess/ThStudyTrackMapper.xml
index 5364362..0e1ab9d 100644
--- a/exam-system/src/main/resources/mapper/institutionaccess/ThStudyTrackMapper.xml
+++ b/exam-system/src/main/resources/mapper/institutionaccess/ThStudyTrackMapper.xml
@@ -1,9 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gkhy.exam.institutionalaccess.mapper.ThStudyTrackMapper">
-<select id="getUuidByStudyDetaiId" resultType="java.lang.String">
- select uuid from th_study_track where study_detail_uuid = #{studyDetaiId}
-</select>
+ <select id="getUuidByStudyDetaiId" resultType="java.lang.String">
+ select uuid from th_study_track where study_detail_uuid = #{studyDetaiId}
+ </select>
+ <insert id="insertBatch">
+ INSERT INTO th_study_track (id,uuid,start_time, end_time,time_interval, study_detail_uuid) VALUES
+ <foreach collection="list" separator="," item="item">
+ (#{item.id},#{item.uuid},#{item.startTime},#{item.endTime},#{item.timeInterval},#{item.studyDetailUuid})
+ </foreach>
+ </insert>
+ <select id="getByStudyDetaiUuids" resultType="com.gkhy.exam.institutionalaccess.entity.ThStudyTrack" >
+ select id,uuid,start_time, end_time,time_interval, study_detail_uuid from th_study_track where 1=1 and study_detail_uuid in
+ <foreach collection="studyUuids" item="studyUuid" index ="index" open="(" close=")" separator=",">
+ #{studyUuid}
+ </foreach>
+ </select>
</mapper>
--
Gitblit v1.9.2