浏览代码

新增相关统计表

wangliang 1 年之前
父节点
当前提交
bd8da6c70e

+ 16 - 0
themis-business/src/main/java/com/qmth/themis/business/dao/TEExamSummaryMapper.java

@@ -0,0 +1,16 @@
+package com.qmth.themis.business.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.qmth.themis.business.entity.TEExamSummary;
+
+/**
+ * <p>
+ * 考试信息统计表 Mapper 接口
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+public interface TEExamSummaryMapper extends BaseMapper<TEExamSummary> {
+
+}

+ 16 - 0
themis-business/src/main/java/com/qmth/themis/business/dao/TEOrgSummaryMapper.java

@@ -0,0 +1,16 @@
+package com.qmth.themis.business.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.qmth.themis.business.entity.TEOrgSummary;
+
+/**
+ * <p>
+ * 超管统计表 Mapper 接口
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+public interface TEOrgSummaryMapper extends BaseMapper<TEOrgSummary> {
+
+}

+ 16 - 0
themis-business/src/main/java/com/qmth/themis/business/dao/TERegionSummaryMapper.java

@@ -0,0 +1,16 @@
+package com.qmth.themis.business.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.qmth.themis.business.entity.TERegionSummary;
+
+/**
+ * <p>
+ * 地区统计表 Mapper 接口
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+public interface TERegionSummaryMapper extends BaseMapper<TERegionSummary> {
+
+}

+ 188 - 0
themis-business/src/main/java/com/qmth/themis/business/entity/TEExamSummary.java

@@ -0,0 +1,188 @@
+package com.qmth.themis.business.entity;
+
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 考试信息统计表
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+@ApiModel(value = "TEExamSummary对象", description = "考试信息统计表")
+public class TEExamSummary implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "考试批次id")
+    @JsonSerialize(using = ToStringSerializer.class)
+    private Long examId;
+
+    @ApiModelProperty(value = "考试场次id")
+    @JsonSerialize(using = ToStringSerializer.class)
+    private Long examActivityId;
+
+    @ApiModelProperty(value = "考场编码")
+    private String roomCode;
+
+    @ApiModelProperty(value = "考生总数")
+    private Integer totalCount;
+
+    @ApiModelProperty(value = "候考人数")
+    private Integer prepareCount;
+
+    @ApiModelProperty(value = "正在考试人数")
+    private Integer examCount;
+
+    @ApiModelProperty(value = "考试完成人数")
+    private Integer finishCount;
+
+    @ApiModelProperty(value = "缺考人数")
+    private Integer absentCount;
+
+    @ApiModelProperty(value = "在线人数")
+    private Integer onlineCount;
+
+    @ApiModelProperty(value = "离线人数")
+    private Integer offlineCount;
+
+    @ApiModelProperty(value = "监控停止人数")
+    private Integer monitorStopCount;
+
+    @ApiModelProperty(value = "预警总数")
+    private Integer warningCount;
+
+    @ApiModelProperty(value = "预警未读数")
+    private Integer warningUnread;
+
+    @ApiModelProperty(value = "陌生人脸预警总数")
+    private Integer warningMultipleFaceCount;
+
+    @ApiModelProperty(value = "异常数据总数")
+    private Integer exceptionCount;
+
+    public Long getExamId() {
+        return examId;
+    }
+
+    public void setExamId(Long examId) {
+        this.examId = examId;
+    }
+
+    public Long getExamActivityId() {
+        return examActivityId;
+    }
+
+    public void setExamActivityId(Long examActivityId) {
+        this.examActivityId = examActivityId;
+    }
+
+    public String getRoomCode() {
+        return roomCode;
+    }
+
+    public void setRoomCode(String roomCode) {
+        this.roomCode = roomCode;
+    }
+
+    public Integer getTotalCount() {
+        return totalCount;
+    }
+
+    public void setTotalCount(Integer totalCount) {
+        this.totalCount = totalCount;
+    }
+
+    public Integer getPrepareCount() {
+        return prepareCount;
+    }
+
+    public void setPrepareCount(Integer prepareCount) {
+        this.prepareCount = prepareCount;
+    }
+
+    public Integer getExamCount() {
+        return examCount;
+    }
+
+    public void setExamCount(Integer examCount) {
+        this.examCount = examCount;
+    }
+
+    public Integer getFinishCount() {
+        return finishCount;
+    }
+
+    public void setFinishCount(Integer finishCount) {
+        this.finishCount = finishCount;
+    }
+
+    public Integer getAbsentCount() {
+        return absentCount;
+    }
+
+    public void setAbsentCount(Integer absentCount) {
+        this.absentCount = absentCount;
+    }
+
+    public Integer getOnlineCount() {
+        return onlineCount;
+    }
+
+    public void setOnlineCount(Integer onlineCount) {
+        this.onlineCount = onlineCount;
+    }
+
+    public Integer getOfflineCount() {
+        return offlineCount;
+    }
+
+    public void setOfflineCount(Integer offlineCount) {
+        this.offlineCount = offlineCount;
+    }
+
+    public Integer getMonitorStopCount() {
+        return monitorStopCount;
+    }
+
+    public void setMonitorStopCount(Integer monitorStopCount) {
+        this.monitorStopCount = monitorStopCount;
+    }
+
+    public Integer getWarningCount() {
+        return warningCount;
+    }
+
+    public void setWarningCount(Integer warningCount) {
+        this.warningCount = warningCount;
+    }
+
+    public Integer getWarningUnread() {
+        return warningUnread;
+    }
+
+    public void setWarningUnread(Integer warningUnread) {
+        this.warningUnread = warningUnread;
+    }
+
+    public Integer getWarningMultipleFaceCount() {
+        return warningMultipleFaceCount;
+    }
+
+    public void setWarningMultipleFaceCount(Integer warningMultipleFaceCount) {
+        this.warningMultipleFaceCount = warningMultipleFaceCount;
+    }
+
+    public Integer getExceptionCount() {
+        return exceptionCount;
+    }
+
+    public void setExceptionCount(Integer exceptionCount) {
+        this.exceptionCount = exceptionCount;
+    }
+}

+ 77 - 0
themis-business/src/main/java/com/qmth/themis/business/entity/TEOrgSummary.java

@@ -0,0 +1,77 @@
+package com.qmth.themis.business.entity;
+
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 超管统计表
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+@ApiModel(value = "TEOrgSummary对象", description = "超管统计表")
+public class TEOrgSummary implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "机构ID,全局为0")
+    @JsonSerialize(using = ToStringSerializer.class)
+    private Long orgId;
+
+    @ApiModelProperty(value = "在线人数")
+    private Integer onlineCount;
+
+    @ApiModelProperty(value = "考试人数")
+    private Integer examCount;
+
+    @ApiModelProperty(value = "完成考试次数")
+    private Integer finishCount;
+
+    @ApiModelProperty(value = "完成考试人数")
+    private Integer finishStudentCount;
+
+    public Long getOrgId() {
+        return orgId;
+    }
+
+    public void setOrgId(Long orgId) {
+        this.orgId = orgId;
+    }
+
+    public Integer getOnlineCount() {
+        return onlineCount;
+    }
+
+    public void setOnlineCount(Integer onlineCount) {
+        this.onlineCount = onlineCount;
+    }
+
+    public Integer getExamCount() {
+        return examCount;
+    }
+
+    public void setExamCount(Integer examCount) {
+        this.examCount = examCount;
+    }
+
+    public Integer getFinishCount() {
+        return finishCount;
+    }
+
+    public void setFinishCount(Integer finishCount) {
+        this.finishCount = finishCount;
+    }
+
+    public Integer getFinishStudentCount() {
+        return finishStudentCount;
+    }
+
+    public void setFinishStudentCount(Integer finishStudentCount) {
+        this.finishStudentCount = finishStudentCount;
+    }
+}

+ 63 - 0
themis-business/src/main/java/com/qmth/themis/business/entity/TERegionSummary.java

@@ -0,0 +1,63 @@
+package com.qmth.themis.business.entity;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 地区统计表
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+@ApiModel(value = "TERegionSummary对象", description = "地区统计表")
+public class TERegionSummary implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "国家")
+    private String country;
+
+    @ApiModelProperty(value = "省份")
+    private String province;
+
+    @ApiModelProperty(value = "城市")
+    private String city;
+
+    @ApiModelProperty(value = "在线人数")
+    private Integer onlineCount;
+
+    public String getCountry() {
+        return country;
+    }
+
+    public void setCountry(String country) {
+        this.country = country;
+    }
+
+    public String getProvince() {
+        return province;
+    }
+
+    public void setProvince(String province) {
+        this.province = province;
+    }
+
+    public String getCity() {
+        return city;
+    }
+
+    public void setCity(String city) {
+        this.city = city;
+    }
+
+    public Integer getOnlineCount() {
+        return onlineCount;
+    }
+
+    public void setOnlineCount(Integer onlineCount) {
+        this.onlineCount = onlineCount;
+    }
+}

+ 16 - 0
themis-business/src/main/java/com/qmth/themis/business/service/TEExamSummaryService.java

@@ -0,0 +1,16 @@
+package com.qmth.themis.business.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.qmth.themis.business.entity.TEExamSummary;
+
+/**
+ * <p>
+ * 考试信息统计表 服务类
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+public interface TEExamSummaryService extends IService<TEExamSummary> {
+
+}

+ 16 - 0
themis-business/src/main/java/com/qmth/themis/business/service/TEOrgSummaryService.java

@@ -0,0 +1,16 @@
+package com.qmth.themis.business.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.qmth.themis.business.entity.TEOrgSummary;
+
+/**
+ * <p>
+ * 超管统计表 服务类
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+public interface TEOrgSummaryService extends IService<TEOrgSummary> {
+
+}

+ 16 - 0
themis-business/src/main/java/com/qmth/themis/business/service/TERegionSummaryService.java

@@ -0,0 +1,16 @@
+package com.qmth.themis.business.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.qmth.themis.business.entity.TERegionSummary;
+
+/**
+ * <p>
+ * 地区统计表 服务类
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+public interface TERegionSummaryService extends IService<TERegionSummary> {
+
+}

+ 20 - 0
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamSummaryServiceImpl.java

@@ -0,0 +1,20 @@
+package com.qmth.themis.business.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.qmth.themis.business.dao.TEExamSummaryMapper;
+import com.qmth.themis.business.entity.TEExamSummary;
+import com.qmth.themis.business.service.TEExamSummaryService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 考试信息统计表 服务实现类
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+@Service
+public class TEExamSummaryServiceImpl extends ServiceImpl<TEExamSummaryMapper, TEExamSummary> implements TEExamSummaryService {
+
+}

+ 20 - 0
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEOrgSummaryServiceImpl.java

@@ -0,0 +1,20 @@
+package com.qmth.themis.business.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.qmth.themis.business.dao.TEOrgSummaryMapper;
+import com.qmth.themis.business.entity.TEOrgSummary;
+import com.qmth.themis.business.service.TEOrgSummaryService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 超管统计表 服务实现类
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+@Service
+public class TEOrgSummaryServiceImpl extends ServiceImpl<TEOrgSummaryMapper, TEOrgSummary> implements TEOrgSummaryService {
+
+}

+ 20 - 0
themis-business/src/main/java/com/qmth/themis/business/service/impl/TERegionSummaryServiceImpl.java

@@ -0,0 +1,20 @@
+package com.qmth.themis.business.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.qmth.themis.business.dao.TERegionSummaryMapper;
+import com.qmth.themis.business.entity.TERegionSummary;
+import com.qmth.themis.business.service.TERegionSummaryService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 地区统计表 服务实现类
+ * </p>
+ *
+ * @author wangliang
+ * @since 2023-10-27
+ */
+@Service
+public class TERegionSummaryServiceImpl extends ServiceImpl<TERegionSummaryMapper, TERegionSummary> implements TERegionSummaryService {
+
+}

+ 5 - 0
themis-business/src/main/resources/mapper/TEExamSummaryMapper.xml

@@ -0,0 +1,5 @@
+<?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.themis.business.dao.TEExamSummaryMapper">
+
+</mapper>

+ 5 - 0
themis-business/src/main/resources/mapper/TEOrgSummaryMapper.xml

@@ -0,0 +1,5 @@
+<?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.themis.business.dao.TEOrgSummaryMapper">
+
+</mapper>

+ 5 - 0
themis-business/src/main/resources/mapper/TERegionSummaryMapper.xml

@@ -0,0 +1,5 @@
+<?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.themis.business.dao.TERegionSummaryMapper">
+
+</mapper>