From 3aae8ddd5b9624626921abdcc33122dccdcd5c61 Mon Sep 17 00:00:00 2001 From: “djh” <“3298565835@qq.com”> Date: 星期五, 27 十二月 2024 13:24:46 +0800 Subject: [PATCH] 修改学时证书接收接口 --- 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