Browse Source

新建表相关类初始化

haogh 8 months ago
parent
commit
3dceb15b18

+ 16 - 0
src/main/java/com/qmth/exam/reserve/controller/admin/TimePeriodExamSiteController.java

@@ -0,0 +1,16 @@
+package com.qmth.exam.reserve.controller.admin;
+
+import com.qmth.boot.api.annotation.Aac;
+import com.qmth.boot.api.constant.ApiConstant;
+import io.swagger.annotations.Api;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@Api(tags = "【管理端】考点预约设置相关接口")
+@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/admin/time/period/exam/site")
+@Aac(strict = false, auth = true)
+public class TimePeriodExamSiteController {
+
+
+}

+ 8 - 0
src/main/java/com/qmth/exam/reserve/dao/StudentCourseDao.java

@@ -0,0 +1,8 @@
+package com.qmth.exam.reserve.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.qmth.exam.reserve.entity.StudentCourseEntity;
+
+public interface StudentCourseDao extends BaseMapper<StudentCourseEntity> {
+
+}

+ 8 - 0
src/main/java/com/qmth/exam/reserve/dao/TimePeriodExamSiteDao.java

@@ -0,0 +1,8 @@
+package com.qmth.exam.reserve.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.qmth.exam.reserve.entity.TimePeriodExamSiteEntity;
+
+public interface TimePeriodExamSiteDao extends BaseMapper<TimePeriodExamSiteEntity> {
+
+}

+ 5 - 0
src/main/java/com/qmth/exam/reserve/entity/CategoryEntity.java

@@ -48,4 +48,9 @@ public class CategoryEntity extends BaseEntity {
      */
      */
     private Integer capacity;
     private Integer capacity;
 
 
+    /**
+     * 针对教学点,是否开启预约
+     */
+    private Boolean appointmentFlag;
+
 }
 }

+ 27 - 0
src/main/java/com/qmth/exam/reserve/entity/StudentCourseEntity.java

@@ -0,0 +1,27 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_student_course")
+public class StudentCourseEntity extends BaseEntity {
+
+    /**
+     * 考生ID
+     */
+    private Long studentId;
+
+    /**
+     * 科目名称
+     */
+    private String courseName;
+
+    /**
+     * 科目代码
+     */
+    private String courseCode;
+}

+ 32 - 0
src/main/java/com/qmth/exam/reserve/entity/TimePeriodExamSiteEntity.java

@@ -0,0 +1,32 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_time_period_exam_site")
+public class TimePeriodExamSiteEntity extends BaseEntity {
+
+    /**
+     * 考点ID
+     */
+    private Long examSiteId;
+
+    /**
+     * 预约时段ID
+     */
+    private Long timePeriodId;
+
+    /**
+     * 是否开启
+     */
+    private Boolean enable;
+
+    /**
+     * 操作人ID
+     */
+    private Long operateId;
+}

+ 8 - 0
src/main/java/com/qmth/exam/reserve/service/StudentCourseService.java

@@ -0,0 +1,8 @@
+package com.qmth.exam.reserve.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.qmth.exam.reserve.entity.StudentCourseEntity;
+
+public interface StudentCourseService extends IService<StudentCourseEntity> {
+
+}

+ 8 - 0
src/main/java/com/qmth/exam/reserve/service/TimePeriodExamSiteService.java

@@ -0,0 +1,8 @@
+package com.qmth.exam.reserve.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.qmth.exam.reserve.entity.TimePeriodExamSiteEntity;
+
+public interface TimePeriodExamSiteService extends IService<TimePeriodExamSiteEntity> {
+
+}

+ 12 - 0
src/main/java/com/qmth/exam/reserve/service/impl/StudentCourseServiceImpl.java

@@ -0,0 +1,12 @@
+package com.qmth.exam.reserve.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.qmth.exam.reserve.dao.StudentCourseDao;
+import com.qmth.exam.reserve.entity.StudentCourseEntity;
+import com.qmth.exam.reserve.service.StudentCourseService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class StudentCourseServiceImpl extends ServiceImpl<StudentCourseDao, StudentCourseEntity> implements StudentCourseService {
+
+}

+ 12 - 0
src/main/java/com/qmth/exam/reserve/service/impl/TimePeriodExamSiteServiceImpl.java

@@ -0,0 +1,12 @@
+package com.qmth.exam.reserve.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.qmth.exam.reserve.dao.TimePeriodExamSiteDao;
+import com.qmth.exam.reserve.entity.TimePeriodExamSiteEntity;
+import com.qmth.exam.reserve.service.TimePeriodExamSiteService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class TimePeriodExamSiteServiceImpl extends ServiceImpl<TimePeriodExamSiteDao, TimePeriodExamSiteEntity> implements TimePeriodExamSiteService {
+
+}

+ 7 - 0
src/main/resources/mapper/StudentCourseMapper.xml

@@ -0,0 +1,7 @@
+<?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.qmth.exam.reserve.dao.StudentCourseDao">
+
+
+
+</mapper>

+ 7 - 0
src/main/resources/mapper/TimePeriodExamSiteMapper.xml

@@ -0,0 +1,7 @@
+<?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.qmth.exam.reserve.dao.TimePeriodExamSiteDao">
+
+
+
+</mapper>