From aaa55aa7b0be807ddd6814b13307f9cb2cd9c67a Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期六, 12 十月 2024 11:06:14 +0800
Subject: [PATCH] 新增课程审核 ,短信提醒
---
exam-system/src/main/resources/mapper/institutionaccess/ThStudentMapper.xml | 35 ++++++++++++++++++++++++++++++++---
1 files changed, 32 insertions(+), 3 deletions(-)
diff --git a/exam-system/src/main/resources/mapper/institutionaccess/ThStudentMapper.xml b/exam-system/src/main/resources/mapper/institutionaccess/ThStudentMapper.xml
index 26c98cf..baaefb0 100644
--- a/exam-system/src/main/resources/mapper/institutionaccess/ThStudentMapper.xml
+++ b/exam-system/src/main/resources/mapper/institutionaccess/ThStudentMapper.xml
@@ -2,7 +2,19 @@
<!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.ThStudentMapper">
- <update id="updateByIdcard" parameterType="java.util.List" >
+ <insert id="insertBatch">
+ INSERT INTO th_student (idcard, name, sex, phone, auth_photo,train_org_name, institution_id, institution_name,
+ industry,occupation,post,del_flag,create_time,update_time,create_by,update_by) VALUES
+ <foreach collection="list" separator="," item="item">
+ (#{item.idcard},#{item.name},#{item.sex},#{item.phone},#{item.authPhoto},#{item.trainOrgName},#{item.institutionId},#{item.institutionName},
+ #{item.industry},#{item.occupation},#{item.post},#{item.delFlag},#{item.createTime},
+ #{item.updateTime},#{item.createBy},#{item.updateBy})
+ </foreach>
+ </insert>
+
+
+
+ <update id="updateBatch" parameterType="java.util.List" >
<foreach collection="list" item="item" index="index" separator=";">
UPDATE th_student
<set>
@@ -28,7 +40,7 @@
institution_id = #{item.institutionId},
</if>
<if test="item.institutionName != null and item.institutionName != ''" >
- institution_name = #{item.phone},
+ institution_name = #{item.institutionName},
</if>
<if test="item.industry != null and item.industry != ''" >
industry = #{item.industry},
@@ -36,6 +48,10 @@
<if test="item.occupation != null and item.occupation != ''" >
occupation = #{item.occupation},
</if>
+ <if test="item.post != null and item.post != ''" >
+ post = #{item.post},
+ </if>
+
<if test="item.updateBy != null and item.updateBy != ''" >
update_by = #{item.updateBy},
</if>
@@ -43,10 +59,23 @@
update_time = #{item.updateTime}
</if>
</set>
- where idcard = #{item.idcard}
+ where id = #{item.id}
</foreach>
</update>
+ <select id="getByIdCards" resultType="com.gkhy.exam.institutionalaccess.entity.ThStudent" >
+ select idcard, name, sex, phone, auth_photo,train_org_name, institution_id, institution_name,
+ industry,occupation,post from th_student where del_flag = 0 and idcard in
+ <foreach collection="idcards" item="idcard" index ="index" open="(" close=")" separator=",">
+ #{idcard}
+ </foreach>
+ </select>
+ <select id="getNameByIdcards" resultType="com.gkhy.exam.institutionalaccess.entity.ThStudent" >
+ select idcard, name from th_student where del_flag = 0 and idcard in
+ <foreach collection="idcards" item="idcard" index ="index" open="(" close=")" separator=",">
+ #{idcard}
+ </foreach>
+ </select>
</mapper>
--
Gitblit v1.9.2