| | |
| | | //视频路径 |
| | | private String url; |
| | | private Integer serialno; |
| | | //讲师 |
| | | private String teacher; |
| | | |
| | | private List<ThCourseChapterRespDTO> children; |
| | | |
| | |
| | | private Long institutionId; |
| | | private String courseUuid; |
| | | private Integer serialno; |
| | | //讲师 |
| | | private String teacher; |
| | | } |
| | |
| | | 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; |
| | |
| | | private Byte faceType; |
| | | private String studyDetailUuid; |
| | | private String authVideo; |
| | | |
| | | @ApiModelProperty("认证ip") |
| | | private String ip; |
| | | @ApiModelProperty("认证mac地址") |
| | | private String mac; |
| | | } |
| | |
| | | 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=","> |
| | |
| | | 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 |
| | |
| | | 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> |
| | |
| | | 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, |