deason 11 месяцев назад
Родитель
Сommit
65b67fd80c

+ 24 - 0
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/controller/ReexamineLogController.java

@@ -0,0 +1,24 @@
+
+package cn.com.qmth.examcloud.core.oe.admin.api.controller;
+
+import cn.com.qmth.examcloud.core.oe.admin.service.ReexamineLogService;
+import cn.com.qmth.examcloud.web.support.ControllerSupport;
+import io.swagger.annotations.Api;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@Api(tags = "重考设置记录相关接口")
+@RequestMapping("${$rmp.ctr.oe}/exam/warn")
+public class ReexamineLogController extends ControllerSupport {
+
+    private static final Logger log = LoggerFactory.getLogger(ReexamineLogController.class);
+
+    @Autowired
+    private ReexamineLogService reexamineLogService;
+
+
+}

+ 11 - 0
examcloud-core-oe-admin-dao/src/main/java/cn/com/qmth/examcloud/core/oe/admin/dao/ReexamineLogRepo.java

@@ -0,0 +1,11 @@
+package cn.com.qmth.examcloud.core.oe.admin.dao;
+
+import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ReexamineLogEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface ReexamineLogRepo extends JpaRepository<ReexamineLogEntity, Long>, JpaSpecificationExecutor<ReexamineLogEntity> {
+
+}

+ 2 - 2
examcloud-core-oe-admin-dao/src/main/java/cn/com/qmth/examcloud/core/oe/admin/dao/entity/ExamStudentEntity.java

@@ -37,7 +37,7 @@ public class ExamStudentEntity extends JpaEntity {
 	private Long id;
 
 	/**
-	 * 考生ID(与考务的考生ID一致) 跟其他表关联使用
+	 * 考生ID(表ec_e_exam_student的ID)
 	 */
 	@NotNull
 	private Long examStudentId;
@@ -153,7 +153,7 @@ public class ExamStudentEntity extends JpaEntity {
 	/**
 	 * 重考理由
 	 */
-	@Column(length = 20)
+	@Column(length = 50)
 	private String reexamineType;
 
 	/**

+ 99 - 0
examcloud-core-oe-admin-dao/src/main/java/cn/com/qmth/examcloud/core/oe/admin/dao/entity/ReexamineLogEntity.java

@@ -0,0 +1,99 @@
+package cn.com.qmth.examcloud.core.oe.admin.dao.entity;
+
+import cn.com.qmth.examcloud.web.jpa.JpaEntity;
+
+import javax.persistence.*;
+
+/**
+ * 重考设置记录
+ */
+@Entity
+@Table(name = "ec_oe_reexamine_log", indexes = {
+        @Index(name = "IDX_01", columnList = "examId"),
+        @Index(name = "IDX_02", columnList = "examStudentId")
+})
+public class ReexamineLogEntity extends JpaEntity {
+
+    private static final long serialVersionUID = -6330756328920243183L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    private Long id;
+
+    @Column(nullable = false)
+    private Long examId;
+
+    /**
+     * 考生ID(表ec_e_exam_student的ID)
+     */
+    @Column(nullable = false)
+    private Long examStudentId;
+
+    @Column(length = 50)
+    private String reexamineType;
+
+    @Column(length = 200)
+    private String reexamineDetail;
+
+    private Long operateUserId;
+
+    @Column(length = 50)
+    private String operateUserName;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getExamId() {
+        return examId;
+    }
+
+    public void setExamId(Long examId) {
+        this.examId = examId;
+    }
+
+    public Long getExamStudentId() {
+        return examStudentId;
+    }
+
+    public void setExamStudentId(Long examStudentId) {
+        this.examStudentId = examStudentId;
+    }
+
+    public String getReexamineType() {
+        return reexamineType;
+    }
+
+    public void setReexamineType(String reexamineType) {
+        this.reexamineType = reexamineType;
+    }
+
+    public String getReexamineDetail() {
+        return reexamineDetail;
+    }
+
+    public void setReexamineDetail(String reexamineDetail) {
+        this.reexamineDetail = reexamineDetail;
+    }
+
+    public Long getOperateUserId() {
+        return operateUserId;
+    }
+
+    public void setOperateUserId(Long operateUserId) {
+        this.operateUserId = operateUserId;
+    }
+
+    public String getOperateUserName() {
+        return operateUserName;
+    }
+
+    public void setOperateUserName(String operateUserName) {
+        this.operateUserName = operateUserName;
+    }
+
+}

+ 5 - 0
examcloud-core-oe-admin-service/src/main/java/cn/com/qmth/examcloud/core/oe/admin/service/ReexamineLogService.java

@@ -0,0 +1,5 @@
+package cn.com.qmth.examcloud.core.oe.admin.service;
+
+public interface ReexamineLogService {
+
+}

+ 19 - 0
examcloud-core-oe-admin-service/src/main/java/cn/com/qmth/examcloud/core/oe/admin/service/impl/ReexamineLogServiceImpl.java

@@ -0,0 +1,19 @@
+package cn.com.qmth.examcloud.core.oe.admin.service.impl;
+
+import cn.com.qmth.examcloud.core.oe.admin.dao.ReexamineLogRepo;
+import cn.com.qmth.examcloud.core.oe.admin.service.ReexamineLogService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class ReexamineLogServiceImpl implements ReexamineLogService {
+
+    private static final Logger log = LoggerFactory.getLogger(ReexamineLogServiceImpl.class);
+
+    @Autowired
+    private ReexamineLogRepo reexamineLogRepo;
+
+
+}