kongzy
2024-10-16 85ae68bdbd7e373fb6f3e6f5eb04c57e3d86efd0
补全缺失字段
已修改6个文件
24 ■■■■ 文件已修改
exam-system/src/main/java/com/gkhy/exam/institutionalaccess/model/resp/ThCourseChapterRespDTO.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
exam-system/src/main/java/com/gkhy/exam/institutionalaccess/model/vo/ThCourseChapterVO.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
exam-system/src/main/java/com/gkhy/exam/institutionalaccess/model/vo/ThStudyAuthVO.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
exam-system/src/main/resources/mapper/institutionaccess/ThCourseChapterMapper.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
exam-system/src/main/resources/mapper/institutionaccess/ThStudyAuthMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
update.sql 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
exam-system/src/main/java/com/gkhy/exam/institutionalaccess/model/resp/ThCourseChapterRespDTO.java
@@ -20,6 +20,8 @@
    //视频路径
    private String url;
    private Integer serialno;
    //讲师
    private String teacher;
    private List<ThCourseChapterRespDTO> children;
exam-system/src/main/java/com/gkhy/exam/institutionalaccess/model/vo/ThCourseChapterVO.java
@@ -22,4 +22,6 @@
    private Long institutionId;
    private String courseUuid;
    private Integer serialno;
    //讲师
    private String teacher;
}
exam-system/src/main/java/com/gkhy/exam/institutionalaccess/model/vo/ThStudyAuthVO.java
@@ -1,6 +1,7 @@
package com.gkhy.exam.institutionalaccess.model.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;
@@ -17,4 +18,9 @@
    private Byte faceType;
    private String studyDetailUuid;
    private String authVideo;
    @ApiModelProperty("认证ip")
    private String ip;
    @ApiModelProperty("认证mac地址")
    private String mac;
}
exam-system/src/main/resources/mapper/institutionaccess/ThCourseChapterMapper.xml
@@ -15,7 +15,8 @@
               cc.course_uuid,
               cc.parent_uuid,
               cc.serialno,
               cc.url
               cc.url,
               cc.teacher
               from th_course_chapter cc
               where cc.del_flag = 0 and cc.course_uuid in
        <foreach collection="courseUuids" item="courseUuid"  open="(" close=")" separator=",">
@@ -48,7 +49,8 @@
        cc.course_uuid,
        cc.parent_uuid,
        cc.serialno,
        cc.url
        cc.url,
        cc.teacher
        from th_course_chapter cc
        where  cc.del_flag = 0 and cc.course_uuid = #{courseUuid}
        order by serialno
exam-system/src/main/resources/mapper/institutionaccess/ThStudyAuthMapper.xml
@@ -5,14 +5,14 @@
        select uuid from th_study_auth where study_detail_uuid = #{studyDetaiId}
    </select>
    <insert id="insertBatch">
        INSERT INTO th_study_auth (id,uuid,approve_photo, auth_position,auth_time, face_type,study_detail_uuid, auth_video) VALUES
        INSERT INTO th_study_auth (id,uuid,approve_photo, auth_position,auth_time, face_type,study_detail_uuid, auth_video,ip,mac) VALUES
        <foreach collection="list" separator="," item="item">
            (#{item.id},#{item.uuid},#{item.approvePhoto},#{item.authPosition},#{item.authTime},#{item.faceType},#{item.studyDetailUuid},#{item.authVideo})
            (#{item.id},#{item.uuid},#{item.approvePhoto},#{item.authPosition},#{item.authTime},#{item.faceType},#{item.studyDetailUuid},#{item.authVideo},#{item.ip},#{item.mac})
        </foreach>
    </insert>
    <select id="getByStudyDetaiUuids" resultType="com.gkhy.exam.institutionalaccess.entity.ThStudyAuth" >
        select id,uuid,approve_photo, auth_position,auth_time, face_type,study_detail_uuid, auth_video from th_study_auth where 1=1 and study_detail_uuid in
        select id,uuid,approve_photo, auth_position,auth_time, face_type,study_detail_uuid, auth_video,ip,mac from th_study_auth where 1=1 and study_detail_uuid in
        <foreach collection="studyUuids" item="studyUuid" index ="index" open="(" close=")" separator=",">
            #{studyUuid}
        </foreach>
update.sql
@@ -1,6 +1,6 @@
ALTER TABLE `swspkmas`.`th_study_auth`
ADD COLUMN `ip` varchar(30) NULL,
ADD COLUMN `max` varchar(40) NULL;
ADD COLUMN `mac` varchar(40) NULL;
CREATE TABLE `swspkmas`.`tr_cert`  (
`id` bigint NOT NULL AUTO_INCREMENT,