初始化官网

master
ymnets 9 months ago
parent cf3285b9cd
commit 224a6f6752

@ -5,9 +5,8 @@
</component>
<component name="ChangeListManager">
<list default="true" id="ef55dc1b-11d9-4203-81db-14a06469a368" name="更改" comment="">
<change afterPath="$PROJECT_DIR$/gp-web/src/main/java/com/hc/gpweb/controller/front/FrontBannerController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/gp-web/src/main/java/com/hc/gpweb/controller/api/BannerController.java" beforeDir="false" afterPath="$PROJECT_DIR$/gp-web/src/main/java/com/hc/gpweb/controller/api/BannerController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/gp-business/src/main/resources/mapper/WebNewsMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/gp-business/src/main/resources/mapper/WebNewsMapper.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -38,26 +37,26 @@
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;RequestMappingsPanelOrder0&quot;: &quot;0&quot;,
&quot;RequestMappingsPanelOrder1&quot;: &quot;1&quot;,
&quot;RequestMappingsPanelWidth0&quot;: &quot;75&quot;,
&quot;RequestMappingsPanelWidth1&quot;: &quot;75&quot;,
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
&quot;last_opened_file_path&quot;: &quot;F:/02.FNSProject/JAVA_MYSQL_HCJXJY&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;web.server&quot;,
&quot;spring.configuration.checksum&quot;: &quot;420f802bde281311b05da23e05cddeda&quot;
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RequestMappingsPanelOrder0": "0",
"RequestMappingsPanelOrder1": "1",
"RequestMappingsPanelWidth0": "75",
"RequestMappingsPanelWidth1": "75",
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
"WebServerToolWindowFactoryState": "false",
"last_opened_file_path": "F:/02.FNSProject/政采",
"settings.editor.selected.configurable": "web.server",
"spring.configuration.checksum": "420f802bde281311b05da23e05cddeda"
},
&quot;keyToStringList&quot;: {
&quot;DatabaseDriversLRU&quot;: [
&quot;mysql&quot;
"keyToStringList": {
"DatabaseDriversLRU": [
"mysql"
]
}
}</component>
}]]></component>
<component name="ReactorSettings">
<option name="notificationShown" value="true" />
</component>
@ -100,7 +99,8 @@
<workItem from="1730707640328" duration="6890000" />
<workItem from="1730768520960" duration="2315000" />
<workItem from="1730775057656" duration="322000" />
<workItem from="1730786878796" duration="291000" />
<workItem from="1730786878796" duration="2909000" />
<workItem from="1730888299302" duration="12000" />
</task>
<task id="LOCAL-00001" summary="更改表名字">
<created>1730470371982</created>
@ -123,7 +123,14 @@
<option name="project" value="LOCAL" />
<updated>1730775248145</updated>
</task>
<option name="localTasksCounter" value="4" />
<task id="LOCAL-00004" summary="1">
<created>1730787454245</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1730787454245</updated>
</task>
<option name="localTasksCounter" value="5" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -132,6 +139,7 @@
<component name="VcsManagerConfiguration">
<MESSAGE value="更改表名字" />
<MESSAGE value="官网优化" />
<option name="LAST_COMMIT_MESSAGE" value="官网优化" />
<MESSAGE value="1" />
<option name="LAST_COMMIT_MESSAGE" value="1" />
</component>
</project>

@ -31,6 +31,7 @@
news_id,
news_title,
news_logo,
news_content,
module_id,
type_id,
flag,

@ -0,0 +1,10 @@
# Getting Started
### Reference Documentation
For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.2.11.RELEASE/maven-plugin/)
* [Spring Configuration Processor](https://docs.spring.io/spring-boot/docs/2.3.5.RELEASE/reference/htmlsingle/#configuration-metadata-annotation-processor)
* [Spring Boot DevTools](https://docs.spring.io/spring-boot/docs/2.3.5.RELEASE/reference/htmlsingle/#using-boot-devtools)

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="jxjy-core" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.2.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.3.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.7.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.37" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.20.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.4.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.1.3" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.5" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.5" level="project" />
<orderEntry type="library" name="Maven: tk.mybatis:mapper:4.1.5" level="project" />
<orderEntry type="library" name="Maven: javax.persistence:persistence-api:1.0" level="project" />
<orderEntry type="library" name="Maven: com.qiniu:qiniu-java-sdk:7.2.29" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.squareup.okhttp3:okhttp:3.14.9" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.squareup.okio:okio:1.17.2" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.google.code.gson:gson:2.8.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.9" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.13" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:23.0" level="project" />
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:1.3.9" level="project" />
<orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.0.18" level="project" />
<orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.1" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.14" level="project" />
<orderEntry type="library" name="Maven: com.auth0:java-jwt:3.3.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.10.5" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.10.5" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.10.5" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.12" level="project" />
<orderEntry type="library" name="Maven: commons-httpclient:commons-httpclient:3.1" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.0.4" level="project" />
<orderEntry type="library" name="Maven: org.jdom:jdom:2.0.2" level="project" />
<orderEntry type="library" name="Maven: com.alipay.sdk:alipay-sdk-java:4.9.9" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.50" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.62" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.5" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.2.5" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.1.4" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.2.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.12.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.12.1" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.30" level="project" />
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.8.RELEASE" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.25" level="project" />
<orderEntry type="library" name="Maven: com.spring4all:swagger-spring-boot-starter:1.6.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-ui:2.7.0" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.7.0" level="project" />
<orderEntry type="library" name="Maven: org.reflections:reflections:0.9.11" level="project" />
<orderEntry type="library" name="Maven: org.javassist:javassist:3.21.0-GA" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.7.0" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.13" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.13" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.7.0" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-core:2.7.0" level="project" />
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.13" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.7.0" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.7.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.1.0.Final" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-bean-validators:2.7.0" level="project" />
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
</component>
</module>

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hc</groupId>
<artifactId>jxjy-education</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>jxjy-business</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>jxjy-business</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
<pagehelper.version>1.2.5</pagehelper.version>
</properties>
<dependencies>
<dependency>
<groupId>com.hc</groupId>
<artifactId>jxjy-core</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper.version}</version>
<exclusions>
<exclusion>
<artifactId>mybatis-spring-boot-starter</artifactId>
<groupId>org.mybatis.spring.boot</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

@ -0,0 +1,35 @@
package com.hc.business.dto;
import lombok.Getter;
/**
* @author 10696
* @since 2020/11/25 10:41
*/
@Getter
public class ClassCourseDto {
private Integer classCourseId;
private Integer classId;
private Integer courseId;
private Integer courseType;
private String courseName;
private String courseLogo;
private String courseDesc;
private Float courseHours;
private String courseTeacher;
private Integer isValid;
private String gallery;
private Integer reserved1;
}

@ -0,0 +1,16 @@
package com.hc.business.dto;
import com.hc.business.model.CourseChapterVideo;
import com.hc.business.model.UserVideoPosition;
import lombok.Data;
/**
* @author 10696
* @since 2020/11/25 10:41
*/
@Data
public class CourseVideoDto {
private CourseChapterVideo video;
private UserVideoPosition position;
}

@ -0,0 +1,62 @@
package com.hc.business.dto;
import lombok.Getter;
import lombok.ToString;
/**
* @author 10696
*/
@Getter
@ToString
public class OrderInvoicesDto {
private Integer ordersId;
private String orderNo;
private Integer userId;
private Integer classId;
private Integer orderStatus;
private String body;
private String subject;
private Double totalAmount;
private Long createTime;
private Long overTime;
private String remark;
private Integer isDe;
private Integer userInvoicesId;
private String invoicesHead;
private Integer invoicesType;
private String invoicesCode;
private String invoicesBank;
private String invoicesUser;
private String invoicesNo;
private Double invoicesPrice;
private Integer status;
private Long time;
private String remarks;
private String remarksSign;
private String taxCode;
}

@ -0,0 +1,27 @@
package com.hc.business.dto;
import java.io.Serializable;
import java.util.List;
public class PaperAnswer implements Serializable{
private Integer questionId;
private List<Integer> answerId;
public Integer getQuestionId() {
return questionId;
}
public void setQuestionId(Integer questionId) {
this.questionId = questionId;
}
public List<Integer> getAnswerId() {
return answerId;
}
public void setAnswerId(List<Integer> answerId) {
this.answerId = answerId;
}
}

@ -0,0 +1,26 @@
package com.hc.business.dto;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
@Data
public class PaperCommitDTO implements Serializable {
@NotNull(message = "用户id不可以为空")
private Integer userId;
@NotNull(message = "试卷id不可以为空")
private Integer paperId;
@NotNull(message = "班次id不可以为空")
private Integer classId;
@NotNull(message = "考试时间不可以为空")
private String testTime;
private List<PaperAnswer> answerList;
}

@ -0,0 +1,19 @@
package com.hc.business.dto;
import com.hc.business.model.Paper;
import lombok.Data;
import java.util.List;
/**
* @author 10696
*/
@Data
public class PaperResultDto {
private Paper paper;
private List<QuestionTypeDto> questionTypeDtoList;
}

@ -0,0 +1,16 @@
package com.hc.business.dto;
import lombok.Data;
import java.util.List;
/**
* @author 10696
*/
@Data
public class QuestionTypeDto {
private String typeName;
private List<Integer> questionList;
}

@ -0,0 +1,34 @@
package com.hc.business.dto;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* @author JIA
*/
@Data
public class RetrievePasswordDto {
@NotNull(message = "手机号不可以为空")
private String userMobile;
@NotNull(message = "短信回执不可以为空")
private String sessionId;
@NotNull(message = "验证码不可以为空")
private String code;
@NotNull(message = "新密码不可以为空")
private String password;
private String userName;
private String userGender;
private String userCompany;
private String userEmail;
}

@ -0,0 +1,23 @@
package com.hc.business.dto;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* @author JIA
*/
@Data
public class SmsLoginDto {
@NotNull(message = "手机号不可以为空")
private String userMobile;
@NotNull(message = "短信回执不可以为空")
private String sessionId;
@NotNull(message = "验证码不可以为空")
private String code;
}

@ -0,0 +1,17 @@
package com.hc.business.dto;
import lombok.Data;
/**
* @author 10696
* @since 2021/1/22 11:44
*/
@Data
public class StaTimeTable {
private String clickDate;
private Integer countCreate;
}

@ -0,0 +1,48 @@
package com.hc.business.dto;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
/**
* (ThirdCourse)
*
* @author java
* @since 2020-06-17 17:29:30
*/
@Data
public class ThirdCourseBack implements Serializable {
private static final long serialVersionUID = 819515458055433747L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* ID
*/
private Integer thirdId;
/**
* ID
*/
private Integer courseId;
/**
*
*/
private Integer status;
/**
*
*/
private Long createTime = System.currentTimeMillis();
private String courseName;
private String courseLogo;
}

@ -0,0 +1,24 @@
package com.hc.business.dto;
import com.hc.business.model.Course;
import com.hc.business.model.CourseChapterVideo;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @author 10696
*/
@Data
public class ThirdCourseDto implements Serializable {
private static final long serialVersionUID = -570784181035882992L;
private Course course;
private List<CourseChapterVideo> courseChapterVideoList;
}

@ -0,0 +1,29 @@
package com.hc.business.dto;
import lombok.Getter;
/**
* (TypeCourse)
*
* @author java
* @since 2020-11-09 10:05:18
*/
@Getter
public class TypeCourseDto {
private Integer courseTypeReId;
private Integer courseId;
private String courseName;
private String courseLogo;
private Integer courseHours;
private String courseTeacher;
}

@ -0,0 +1,53 @@
package com.hc.business.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (UserCourse)
*
* @author java
* @since 2020-11-09 10:05:18
*/
@Getter
public class UserCourseDto {
private Integer userCourseId;
private Integer userId;
private Integer courseId;
private Double coursePercent;
private String years;
private Integer classId;
private String courseName;
private String courseLogo;
private Integer courseType;
private Integer courseHours;
private String courseTeacher;
// private String courseDesc;
// private Float courseHours;
//private String courseTeacher;
}

@ -0,0 +1,59 @@
package com.hc.business.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (User)
*
* @author java
* @since 2020-11-09 10:04:13
*/
@Getter
public class UserListDto implements Serializable {
private Integer userId;
private Integer userType;
private String userName;
private String userMobile;
private String userEmail;
private String userGender;
private String userCompany;
///订单编号
private long orderNumber;
//支付状态
private int orderStatus;
//支付时间
private long orderTime;
//标题
private String className;
//备注
private String userReserved;
}

@ -0,0 +1,23 @@
package com.hc.business.dto;
import lombok.Data;
import java.math.BigDecimal;
/**
* @author 10696
* @since 2021/1/26 10:51
*/
@Data
public class UserPriceTotal {
private BigDecimal totalUserCount;
private BigDecimal todayUserCount;
private BigDecimal monthUserCount;
private BigDecimal yearUserCount;
}

@ -0,0 +1,45 @@
package com.hc.business.dto;
import lombok.Getter;
/**
* @author 10696
* @since 2020/12/6 11:50
*/
@Getter
public class UserStatusClassDto {
private Integer statusId;
private String className;
private Float totalHours;
private Long applyStartTime;
private Long applyEndTime;
private Long studyStartTime;
private Long studyEndTime;
private Long paperStartTime;
private Long paperEndTime;
private Long certStartTime;
private Long certEndTime;
private Integer classConfigId;
private Integer needPaper;
private Integer paperId;
private Integer userId;
private Integer status;
}

@ -0,0 +1,21 @@
package com.hc.business.dto;
import lombok.Data;
/**
* @author 10696
* @since 2021/1/22 13:30
*/
@Data
public class UserTimeTotal {
private Integer totalUserCount;
private Integer todayUserCount;
private Integer monthUserCount;
private Integer yearUserCount;
}

@ -0,0 +1,27 @@
package com.hc.business.mapper;
import com.hc.business.model.AreaDistrict;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (AreaDistrict)访
*
* @author java
* @since 2020-11-20 12:48:45
*/
@Repository
public interface AreaDistrictMapper extends Mapper<AreaDistrict> {
/**
* parentId
*
* @param parentId id
* @return
*/
List<AreaDistrict> queryAllByParentId(Integer parentId);
}

@ -0,0 +1,18 @@
package com.hc.business.mapper;
import com.hc.business.model.Banner;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
/**
* 广
* (Banner)访
*
* @author java
* @since 2020-11-26 09:29:48
*/
@Repository
public interface BannerMapper extends Mapper<Banner> {
}

@ -0,0 +1,57 @@
package com.hc.business.mapper;
import com.hc.business.model.ClassConfig;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (ClassConfig)访
*
* @author java
* @since 2020-11-19 16:12:30
*/
@Repository
public interface ClassConfigMapper extends Mapper<ClassConfig> {
/**
*
*
* @param valid 线
* @return
*/
List<ClassConfig> queryByValid(Integer valid);
/**
* id
*
* @param areaId id
* @return
*/
List<ClassConfig> queryByAreaId(Integer areaId);
/**
*
*
* @param name
* @return
*/
List<ClassConfig> queryByClassName(String name);
/**
*
*
* @param studyStartTime
* @return
*/
List<ClassConfig> queryByTime(Long studyStartTime);
/**
*
*
* @return
*/
List<ClassConfig> queryAll();
}

@ -0,0 +1,26 @@
package com.hc.business.mapper;
import com.hc.business.model.ClassConfigSponsor;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (ClassConfigSponsor)访
*
* @author java
* @since 2021-05-28 14:11:29
*/
@Repository
public interface ClassConfigSponsorMapper extends Mapper<ClassConfigSponsor> {
/**
*
*
* @param classId id
* @return
*/
List<ClassConfigSponsor> queryListByClassId(Integer classId);
}

@ -0,0 +1,42 @@
package com.hc.business.mapper;
import com.hc.business.dto.ClassCourseDto;
import com.hc.business.model.ClassCourse;
import com.hc.core.utils.mapper.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (ClassCourse)访
*
* @author java
* @since 2020-11-24 11:30:06
*/
@Repository
public interface ClassCourseMapper extends Mapper<ClassCourse> {
/**
*
*
* @param classId id
* @param courseType
* @return
*/
List<ClassCourseDto> queryByClassId(@Param("classId") Integer classId,
@Param("courseType") Integer courseType);
/**
*
*
* @param classId id
* @param courseId id
* @return
*/
List<ClassCourse> queryByClassIdWithCourseId(@Param("classId") Integer classId,
@Param("courseId") Integer courseId);
}

@ -0,0 +1,17 @@
package com.hc.business.mapper;
import com.hc.business.model.CourseChapterAnnex;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
/**
* (CourseChapterAnnex)访
*
* @author java
* @since 2020-11-09 10:04:49
*/
@Repository
public interface CourseChapterAnnexMapper extends Mapper<CourseChapterAnnex> {
}

@ -0,0 +1,28 @@
package com.hc.business.mapper;
import com.hc.business.model.CourseChapter;
import org.springframework.stereotype.Repository;
import com.hc.core.utils.mapper.Mapper;
import java.util.List;
import java.util.Map;
/**
* (CourseChapter)访
*
* @author java
* @since 2020-11-09 10:04:47
*/
@Repository
public interface CourseChapterMapper extends Mapper<CourseChapter> {
/**
* william
*
* @param map
* @return
*/
List<CourseChapter> getCourseChapterChildList(Map<String, Object> map);
}

@ -0,0 +1,17 @@
package com.hc.business.mapper;
import com.hc.business.model.CourseChapterTag;
import org.springframework.stereotype.Repository;
import com.hc.core.utils.mapper.Mapper;
/**
* (CourseChapterTag)访
*
* @author java
* @since 2020-11-09 10:04:51
*/
@Repository
public interface CourseChapterTagMapper extends Mapper<CourseChapterTag> {
}

@ -0,0 +1,17 @@
package com.hc.business.mapper;
import com.hc.business.model.CourseChapterTest;
import org.springframework.stereotype.Repository;
import com.hc.core.utils.mapper.Mapper;
/**
* /(CourseChapterTest)访
*
* @author java
* @since 2020-11-09 10:04:53
*/
@Repository
public interface CourseChapterTestMapper extends Mapper<CourseChapterTest> {
}

@ -0,0 +1,35 @@
package com.hc.business.mapper;
import com.hc.business.model.CourseChapterVideo;
import org.springframework.stereotype.Repository;
import com.hc.core.utils.mapper.Mapper;
import java.util.List;
/**
* (CourseChapterVideo)访
*
* @author java
* @since 2020-11-09 10:04:55
*/
@Repository
public interface CourseChapterVideoMapper extends Mapper<CourseChapterVideo> {
/**
*
*
* @param chapterId id
* @return
*/
List<CourseChapterVideo> selectVideoByChapterId(Integer chapterId);
/**
*
*
* @param courseId id
* @return
*/
List<CourseChapterVideo> selectVideoByCourseId(Integer courseId);
}

@ -0,0 +1,50 @@
package com.hc.business.mapper;
import com.hc.business.model.Course;
import org.springframework.stereotype.Repository;
import com.hc.core.utils.mapper.Mapper;
import java.util.List;
/**
* (Course)访
*
* @author java
* @since 2020-11-09 10:04:45
*/
@Repository
public interface CourseMapper extends Mapper<Course> {
/**
* id
*
* @param typeId id
* @return
*/
List<Course> queryByTypeId(Integer typeId);
/**
*
*
* @param name
* @return
*/
List<Course> queryTeacherName(String name);
/**
*
*
* @param name
* @return
*/
List<Course> queryCourseName(String name);
/**
*
*
* @param valid
* @return
*/
List<Course> queryAll(Integer valid);
}

@ -0,0 +1,29 @@
package com.hc.business.mapper;
import com.hc.business.model.CourseType;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
/**
* (CourseType)访
*
* @author java
* @since 2020-12-17 14:12:51
*/
@Repository
public interface CourseTypeMapper extends Mapper<CourseType> {
/**
*
*
* @param courseName
* @return
*/
List<CourseType> queryAllByCourseName(String courseName);
}

@ -0,0 +1,17 @@
package com.hc.business.mapper;
import com.hc.business.model.CourseTypeRelation;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
/**
* (CourseTypeRelation)访
*
* @author java
* @since 2021-02-02 09:25:08
*/
@Repository
public interface CourseTypeRelationMapper extends Mapper<CourseTypeRelation> {
}

@ -0,0 +1,29 @@
package com.hc.business.mapper;
import com.hc.business.model.News;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
*
* (News)访
*
* @author java
* @since 2020-11-20 11:48:36
*/
@Repository
public interface NewsMapper extends Mapper<News> {
/**
* idnews
*
* @param tagId id
* @return
*/
List<News> queryByTagId(Integer tagId);
}

@ -0,0 +1,26 @@
package com.hc.business.mapper;
import com.hc.business.model.NewsTag;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (NewsTag)访
*
* @author java
* @since 2020-11-20 12:52:32
*/
@Repository
public interface NewsTagMapper extends Mapper<NewsTag> {
/**
*
*
* @return
*/
List<NewsTag> queryAll();
}

@ -0,0 +1,38 @@
package com.hc.business.mapper;
import com.hc.business.model.OrderUserLog;
import com.hc.core.utils.mapper.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (OrderUserLog)访
*
* @author java
* @since 2020-12-03 09:25:08
*/
@Repository
public interface OrderUserLogMapper extends Mapper<OrderUserLog> {
/**
* id
*
* @param ordersId id
* @return
*/
List<OrderUserLog> queryByOrderId(Integer ordersId);
/**
* idid
*
* @param ordersId id
* @param userId id
* @return
*/
List<OrderUserLog> queryByUserIdAndOrderId(@Param("ordersId") Integer ordersId,
@Param("userId") Integer userId);
}

@ -0,0 +1,112 @@
package com.hc.business.mapper;
import com.hc.business.dto.OrderInvoicesDto;
import com.hc.business.model.Orders;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.math.BigDecimal;
import java.util.List;
/**
* (Orders)访
*
* @author java
* @since 2020-11-26 16:46:42
*/
@Repository
public interface OrdersMapper extends Mapper<Orders> {
/**
*
*
* @param orderNo
* @return
*/
Orders queryByOrderNo(String orderNo);
/**
* id
*
* @param userId id
* @return
*/
List<Orders> queryAllByUserId(Integer userId);
/**
*
*
* @param classId id
* @return
*/
List<Orders> queryAllByClassId(Integer classId);
/**
*
*
* @param className
* @return
*/
List<Orders> queryAllByClassName(String className);
/**
*
*
* @param status
* @return
*/
List<Orders> queryAllByStatus(Integer status);
/**
* id
*
* @param userInvoicesId id
* @return
*/
List<Orders> queryByUserInvoicesId(Integer userInvoicesId);
/**
*
*
* @return
*/
BigDecimal countPrice();
/**
*
*
* @return int
*/
BigDecimal queryToday();
/**
*
*
* @return int
*/
BigDecimal queryMonth();
/**
*
*
* @return int
*/
BigDecimal queryYear();
/**
*
*
* @return
*/
Integer countOrderTotal();
/**
*
*
* @return
*/
List<OrderInvoicesDto> queryAllWithInvoices();
}

@ -0,0 +1,17 @@
package com.hc.business.mapper;
import com.hc.business.model.Paper;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
/**
* (Paper)访
*
* @author java
* @since 2020-12-07 11:34:34
*/
@Repository
public interface PaperMapper extends Mapper<Paper> {
}

@ -0,0 +1,27 @@
package com.hc.business.mapper;
import com.hc.business.model.PaperQuestion;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (PaperQuestion)访
*
* @author java
* @since 2020-12-07 11:35:11
*/
@Repository
public interface PaperQuestionMapper extends Mapper<PaperQuestion> {
/**
* id
*
* @param paperId id
* @return
*/
List<PaperQuestion> queryByPaperId(Integer paperId);
}

@ -0,0 +1,34 @@
package com.hc.business.mapper;
import com.hc.business.model.QuestionAnswer;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (QuestionAnswer)访
*
* @author java
* @since 2020-12-07 11:36:19
*/
@Repository
public interface QuestionAnswerMapper extends Mapper<QuestionAnswer> {
/**
*
*
* @param questionId id
* @return
*/
List<QuestionAnswer> queryByQuestionId(Integer questionId);
/**
* idid
*
* @param questionId id
* @return
*/
List<Integer> selectAnswerIdListByQuestionId(Integer questionId);
}

@ -0,0 +1,50 @@
package com.hc.business.mapper;
import com.hc.business.model.Question;
import com.hc.core.utils.mapper.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (Question)访
*
* @author java
* @since 2020-12-07 11:35:55
*/
@Repository
public interface QuestionMapper extends Mapper<Question> {
/**
*
*
* @param questionId id
* @return
*/
Question queryById(Integer questionId);
/**
*
*
* @return
*/
List<Question> queryQuestions();
/**
* id
*
* @return
*/
List<Integer> queryByTagId(@Param("questionType") Integer questionType,
@Param("questionLevel") Integer questionLevel,
@Param("questionTagId") Integer questionTagId);
List<Integer> queryTagId(@Param("questionTagId") Integer questionTagId);
}

@ -0,0 +1,17 @@
package com.hc.business.mapper;
import com.hc.business.model.QuestionTag;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
/**
* (QuestionTag)访
*
* @author java
* @since 2020-12-07 11:36:39
*/
@Repository
public interface QuestionTagMapper extends Mapper<QuestionTag> {
}

@ -0,0 +1,17 @@
package com.hc.business.mapper;
import com.hc.business.model.QuestionType;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
/**
* (QuestionType)访
*
* @author java
* @since 2020-12-07 11:37:00
*/
@Repository
public interface QuestionTypeMapper extends Mapper<QuestionType> {
}

@ -0,0 +1,29 @@
package com.hc.business.mapper;
import com.hc.business.model.Course;
import com.hc.business.model.ThirdCourse;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (ThirdCourse)访
*
* @author java
* @since 2020-06-17 17:29:30
*/
@Repository
public interface ThirdCourseMapper extends Mapper<ThirdCourse> {
/**
*
*
* @param thirdId
* @return
*/
List<Course> queryThreadCourse(Integer thirdId);
}

@ -0,0 +1,30 @@
package com.hc.business.mapper;
import com.hc.business.model.Third;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (Third)访
*
* @author java
* @since 2020-06-17 17:29:30
*/
@Repository
public interface ThirdMapper extends Mapper<Third> {
/**
* token
*
* @param token
* @return
*/
List<Third> queryThirdByToken(String token);
}

@ -0,0 +1,27 @@
package com.hc.business.mapper;
import com.hc.business.model.UserAdmin;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (UserAdmin)访
*
* @author java
* @since 2020-11-16 13:45:04
*/
@Repository
public interface UserAdminMapper extends Mapper<UserAdmin> {
/**
*
*
* @param adminAccount
* @return
*/
List<UserAdmin> selectUserAdmin(String adminAccount);
}

@ -0,0 +1,42 @@
package com.hc.business.mapper;
import com.hc.business.model.UserAdvise;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
*
* (UserAdvise)访
*
* @author java
* @since 2020-11-16 14:20:02
*/
@Repository
public interface UserAdviseMapper extends Mapper<UserAdvise> {
/**
* id
*
* @param userId id
* @return
*/
List<UserAdvise> queryAllByUserId(Integer userId);
/**
* id
*
* @param adviceType id
* @return
*/
List<UserAdvise> queryAllByAdviceType(Integer adviceType);
/**
*
*
* @return
*/
List<UserAdvise> queryAll();
}

@ -0,0 +1,61 @@
package com.hc.business.mapper;
import com.hc.business.dto.UserCourseDto;
import com.hc.business.model.UserCourse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.hc.core.utils.mapper.Mapper;
import java.util.List;
/**
* (UserCourse)访
*
* @author java
* @since 2020-11-09 10:05:19
*/
@Repository
public interface UserCourseMapper extends Mapper<UserCourse> {
/**
* id id
*
* @param userId id
* @return
*/
List<UserCourseDto> selectUserCourseList(@Param("userId") Integer userId,
@Param("classId") Integer classId);
/**
* id id
*
* @param userId id
* @param classId id
* @return
*/
List<UserCourse> selectUserCourseListByParam(@Param("userId") Integer userId,
@Param("classId") Integer classId);
/**
* id id,id
*
* @param userId id
* @return
*/
List<UserCourseDto> selectUserCourseProgress(@Param("userId") Integer userId,
@Param("classId") Integer classId,
@Param("courseId") Integer courseId);
/**
*
*
* @param userId id
* @param classId id
* @param courseId id
* @return
*/
List<UserCourse> selectUserCourse(@Param("userId") Integer userId,
@Param("classId") Integer classId,
@Param("courseId") Integer courseId);
}

@ -0,0 +1,50 @@
package com.hc.business.mapper;
import com.hc.business.model.UserInvoices;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (UserInvoices)访
*
* @author java
* @since 2020-12-02 10:50:34
*/
@Repository
public interface UserInvoicesMapper extends Mapper<UserInvoices> {
/**
*
*
* @param userId id
* @return
*/
List<UserInvoices> queryDetailByUserId(Integer userId);
/**
*
*
* @return
*/
List<UserInvoices> queryAll();
/**
*
*
* @param classId id
* @return
*/
List<UserInvoices> queryByClassId(Integer classId);
/**
*
*
* @param status
* @return
*/
List<UserInvoices> queryByStatus(Integer status);
}

@ -0,0 +1,99 @@
package com.hc.business.mapper;
import com.hc.business.dto.StaTimeTable;
import com.hc.business.dto.UserListDto;
import com.hc.business.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.hc.core.utils.mapper.Mapper;
import java.util.List;
/**
* (User)访
*
* @author java
* @since 2020-11-09 10:04:14
*/
@Repository
public interface UserMapper extends Mapper<User> {
/**
*
*
* @param userMobile
* @return
*/
List<User> queryUserByMobile(String userMobile);
/**
*
*
* @param cardId
* @return
*/
List<User> queryOneByCardId(String cardId);
/**
*
*
* @param name
* @return
*/
List<User> queryUserByName(String name);
/**
*
*
* @param name
* @return
*/
List<UserListDto> queryUserByClassName(@Param("name")String name);
/**
*
*
* @param name
* @return
*/
List<UserListDto> queryUserByClassNameAndPay(@Param("name")String name);
/**
*
*
* @return
*/
List<StaTimeTable> queryByUserCount();
/**
*
*
* @return int
*/
Integer queryToday();
/**
*
*
* @return int
*/
Integer queryMonth();
/**
*
*
* @return int
*/
Integer queryYear();
/**
*
*
* @return int
*/
int queryTotal();
}

@ -0,0 +1,26 @@
package com.hc.business.mapper;
import com.hc.business.model.UserRefundHistory;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
/**
* 退(UserRefundHistory)访
*
* @author java
* @since 2020-12-10 11:31:38
*/
@Repository
public interface UserRefundHistoryMapper extends Mapper<UserRefundHistory> {
/**
* 退
*
* @param orderNo
* @return
*/
UserRefundHistory queryByOrderNo(String orderNo);
}

@ -0,0 +1,59 @@
package com.hc.business.mapper;
import com.hc.business.dto.UserStatusClassDto;
import com.hc.business.model.User;
import com.hc.business.model.UserStatus;
import com.hc.core.utils.mapper.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
*
* (UserStatus)访
*
* @author java
* @since 2020-12-06 11:26:42
*/
@Repository
public interface UserStatusMapper extends Mapper<UserStatus> {
/**
*
*
* @param userId id
* @return
*/
List<UserStatusClassDto> queryDtoByUserId(Integer userId);
/**
*
*
* @param userId id
* @return
*/
List<UserStatus> queryByUserId(Integer userId);
/**
*
*
* @param userId id
* @param classId id
* @return
*/
List<UserStatus> queryByClassIdAndUserId(@Param("classId") Integer classId,
@Param("userId") Integer userId);
/**
*
*
* @param classId id
* @return
*/
List<User> queryByClassId(Integer classId);
}

@ -0,0 +1,27 @@
package com.hc.business.mapper;
import com.hc.business.model.UserTeacher;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (UserTeacher)访
*
* @author java
* @since 2020-11-20 11:08:18
*/
@Repository
public interface UserTeacherMapper extends Mapper<UserTeacher> {
/**
*
*
* @param name
* @return
*/
List<UserTeacher> queryByName(String name);
}

@ -0,0 +1,26 @@
package com.hc.business.mapper;
import com.hc.business.model.UserTestHistory;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;
/**
* (UserTestHistory)访
*
* @author java
* @since 2020-12-07 11:28:18
*/
@Repository
public interface UserTestHistoryMapper extends Mapper<UserTestHistory> {
/**
*
*
* @param userId id
* @param classId id
* @return
*/
UserTestHistory queryMaxScore(Integer userId, Integer classId);
}

@ -0,0 +1,30 @@
package com.hc.business.mapper;
import com.hc.business.model.UserVideoPosition;
import com.hc.core.utils.mapper.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (UserVideoPosition)访
*
* @author java
* @since 2020-05-29 15:50:50
*/
@Repository
public interface UserVideoPositionMapper extends Mapper<UserVideoPosition>{
/**
*
*
* @param videoId
* @param userId
* @return
*/
List<UserVideoPosition> selectUserPositionByUserAndVideo(@Param("videoId") Integer videoId,
@Param("userId") Integer userId);
}

@ -0,0 +1,143 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
/**
* (AreaDistrict)
*
* @author java
* @since 2020-11-20 12:48:44
*/
@ApiModel(value = "地区表")
public class AreaDistrict implements Serializable {
private static final long serialVersionUID = -60609528264342036L;
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "地区编号")
private Integer areaId;
/**
*
*/
@ApiModelProperty(value = "地区名称", required = true)
@NotNull
private String areaName;
/**
*
*/
@ApiModelProperty(value = "父级编号", required = true)
@NotNull
private Integer parentId;
/**
*
*/
@ApiModelProperty(value = "省级配图", required = true)
private String areaImage;
/**
* 0/ 1/
*/
@ApiModelProperty(value = "地区状态 0/锁定 1/开放", required = true)
private Integer areaStatus;
/**
*
*/
@ApiModelProperty(value = "地区索引", required = true)
@NotNull
private Integer areaIndex;
/**
*
*/
@Transient
private List<AreaDistrict> areaDistrictList;
public AreaDistrict(Integer areaId, @NotNull String areaName,
@NotNull Integer parentId, String areaImage,
Integer areaStatus, @NotNull Integer areaIndex) {
this.areaId = areaId;
this.areaName = areaName;
this.parentId = parentId;
this.areaImage = areaImage;
this.areaStatus = areaStatus;
this.areaIndex = areaIndex;
}
public AreaDistrict() {
}
public Integer getAreaId() {
return areaId;
}
public void setAreaId(Integer areaId) {
this.areaId = areaId;
}
public String getAreaName() {
return areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public String getAreaImage() {
return areaImage;
}
public void setAreaImage(String areaImage) {
this.areaImage = areaImage;
}
public Integer getAreaStatus() {
return areaStatus;
}
public void setAreaStatus(Integer areaStatus) {
this.areaStatus = areaStatus;
}
public Integer getAreaIndex() {
return areaIndex;
}
public void setAreaIndex(Integer areaIndex) {
this.areaIndex = areaIndex;
}
public List<AreaDistrict> getAreaDistrictList() {
return areaDistrictList;
}
public void setAreaDistrictList(List<AreaDistrict> areaDistrictList) {
this.areaDistrictList = areaDistrictList;
}
}

@ -0,0 +1,119 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* 广
* (Banner)
*
* @author java
* @since 2020-11-26 09:29:46
*/
@ApiModel(value = "banner表")
public class Banner implements Serializable {
private static final long serialVersionUID = -34877727454440687L;
/**
* ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "ID主键")
private Integer bannerId;
/**
* 广
*/
@ApiModelProperty(value = "广告连接", required = true)
@NotNull
private String bannerUrl;
/**
*
*/
@ApiModelProperty(value = "索引", required = true)
@NotNull
private Integer bannerIndex;
/**
* banner01bannerbanner
*/
@ApiModelProperty(value = "banner的位置01分表表示主banner教师banner", required = true)
@NotNull
private Integer bannerType;
/**
* banner
*/
@ApiModelProperty(value = "banner的跳转位置", required = true)
private String bannerDest;
public Banner(Integer bannerId,
@NotNull String bannerUrl,
@NotNull Integer bannerIndex,
@NotNull Integer bannerType,
String bannerDest) {
this.bannerId = bannerId;
this.bannerUrl = bannerUrl;
this.bannerIndex = bannerIndex;
this.bannerType = bannerType;
this.bannerDest = bannerDest;
}
public Banner() {
}
public Integer getBannerId() {
return bannerId;
}
public void setBannerId(Integer bannerId) {
this.bannerId = bannerId;
}
public String getBannerUrl() {
return bannerUrl;
}
public void setBannerUrl(String bannerUrl) {
this.bannerUrl = bannerUrl;
}
public Integer getBannerIndex() {
return bannerIndex;
}
public void setBannerIndex(Integer bannerIndex) {
this.bannerIndex = bannerIndex;
}
public Integer getBannerType() {
return bannerType;
}
public void setBannerType(Integer bannerType) {
this.bannerType = bannerType;
}
public String getBannerDest() {
return bannerDest;
}
public void setBannerDest(String bannerDest) {
this.bannerDest = bannerDest;
}
}

@ -0,0 +1,202 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (ClassConfig)
*
* @author java
* @since 2020-11-19 16:12:27
*/
@Data
@ApiModel(value = "班次表")
public class ClassConfig implements Serializable {
private static final long serialVersionUID = 627209293304274727L;
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "地区配置编号")
private Integer classConfigId;
/**
*
*/
@ApiModelProperty(value = "班次名称名称", required = true)
@NotNull
private String className;
/**
*
*/
@ApiModelProperty(value = "培训班介绍", required = true)
@NotNull
private String classDesc;
/**
* 123++ 2.+ 3 23线
*/
@ApiModelProperty(value = "类型目前启用123分表表示先上班看课+考试+打印证书 2.考试+打印证书 3只打印证书 23对应线下班", required = true)
private Integer classType;
/**
*
*/
@ApiModelProperty(value = "配图地址", required = true)
@NotNull
private String classLogo;
/**
* PC
*/
@ApiModelProperty(value = "新PC配图地址")
private String classContent;
/**
*
*/
@ApiModelProperty(value = "移动端配图地址")
private String classMobileContent;
/**
*
*/
@ApiModelProperty(value = "地区编号", required = true)
@NotNull
private Integer areaId;
@Transient
@ApiModelProperty(value = "地区名称")
private String areaName;
/**
*
*/
@ApiModelProperty(value = "必修课学时,根据选得必修课自动计算", required = true)
private Float bxHours;
/**
*
*/
@ApiModelProperty(value = "选修课学时,管理员录入", required = true)
private Float xxHours;
/**
*
*/
@ApiModelProperty(value = "考试学分,考试通过自动获取", required = true)
private Float paperHours;
/**
*
*/
@ApiModelProperty(value = "试卷")
private Integer paperId;
/**
*
*/
@ApiModelProperty(value = "创建时间")
private Long createTime;
/**
*
*/
@ApiModelProperty(value = "年份")
private String years;
/**
*
*/
@ApiModelProperty(value = "单价", required = true)
@NotNull
private Double price;
/**
*
*/
@ApiModelProperty(value = "报名开始时间", required = true)
private Long applyStartTime;
/**
*
*/
@ApiModelProperty(value = "报名结束时间", required = true)
private Long applyEndTime;
/**
*
*/
@ApiModelProperty(value = "学习开始时间", required = true)
private Long studyStartTime;
/**
*
*/
@ApiModelProperty(value = "学习结束时间", required = true)
private Long studyEndTime;
/**
*
*/
@ApiModelProperty(value = "考试开始开始时间", required = true)
private Long paperStartTime;
/**
*
*/
@ApiModelProperty(value = "考试结束时间", required = true)
private Long paperEndTime;
/**
*
*/
@ApiModelProperty(value = "打印证书开始时间", required = true)
private Long certStartTime;
/**
*
*/
@ApiModelProperty(value = "打印证书结束时间,可以不限制", required = true)
private Long certEndTime;
/**
*
*/
@ApiModelProperty(value = "是否需要考试", required = true)
@NotNull
private Integer needPaper;
/**
*
*/
@ApiModelProperty(value = "是否有效 0 无效 1有效 ")
private Integer valid;
/**
*
*/
@ApiModelProperty(value = "签证时间")
private Long signTime;
private String prefix;
}

@ -0,0 +1,61 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* @author jia
*/
@Data
@ApiModel(value = "班次图章表")
public class ClassConfigSponsor implements Serializable {
private static final long serialVersionUID = 961577731337873266L;
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键", required = true)
private Integer sponsorId;
/**
*
*/
@ApiModelProperty(value = "主办方图章地址", required = true)
private String sponsorUrl;
/**
*
*/
@ApiModelProperty(value = "主板方名称", required = true)
private String sponsorName;
/**
* id
*/
@ApiModelProperty(value = "班次id", required = true)
@NotNull
private Integer classId;
/**
*
*/
@ApiModelProperty(value = "排序", required = true)
private Integer sponsorIndex;
/**
*
*/
@ApiModelProperty(value = "创建时间", required = true)
private Long createTime;
}

@ -0,0 +1,114 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (ClassCourse)
*
* @author java
* @since 2020-11-24 11:33:30
*/
@ApiModel(value = "地区课程表")
public class ClassCourse implements Serializable {
private static final long serialVersionUID = -67544251618141718L;
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "地区课程编号")
private Integer classCourseId;
/**
* ID
*/
@ApiModelProperty(value = "班次ID", required = true)
@NotNull
private Integer classId;
/**
*
*/
@ApiModelProperty(value = "课程编号", required = true)
@NotNull
private Integer courseId;
/**
* 12
*/
@ApiModelProperty(value = "课程类型12分表示必选课可选课", required = true)
@NotNull
private Integer courseType;
/**
*
*/
@ApiModelProperty(value = "创建时间")
private Long createTime;
public ClassCourse(Integer classCourseId, @NotNull Integer classId,
@NotNull Integer courseId,
@NotNull Integer courseType, Long createTime) {
this.classCourseId = classCourseId;
this.classId = classId;
this.courseId = courseId;
this.courseType = courseType;
this.createTime = createTime;
}
public ClassCourse() {
}
public Integer getClassCourseId() {
return classCourseId;
}
public void setClassCourseId(Integer classCourseId) {
this.classCourseId = classCourseId;
}
public Integer getClassId() {
return classId;
}
public void setClassId(Integer classId) {
this.classId = classId;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
public Integer getCourseType() {
return courseType;
}
public void setCourseType(Integer courseType) {
this.courseType = courseType;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

@ -0,0 +1,176 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (Course)
*
* @author java
* @since 2020-11-09 10:04:45
*/
@ApiModel(value = "课程表")
public class Course implements Serializable {
private static final long serialVersionUID = -89648020880598418L;
/**
* ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键ID")
private Integer courseId;
/**
*
*/
@ApiModelProperty(value = "课程名称", required = true)
@NotNull
private String courseName;
/**
*
*/
@ApiModelProperty(value = "图标", required = true)
@NotNull
private String courseLogo;
/**
*
*/
@ApiModelProperty(value = "课程介绍", required = true)
@NotNull
private String courseDesc;
/**
*
*/
@ApiModelProperty(value = "课程时长", required = true)
private Float courseHours;
/**
*
*/
@ApiModelProperty(value = "教师", required = true)
private String courseTeacher;
/**
*
*/
@ApiModelProperty(value = "课程是否上架。下架后不可见")
private Integer isValid;
/**
*
*/
@ApiModelProperty(value = "如果有多张详情图,相册")
private String gallery;
/**
* 使
*/
@ApiModelProperty(value = "保留位,暂不使用")
private Integer reserved1;
public Course(Integer courseId, @NotNull String courseName,
@NotNull String courseLogo, @NotNull String courseDesc,
Float courseHours,
String courseTeacher, Integer isValid,
String gallery, Integer reserved1) {
this.courseId = courseId;
this.courseName = courseName;
this.courseLogo = courseLogo;
this.courseDesc = courseDesc;
this.courseHours = courseHours;
this.courseTeacher = courseTeacher;
this.isValid = isValid;
this.gallery = gallery;
this.reserved1 = reserved1;
}
public Course() {
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public String getCourseLogo() {
return courseLogo;
}
public void setCourseLogo(String courseLogo) {
this.courseLogo = courseLogo;
}
public String getCourseDesc() {
return courseDesc;
}
public void setCourseDesc(String courseDesc) {
this.courseDesc = courseDesc;
}
public Float getCourseHours() {
return courseHours;
}
public void setCourseHours(Float courseHours) {
this.courseHours = courseHours;
}
public String getCourseTeacher() {
return courseTeacher;
}
public void setCourseTeacher(String courseTeacher) {
this.courseTeacher = courseTeacher;
}
public Integer getIsValid() {
return isValid;
}
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
public String getGallery() {
return gallery;
}
public void setGallery(String gallery) {
this.gallery = gallery;
}
public Integer getReserved1() {
return reserved1;
}
public void setReserved1(Integer reserved1) {
this.reserved1 = reserved1;
}
}

@ -0,0 +1,165 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
/**
* (CourseChapter)
*
* @author java
* @since 2020-11-09 10:04:47
*/
@ApiModel(value = "章节表")
public class CourseChapter implements Serializable {
private static final long serialVersionUID = 873871660383226119L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer courseChapterId;
/**
*
*/
@ApiModelProperty(value = "章节名字", required = true)
@NotNull
private String chapterName;
/**
* ID
*/
@ApiModelProperty(value = "父节点ID", required = true)
@NotNull
private Integer parentId;
/**
*
*/
@ApiModelProperty(value = "章节层级", required = true)
@NotNull
private Integer chapterLevel;
/**
* ID
*/
@ApiModelProperty(value = "课程ID", required = true)
@NotNull
private Integer courseId;
/**
*
*/
@Transient
private List<CourseChapter> childChapter;
@Transient
private CourseChapterVideo chapterVideo;
@Transient
private CourseChapterAnnex courseChapterAnnex;
@Transient
private UserVideoPosition userVideoPosition;
public CourseChapter(Integer courseChapterId, @NotNull String chapterName,
@NotNull Integer parentId,
@NotNull Integer chapterLevel,
@NotNull Integer courseId) {
this.courseChapterId = courseChapterId;
this.chapterName = chapterName;
this.parentId = parentId;
this.chapterLevel = chapterLevel;
this.courseId = courseId;
}
public CourseChapter() {
}
public Integer getCourseChapterId() {
return courseChapterId;
}
public void setCourseChapterId(Integer courseChapterId) {
this.courseChapterId = courseChapterId;
}
public String getChapterName() {
return chapterName;
}
public void setChapterName(String chapterName) {
this.chapterName = chapterName;
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public Integer getChapterLevel() {
return chapterLevel;
}
public void setChapterLevel(Integer chapterLevel) {
this.chapterLevel = chapterLevel;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
public List<CourseChapter> getChildChapter() {
return childChapter;
}
public void setChildChapter(List<CourseChapter> childChapter) {
this.childChapter = childChapter;
}
public CourseChapterVideo getChapterVideo() {
return chapterVideo;
}
public void setChapterVideo(CourseChapterVideo chapterVideo) {
this.chapterVideo = chapterVideo;
}
public CourseChapterAnnex getCourseChapterAnnex() {
return courseChapterAnnex;
}
public void setCourseChapterAnnex(CourseChapterAnnex courseChapterAnnex) {
this.courseChapterAnnex = courseChapterAnnex;
}
public UserVideoPosition getUserVideoPosition() {
return userVideoPosition;
}
public void setUserVideoPosition(UserVideoPosition userVideoPosition) {
this.userVideoPosition = userVideoPosition;
}
}

@ -0,0 +1,115 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (CourseChapterAnnex)
*
* @author java
* @since 2020-11-09 10:04:48
*/
@ApiModel(value = "章节附件表")
public class CourseChapterAnnex implements Serializable {
private static final long serialVersionUID = 282553089268625985L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer courseChapterAnnexId;
/**
*
*/
@ApiModelProperty(value = "附件名字", required = true)
@NotNull
private String annexName;
/**
* ID
*/
@ApiModelProperty(value = "章节ID", required = true)
@NotNull
private Integer courseChapterId;
/**
*
*/
@ApiModelProperty(value = "介绍", required = true)
@NotNull
private String annexIntroduction;
/**
*
*/
@ApiModelProperty(value = "附件地址", required = true)
@NotNull
private String annexUrl;
public CourseChapterAnnex(Integer courseChapterAnnexId, @NotNull String annexName,
@NotNull Integer courseChapterId,
@NotNull String annexIntroduction, @NotNull String annexUrl) {
this.courseChapterAnnexId = courseChapterAnnexId;
this.annexName = annexName;
this.courseChapterId = courseChapterId;
this.annexIntroduction = annexIntroduction;
this.annexUrl = annexUrl;
}
public CourseChapterAnnex() {
}
public Integer getCourseChapterAnnexId() {
return courseChapterAnnexId;
}
public void setCourseChapterAnnexId(Integer courseChapterAnnexId) {
this.courseChapterAnnexId = courseChapterAnnexId;
}
public String getAnnexName() {
return annexName;
}
public void setAnnexName(String annexName) {
this.annexName = annexName;
}
public Integer getCourseChapterId() {
return courseChapterId;
}
public void setCourseChapterId(Integer courseChapterId) {
this.courseChapterId = courseChapterId;
}
public String getAnnexIntroduction() {
return annexIntroduction;
}
public void setAnnexIntroduction(String annexIntroduction) {
this.annexIntroduction = annexIntroduction;
}
public String getAnnexUrl() {
return annexUrl;
}
public void setAnnexUrl(String annexUrl) {
this.annexUrl = annexUrl;
}
}

@ -0,0 +1,132 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (CourseChapterTag)
*
* @author java
* @since 2020-11-09 10:04:50
*/
@ApiModel(value = "章节标签表")
public class CourseChapterTag implements Serializable {
private static final long serialVersionUID = 998792510540027363L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer tagId;
/**
*
*/
@ApiModelProperty(value = "标签名", required = true)
@NotNull
private String tagName;
/**
*
*/
@ApiModelProperty(value = "显示索引", required = true)
@NotNull
private Integer tagIndex;
/**
* ID
*/
@ApiModelProperty(value = "章节ID", required = true)
@NotNull
private Integer chapterId;
/**
*
*/
@ApiModelProperty(value = "讲师", required = true)
@NotNull
private String teacherName;
/**
* ID
*/
@ApiModelProperty(value = "课程ID", required = true)
@NotNull
private Integer courseId;
public CourseChapterTag(Integer tagId, @NotNull String tagName,
@NotNull Integer tagIndex, @NotNull Integer chapterId,
@NotNull String teacherName, @NotNull Integer courseId) {
this.tagId = tagId;
this.tagName = tagName;
this.tagIndex = tagIndex;
this.chapterId = chapterId;
this.teacherName = teacherName;
this.courseId = courseId;
}
public CourseChapterTag() {
}
public Integer getTagId() {
return tagId;
}
public void setTagId(Integer tagId) {
this.tagId = tagId;
}
public String getTagName() {
return tagName;
}
public void setTagName(String tagName) {
this.tagName = tagName;
}
public Integer getTagIndex() {
return tagIndex;
}
public void setTagIndex(Integer tagIndex) {
this.tagIndex = tagIndex;
}
public Integer getChapterId() {
return chapterId;
}
public void setChapterId(Integer chapterId) {
this.chapterId = chapterId;
}
public String getTeacherName() {
return teacherName;
}
public void setTeacherName(String teacherName) {
this.teacherName = teacherName;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
}

@ -0,0 +1,98 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* /(CourseChapterTest)
*
* @author java
* @since 2020-11-09 10:04:52
*/
@ApiModel(value = "章节测试表")
public class CourseChapterTest implements Serializable {
private static final long serialVersionUID = 314641819841270641L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer testId;
/**
* id
*/
@ApiModelProperty(value = "习题id", required = true)
@NotNull
private Integer questionId;
/**
* id.0
*/
@ApiModelProperty(value = "章节id.目前得系统部分章节默认0", required = true)
@NotNull
private Integer chapterId;
/**
* ID
*/
@ApiModelProperty(value = "课程ID。目前得随堂练习都是配置在图书下得", required = true)
@NotNull
private Integer courseId;
public CourseChapterTest(Integer testId, @NotNull Integer questionId,
@NotNull Integer chapterId, @NotNull Integer courseId) {
this.testId = testId;
this.questionId = questionId;
this.chapterId = chapterId;
this.courseId = courseId;
}
public CourseChapterTest() {
}
public Integer getTestId() {
return testId;
}
public void setTestId(Integer testId) {
this.testId = testId;
}
public Integer getQuestionId() {
return questionId;
}
public void setQuestionId(Integer questionId) {
this.questionId = questionId;
}
public Integer getChapterId() {
return chapterId;
}
public void setChapterId(Integer chapterId) {
this.chapterId = chapterId;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
}

@ -0,0 +1,158 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (CourseChapterVideo)
*
* @author java
* @since 2020-11-09 10:04:54
*/
@ApiModel(value = "章节视频表")
public class CourseChapterVideo implements Serializable {
private static final long serialVersionUID = -21553514386384145L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer videoId;
/**
* idID=NULL
*/
@ApiModelProperty(value = "章节id目前视频直接配置在课程下允许章节ID=NULL", required = true)
@NotNull
private Integer chapterId;
/**
*
*/
@ApiModelProperty(value = "视频名称", required = true)
@NotNull
private String videoName;
/**
*
*/
@ApiModelProperty(value = "视频地址", required = true)
@NotNull
private String videoUrl;
@ApiModelProperty(value = "${column.comment}", required = true)
private String videoOriUrl;
/**
* ID
*/
@ApiModelProperty(value = "视频所属课程ID", required = true)
@NotNull
private Integer courseId;
/**
*
*/
@ApiModelProperty(value = "是否精品课程,精品课程允许试看")
private Integer isFree;
/**
*
*/
@ApiModelProperty(value = "试看时间,分钟")
private Integer freeTime;
public CourseChapterVideo(Integer videoId, @NotNull Integer chapterId,
@NotNull String videoName, @NotNull String videoUrl, String videoOriUrl,
@NotNull Integer courseId, Integer isFree, Integer freeTime) {
this.videoId = videoId;
this.chapterId = chapterId;
this.videoName = videoName;
this.videoUrl = videoUrl;
this.videoOriUrl = videoOriUrl;
this.courseId = courseId;
this.isFree = isFree;
this.freeTime = freeTime;
}
public CourseChapterVideo() {
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public Integer getChapterId() {
return chapterId;
}
public void setChapterId(Integer chapterId) {
this.chapterId = chapterId;
}
public String getVideoName() {
return videoName;
}
public void setVideoName(String videoName) {
this.videoName = videoName;
}
public String getVideoUrl() {
return videoUrl;
}
public void setVideoUrl(String videoUrl) {
this.videoUrl = videoUrl;
}
public String getVideoOriUrl() {
return videoOriUrl;
}
public void setVideoOriUrl(String videoOriUrl) {
this.videoOriUrl = videoOriUrl;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
public Integer getIsFree() {
return isFree;
}
public void setIsFree(Integer isFree) {
this.isFree = isFree;
}
public Integer getFreeTime() {
return freeTime;
}
public void setFreeTime(Integer freeTime) {
this.freeTime = freeTime;
}
}

@ -0,0 +1,65 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (CourseType)
*
* @author java
* @since 2020-12-17 14:12:49
*/
@ApiModel(value = "课程分类表")
public class CourseType implements Serializable {
private static final long serialVersionUID = -74761225011108876L;
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键")
private Integer courseTypeId;
/**
*
*/
@ApiModelProperty(value = "课程分类名称", required = true)
@NotNull
private String courseName;
public CourseType(Integer courseTypeId, String courseName) {
this.courseTypeId = courseTypeId;
this.courseName = courseName;
}
public CourseType() {
}
public Integer getCourseTypeId() {
return courseTypeId;
}
public void setCourseTypeId(Integer courseTypeId) {
this.courseTypeId = courseTypeId;
}
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
}

@ -0,0 +1,92 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
/**
* (CourseTypeRelation)
*
* @author java
* @since 2021-02-02 09:25:06
*/
@ApiModel(value = "课程类别关系表")
public class CourseTypeRelation implements Serializable {
private static final long serialVersionUID = -48750814361274136L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer courseTypeReId;
/**
* id
*/
@ApiModelProperty(value = "课程id", required = true)
private Integer courseId;
/**
* id
*/
@ApiModelProperty(value = "类别id", required = true)
private Integer courseTypeId;
/**
*
*/
@ApiModelProperty(value = "创建时间")
private Long createTime;
public CourseTypeRelation(Integer courseTypeReId, Integer courseId, Integer courseTypeId, Long createTime) {
this.courseTypeReId = courseTypeReId;
this.courseId = courseId;
this.courseTypeId = courseTypeId;
this.createTime = createTime;
}
public CourseTypeRelation() {
}
public Integer getCourseTypeReId() {
return courseTypeReId;
}
public void setCourseTypeReId(Integer courseTypeReId) {
this.courseTypeReId = courseTypeReId;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
public Integer getCourseTypeId() {
return courseTypeId;
}
public void setCourseTypeId(Integer courseTypeId) {
this.courseTypeId = courseTypeId;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

@ -0,0 +1,70 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
*
* (News)
*
* @author java
* @since 2020-11-20 11:48:34
*/
@Data
@ApiModel(value = "资讯表")
public class News implements Serializable {
private static final long serialVersionUID = -39295514485939079L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "新闻id")
private Integer newsId;
/**
*
*/
@ApiModelProperty(value = "标题", required = true)
@NotNull
private String newsTitle;
/**
*
*/
@ApiModelProperty(value = "标题配图", required = true)
@NotNull
private String newsLogo;
/**
*
*/
@ApiModelProperty(value = "新闻内容", required = true)
@NotNull
private String newsContent;
/**
*
*/
@ApiModelProperty(value = "新闻时间")
private Long createTime;
/**
*
*/
@ApiModelProperty(value = "新闻类别")
private Integer tagId;
}

@ -0,0 +1,66 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (NewsTag)
*
* @author java
* @since 2020-11-20 13:13:47
*/
@ApiModel(value = "资讯标签表")
public class NewsTag implements Serializable {
private static final long serialVersionUID = -31343210313614099L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer tagId;
/**
*
*/
@ApiModelProperty(value = "类别名称", required = true)
@NotNull
private String tagName;
public NewsTag(Integer tagId, @NotNull String tagName) {
this.tagId = tagId;
this.tagName = tagName;
}
public NewsTag() {
}
public Integer getTagId() {
return tagId;
}
public void setTagId(Integer tagId) {
this.tagId = tagId;
}
public String getTagName() {
return tagName;
}
public void setTagName(String tagName) {
this.tagName = tagName;
}
}

@ -0,0 +1,96 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (OrderUserLog)
*
* @author java
* @since 2020-12-03 09:25:07
*/
@ApiModel(value = "订单详情表")
public class OrderUserLog implements Serializable {
private static final long serialVersionUID = 666133974894655590L;
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键")
private Integer orderLogId;
/**
* id
*/
@ApiModelProperty(value = "订单id", required = true)
@NotNull
private Integer orderId;
/**
* id
*/
@ApiModelProperty(value = "用户id", required = true)
@NotNull
private Integer reUserId;
/**
*
*/
@ApiModelProperty(value = "创建时间")
private Long createTime;
public OrderUserLog(Integer orderLogId, @NotNull Integer orderId,
@NotNull Integer reUserId, Long createTime) {
this.orderLogId = orderLogId;
this.orderId = orderId;
this.reUserId = reUserId;
this.createTime = createTime;
}
public OrderUserLog() {
}
public Integer getOrderLogId() {
return orderLogId;
}
public void setOrderLogId(Integer orderLogId) {
this.orderLogId = orderLogId;
}
public Integer getOrderId() {
return orderId;
}
public void setOrderId(Integer orderId) {
this.orderId = orderId;
}
public Integer getReUserId() {
return reUserId;
}
public void setReUserId(Integer reUserId) {
this.reUserId = reUserId;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

@ -0,0 +1,259 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import tk.mybatis.mapper.annotation.Order;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (Orders)
*
* @author java
* @since 2020-11-26 16:46:40
*/
@ApiModel(value = "订单表")
public class Orders implements Serializable {
private static final long serialVersionUID = 204802189701833123L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
@Order("DESC")
private Integer ordersId;
/**
*
*/
@ApiModelProperty(value = "订单号")
@NotBlank
private String orderNo;
/**
* id
*/
@ApiModelProperty(value = "用户id", required = true)
@NotNull
private Integer userId;
/**
* id
*/
@ApiModelProperty(value = "班级id", required = true)
@NotNull
private Integer classId;
/**
*
*/
@ApiModelProperty(value = "订单状态 0 未支付 1 已支付 2 已退款")
private Integer orderStatus;
/**
*
*/
@ApiModelProperty(value = "商品介绍", required = true)
@NotNull
private String body;
/**
*
*/
@ApiModelProperty(value = "订单名称", required = true)
@NotNull
private String subject;
/**
*
*/
@ApiModelProperty(value = "订单总金额", required = true)
@NotNull
private Double totalAmount;
/**
*
*/
@ApiModelProperty(value = "创建时间")
private Long createTime;
/**
*
*/
@ApiModelProperty(value = "支付宝交易号")
private String tradeNo;
/**
*
*/
@ApiModelProperty(value = "失效时间")
private Long overTime;
/**
*
*/
@ApiModelProperty(value = "订单备注")
private String remark;
/**
*
*/
@ApiModelProperty(value = "是否删除 1 未删除 0 已删除")
private Integer isDe;
/**
* id
*/
@ApiModelProperty(value = "发票id")
private Integer userInvoicesId;
public Orders(Integer ordersId, String orderNo,
@NotNull Integer userId, @NotNull Integer classId,
Integer orderStatus, @NotNull String body, @NotNull String subject,
@NotNull Double totalAmount,
Long createTime, String tradeNo, Long overTime, Integer isDe,
Integer userInvoicesId, String remark
) {
this.ordersId = ordersId;
this.orderNo = orderNo;
this.userId = userId;
this.classId = classId;
this.orderStatus = orderStatus;
this.body = body;
this.subject = subject;
this.totalAmount = totalAmount;
this.createTime = createTime;
this.tradeNo = tradeNo;
this.overTime = overTime;
this.isDe = isDe;
this.userInvoicesId = userInvoicesId;
this.remark = remark;
}
public Orders() {
}
public Integer getOrdersId() {
return ordersId;
}
public void setOrdersId(Integer ordersId) {
this.ordersId = ordersId;
}
public String getOrderNo() {
return orderNo;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getClassId() {
return classId;
}
public void setClassId(Integer classId) {
this.classId = classId;
}
public Integer getOrderStatus() {
return orderStatus;
}
public void setOrderStatus(Integer orderStatus) {
this.orderStatus = orderStatus;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public Double getTotalAmount() {
return totalAmount;
}
public void setTotalAmount(Double totalAmount) {
this.totalAmount = totalAmount;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public String getTradeNo() {
return tradeNo;
}
public void setTradeNo(String tradeNo) {
this.tradeNo = tradeNo;
}
public Long getOverTime() {
return overTime;
}
public void setOverTime(Long overTime) {
this.overTime = overTime;
}
public Integer getIsDe() {
return isDe;
}
public void setIsDe(Integer isDe) {
this.isDe = isDe;
}
public Integer getUserInvoicesId() {
return userInvoicesId;
}
public void setUserInvoicesId(Integer userInvoicesId) {
this.userInvoicesId = userInvoicesId;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}

@ -0,0 +1,193 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (Paper)
*
* @author java
* @since 2020-12-07 11:34:27
*/
@ApiModel(value = "试卷表")
public class Paper implements Serializable {
private static final long serialVersionUID = -88433359130256838L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer paperId;
/**
*
*/
@ApiModelProperty(value = "试卷名称", required = true)
@NotNull
private String paperName;
/**
* 12
*/
@ApiModelProperty(value = "试卷类别 12分别表示随机试卷固定试卷")
private Integer paperType;
/**
*
*/
@ApiModelProperty(value = "试卷介绍", required = true)
@NotNull
private String paperIntroduction;
/**
*
*/
@ApiModelProperty(value = "总分", required = true)
@NotNull
private Integer paperScore;
/**
* 线
*/
@ApiModelProperty(value = "及格线", required = true)
@NotNull
private Integer paperScorePass;
/**
*
*/
@ApiModelProperty(value = "时长", required = true)
private Integer paperTime;
/**
*
*/
@ApiModelProperty(value = "题目数量", required = true)
private Integer questionsNum;
/**
*
*/
@ApiModelProperty(value = "失效时间")
private Long endTime;
/**
* 12
*/
@ApiModelProperty(value = "1有效2无效")
private Integer status;
public Paper(Integer paperId, @NotNull String paperName,
Integer paperType, @NotNull String paperIntroduction,
@NotNull Integer paperScore, @NotNull Integer paperScorePass,
Integer paperTime,
Integer questionsNum, Long endTime, Integer status) {
this.paperId = paperId;
this.paperName = paperName;
this.paperType = paperType;
this.paperIntroduction = paperIntroduction;
this.paperScore = paperScore;
this.paperScorePass = paperScorePass;
this.paperTime = paperTime;
this.questionsNum = questionsNum;
this.endTime = endTime;
this.status = status;
}
public Paper() {
}
public Integer getPaperId() {
return paperId;
}
public void setPaperId(Integer paperId) {
this.paperId = paperId;
}
public String getPaperName() {
return paperName;
}
public void setPaperName(String paperName) {
this.paperName = paperName;
}
public Integer getPaperType() {
return paperType;
}
public void setPaperType(Integer paperType) {
this.paperType = paperType;
}
public String getPaperIntroduction() {
return paperIntroduction;
}
public void setPaperIntroduction(String paperIntroduction) {
this.paperIntroduction = paperIntroduction;
}
public Integer getPaperScore() {
return paperScore;
}
public void setPaperScore(Integer paperScore) {
this.paperScore = paperScore;
}
public Integer getPaperTime() {
return paperTime;
}
public void setPaperTime(Integer paperTime) {
this.paperTime = paperTime;
}
public Integer getQuestionsNum() {
return questionsNum;
}
public void setQuestionsNum(Integer questionsNum) {
this.questionsNum = questionsNum;
}
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getPaperScorePass() {
return paperScorePass;
}
public void setPaperScorePass(Integer paperScorePass) {
this.paperScorePass = paperScorePass;
}
}

@ -0,0 +1,145 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (PaperQuestion)
*
* @author java
* @since 2020-12-07 11:35:09
*/
@ApiModel(value = "抽题表")
public class PaperQuestion implements Serializable {
private static final long serialVersionUID = -31457085483443169L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer paperRuleId;
/**
*
*/
@ApiModelProperty(value = "试卷编号", required = true)
@NotNull
private Integer paperId;
/**
*
*/
@ApiModelProperty(value = "问题数量", required = true)
@NotNull
private Integer questionNum;
/**
*
*/
@ApiModelProperty(value = "难易程度", required = true)
private Integer questionLevel;
/**
*
*/
@ApiModelProperty(value = "题目类型", required = true)
@NotNull
private Integer questionType;
/**
*
*/
@ApiModelProperty(value = "分值", required = true)
private Integer score;
/**
*
*/
@ApiModelProperty(value = "基于哪个题库", required = true)
@NotNull
private Integer questionTagId;
public PaperQuestion(Integer paperRuleId, @NotNull Integer paperId,
@NotNull Integer questionNum, Integer questionLevel,
@NotNull Integer questionType, Integer score,
@NotNull Integer questionTagId) {
this.paperRuleId = paperRuleId;
this.paperId = paperId;
this.questionNum = questionNum;
this.questionLevel = questionLevel;
this.questionType = questionType;
this.score = score;
this.questionTagId = questionTagId;
}
public PaperQuestion() {
}
public Integer getPaperRuleId() {
return paperRuleId;
}
public void setPaperRuleId(Integer paperRuleId) {
this.paperRuleId = paperRuleId;
}
public Integer getPaperId() {
return paperId;
}
public void setPaperId(Integer paperId) {
this.paperId = paperId;
}
public Integer getQuestionNum() {
return questionNum;
}
public void setQuestionNum(Integer questionNum) {
this.questionNum = questionNum;
}
public Integer getQuestionLevel() {
return questionLevel;
}
public void setQuestionLevel(Integer questionLevel) {
this.questionLevel = questionLevel;
}
public Integer getQuestionType() {
return questionType;
}
public void setQuestionType(Integer questionType) {
this.questionType = questionType;
}
public Integer getScore() {
return score;
}
public void setScore(Integer score) {
this.score = score;
}
public Integer getQuestionTagId() {
return questionTagId;
}
public void setQuestionTagId(Integer questionTagId) {
this.questionTagId = questionTagId;
}
}

@ -0,0 +1,152 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
/**
* (Question)
*
* @author java
* @since 2020-12-07 11:35:53
*/
@ApiModel(value = "题目表")
public class Question implements Serializable {
private static final long serialVersionUID = 215664877400645272L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer questionId;
/**
*
*/
@ApiModelProperty(value = "习题题干", required = true)
private String questionDescription;
/**
* id
*/
@ApiModelProperty(value = "标签id", required = true)
private Integer tagId;
/**
*
*/
@ApiModelProperty(value = "习题类型", required = true)
private Integer questionType;
/**
*
*/
@ApiModelProperty(value = "习题分数", required = true)
private Integer questionScore;
/**
*
*/
@ApiModelProperty(value = "习题级别,难中易", required = true)
private Integer questionLevel;
/**
*
*/
@ApiModelProperty(value = "解析", required = true)
private String analysis;
@Transient
private List<QuestionAnswer> questionAnswerList;
public Question(Integer questionId, String questionDescription,
Integer tagId, Integer questionType,
Integer questionScore, Integer questionLevel, String analysis) {
this.questionId = questionId;
this.questionDescription = questionDescription;
this.tagId = tagId;
this.questionType = questionType;
this.questionScore = questionScore;
this.questionLevel = questionLevel;
this.analysis = analysis;
}
public Question() {
}
public Integer getQuestionId() {
return questionId;
}
public void setQuestionId(Integer questionId) {
this.questionId = questionId;
}
public String getQuestionDescription() {
return questionDescription;
}
public void setQuestionDescription(String questionDescription) {
this.questionDescription = questionDescription;
}
public Integer getTagId() {
return tagId;
}
public void setTagId(Integer tagId) {
this.tagId = tagId;
}
public Integer getQuestionType() {
return questionType;
}
public void setQuestionType(Integer questionType) {
this.questionType = questionType;
}
public Integer getQuestionScore() {
return questionScore;
}
public void setQuestionScore(Integer questionScore) {
this.questionScore = questionScore;
}
public Integer getQuestionLevel() {
return questionLevel;
}
public void setQuestionLevel(Integer questionLevel) {
this.questionLevel = questionLevel;
}
public String getAnalysis() {
return analysis;
}
public void setAnalysis(String analysis) {
this.analysis = analysis;
}
public List<QuestionAnswer> getQuestionAnswerList() {
return questionAnswerList;
}
public void setQuestionAnswerList(List<QuestionAnswer> questionAnswerList) {
this.questionAnswerList = questionAnswerList;
}
}

@ -0,0 +1,97 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (QuestionAnswer)
*
* @author java
* @since 2020-12-07 11:36:17
*/
@ApiModel(value = "题目答案表")
public class QuestionAnswer implements Serializable {
private static final long serialVersionUID = 408168416998479718L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer questionAnswerId;
/**
* id
*/
@ApiModelProperty(value = "习题id", required = true)
@NotNull
private Integer questionId;
/**
*
*/
@ApiModelProperty(value = "试题答案", required = true)
@NotNull
private String questionAnswer;
/**
*
*/
@ApiModelProperty(value = "是否正确", required = true)
@NotNull
private Byte isTrue;
public QuestionAnswer(Integer questionAnswerId, @NotNull Integer questionId,
@NotNull String questionAnswer, @NotNull Byte isTrue) {
this.questionAnswerId = questionAnswerId;
this.questionId = questionId;
this.questionAnswer = questionAnswer;
this.isTrue = isTrue;
}
public QuestionAnswer() {
}
public Integer getQuestionAnswerId() {
return questionAnswerId;
}
public void setQuestionAnswerId(Integer questionAnswerId) {
this.questionAnswerId = questionAnswerId;
}
public Integer getQuestionId() {
return questionId;
}
public void setQuestionId(Integer questionId) {
this.questionId = questionId;
}
public String getQuestionAnswer() {
return questionAnswer;
}
public void setQuestionAnswer(String questionAnswer) {
this.questionAnswer = questionAnswer;
}
public Byte getIsTrue() {
return isTrue;
}
public void setIsTrue(Byte isTrue) {
this.isTrue = isTrue;
}
}

@ -0,0 +1,64 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (QuestionTag)
*
* @author java
* @since 2020-12-07 11:36:38
*/
@ApiModel(value = "题目标签表")
public class QuestionTag implements Serializable {
private static final long serialVersionUID = 707743295313254406L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer questionTagId;
/**
*
*/
@ApiModelProperty(value = "标签名称", required = true)
@NotNull
private String tagName;
public QuestionTag(Integer questionTagId, @NotNull String tagName) {
this.questionTagId = questionTagId;
this.tagName = tagName;
}
public QuestionTag() {
}
public Integer getQuestionTagId() {
return questionTagId;
}
public void setQuestionTagId(Integer questionTagId) {
this.questionTagId = questionTagId;
}
public String getTagName() {
return tagName;
}
public void setTagName(String tagName) {
this.tagName = tagName;
}
}

@ -0,0 +1,64 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (QuestionType)
*
* @author java
* @since 2020-12-07 11:36:58
*/
@ApiModel(value = "试题类型表")
public class QuestionType implements Serializable {
private static final long serialVersionUID = 477430279562474374L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "题库id")
private Integer typeId;
/**
*
*/
@ApiModelProperty(value = "类型名称", required = true)
@NotNull
private String typeName;
public QuestionType(Integer typeId, @NotNull String typeName) {
this.typeId = typeId;
this.typeName = typeName;
}
public QuestionType() {
}
public Integer getTypeId() {
return typeId;
}
public void setTypeId(Integer typeId) {
this.typeId = typeId;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
}

@ -0,0 +1,92 @@
package com.hc.business.model;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
/**
* (Third)
*
* @author java
* @since 2020-06-17 17:29:30
*/
public class Third implements Serializable {
private static final long serialVersionUID = 449560525009961962L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer thirdId;
/**
* 访TOKEN
*/
private String thirdToken;
/**
*
*/
private String thirdName;
/**
*
*/
private Long createTime = System.currentTimeMillis();
/**
*
*/
private Long expireTime;
public Third(Integer thirdId, String thirdToken, String thirdName, Long createTime, Long expireTime) {
this.thirdId = thirdId;
this.thirdToken = thirdToken;
this.thirdName = thirdName;
this.createTime = createTime;
this.expireTime = expireTime;
}
public Third() {
}
public Integer getThirdId() {
return thirdId;
}
public void setThirdId(Integer thirdId) {
this.thirdId = thirdId;
}
public String getThirdToken() {
return thirdToken;
}
public void setThirdToken(String thirdToken) {
this.thirdToken = thirdToken;
}
public String getThirdName() {
return thirdName;
}
public void setThirdName(String thirdName) {
this.thirdName = thirdName;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public Long getExpireTime() {
return expireTime;
}
public void setExpireTime(Long expireTime) {
this.expireTime = expireTime;
}
}

@ -0,0 +1,93 @@
package com.hc.business.model;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
/**
* (ThirdCourse)
*
* @author java
* @since 2020-06-17 17:29:30
*/
public class ThirdCourse implements Serializable {
private static final long serialVersionUID = 819515458055433746L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* ID
*/
private Integer thirdId;
/**
* ID
*/
private Integer courseId;
/**
*
*/
private Integer status;
/**
*
*/
private Long createTime = System.currentTimeMillis();
public ThirdCourse(Integer id, Integer thirdId, Integer courseId, Integer status, Long createTime) {
this.id = id;
this.thirdId = thirdId;
this.courseId = courseId;
this.status = status;
this.createTime = createTime;
}
public ThirdCourse() {
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getThirdId() {
return thirdId;
}
public void setThirdId(Integer thirdId) {
this.thirdId = thirdId;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

@ -0,0 +1,377 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (User)
*
* @author java
* @since 2020-11-09 10:04:13
*/
@Builder
@ApiModel(value = "用户表")
public class User implements Serializable {
private static final long serialVersionUID = 775234090220211721L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer userId;
/**
*
*/
@ApiModelProperty(value = "身份证")
private String cardId;
/**
*
*/
@ApiModelProperty(value = "用户密码")
private String userPassword;
/**
* 1234,线
*/
@ApiModelProperty(value = "用户类别1234分别表示自注册用户单位报名用户免费用户,线下用户", required = true)
private Integer userType;
/**
*
*/
@ApiModelProperty(value = "用户所属地区。只能看到该地区得课程")
private Integer areaId;
/**
*
*/
@ApiModelProperty(value = "用户昵称")
private String userNick;
/**
*
*/
@ApiModelProperty(value = "用户姓名", required = true)
@NotNull
private String userName;
/**
*
*/
@ApiModelProperty(value = "手机号码", required = true)
@NotBlank
private String userMobile;
/**
*
*/
@ApiModelProperty(value = "邮箱",required = true)
// @Email
@NotNull
private String userEmail;
/**
*
*/
@ApiModelProperty(value = "性别",required = true)
@NotNull
private String userGender;
/**
*
*/
@ApiModelProperty(value = "创建时间")
private Long createTime;
/**
*
*/
@ApiModelProperty(value = "生日")
private String userBirthday;
/**
*
*/
@ApiModelProperty(value = "是否激活。只要登陆一次,就自动激活")
private Byte active;
/**
*
*/
@ApiModelProperty(value = "用户头像")
private String userLogo;
/**
*
*/
@ApiModelProperty(value = "用户单位",required = true)
@NotNull
private String userCompany;
/**
* 1
*/
@ApiModelProperty(value = "保留字段1")
private String userReserved1;
/**
* 2
*/
@ApiModelProperty(value = "保留字段2")
private String userReserved2;
/**
* 3
*/
@ApiModelProperty(value = "保留字段3")
private String userReserved3;
/**
* 4
*/
@ApiModelProperty(value = "保留字段4")
private String userReserved4;
/**
* 5
*/
@ApiModelProperty(value = "保留字段5")
private String userReserved5;
public User(Integer userId, String cardId, String userPassword,
Integer userType, Integer areaId, String userNick,
@NotNull String userName, @NotNull String userMobile,
@Email String userEmail, @NotNull String userGender,
Long createTime, String userBirthday, Byte active,
String userLogo, @NotNull String userCompany, String userReserved1,
String userReserved2, String userReserved3,
String userReserved4, String userReserved5) {
this.userId = userId;
this.cardId = cardId;
this.userPassword = userPassword;
this.userType = userType;
this.areaId = areaId;
this.userNick = userNick;
this.userName = userName;
this.userMobile = userMobile;
this.userEmail = userEmail;
this.userGender = userGender;
this.createTime = createTime;
this.userBirthday = userBirthday;
this.active = active;
this.userLogo = userLogo;
this.userCompany = userCompany;
this.userReserved1 = userReserved1;
this.userReserved2 = userReserved2;
this.userReserved3 = userReserved3;
this.userReserved4 = userReserved4;
this.userReserved5 = userReserved5;
}
public User() {
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getCardId() {
return cardId;
}
public void setCardId(String cardId) {
this.cardId = cardId;
}
public String getUserPassword() {
return userPassword;
}
public void setUserPassword(String userPassword) {
this.userPassword = userPassword;
}
public Integer getUserType() {
return userType;
}
public void setUserType(Integer userType) {
this.userType = userType;
}
public Integer getAreaId() {
return areaId;
}
public void setAreaId(Integer areaId) {
this.areaId = areaId;
}
public String getUserNick() {
return userNick;
}
public void setUserNick(String userNick) {
this.userNick = userNick;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserMobile() {
return userMobile;
}
public void setUserMobile(String userMobile) {
this.userMobile = userMobile;
}
public String getUserEmail() {
return userEmail;
}
public void setUserEmail(String userEmail) {
this.userEmail = userEmail;
}
public String getUserGender() {
return userGender;
}
public void setUserGender(String userGender) {
this.userGender = userGender;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public String getUserBirthday() {
return userBirthday;
}
public void setUserBirthday(String userBirthday) {
this.userBirthday = userBirthday;
}
public Byte getActive() {
return active;
}
public void setActive(Byte active) {
this.active = active;
}
public String getUserLogo() {
return userLogo;
}
public void setUserLogo(String userLogo) {
this.userLogo = userLogo;
}
public String getUserCompany() {
return userCompany;
}
public void setUserCompany(String userCompany) {
this.userCompany = userCompany;
}
public String getUserReserved1() {
return userReserved1;
}
public void setUserReserved1(String userReserved1) {
this.userReserved1 = userReserved1;
}
public String getUserReserved2() {
return userReserved2;
}
public void setUserReserved2(String userReserved2) {
this.userReserved2 = userReserved2;
}
public String getUserReserved3() {
return userReserved3;
}
public void setUserReserved3(String userReserved3) {
this.userReserved3 = userReserved3;
}
public String getUserReserved4() {
return userReserved4;
}
public void setUserReserved4(String userReserved4) {
this.userReserved4 = userReserved4;
}
public String getUserReserved5() {
return userReserved5;
}
public void setUserReserved5(String userReserved5) {
this.userReserved5 = userReserved5;
}
@Override
public String toString() {
return "User{" +
"userId=" + userId +
", cardId='" + cardId + '\'' +
", userPassword='" + userPassword + '\'' +
", userType=" + userType +
", areaId=" + areaId +
", userNick='" + userNick + '\'' +
", userName='" + userName + '\'' +
", userMobile='" + userMobile + '\'' +
", userEmail='" + userEmail + '\'' +
", userGender='" + userGender + '\'' +
", createTime=" + createTime +
", userBirthday='" + userBirthday + '\'' +
", active=" + active +
", userLogo='" + userLogo + '\'' +
", userCompany='" + userCompany + '\'' +
", userReserved1='" + userReserved1 + '\'' +
", userReserved2='" + userReserved2 + '\'' +
", userReserved3='" + userReserved3 + '\'' +
", userReserved4='" + userReserved4 + '\'' +
", userReserved5='" + userReserved5 + '\'' +
'}';
}
}

@ -0,0 +1,114 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (UserAdmin)
*
* @author java
* @since 2020-11-16 13:45:03
*/
@ApiModel(value = "管理员表")
public class UserAdmin implements Serializable {
private static final long serialVersionUID = -33023267070799101L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer userAdminId;
/**
*
*/
@ApiModelProperty(value = "管理员名字", required = true)
@NotNull
private String adminName;
/**
*
*/
@ApiModelProperty(value = "管理员账号", required = true)
@NotNull
private String adminAccount;
/**
*
*/
@ApiModelProperty(value = "管理员密码", required = true)
@NotNull
private String adminPass;
/**
*
*/
@ApiModelProperty(value = "管理员级别", required = true)
@NotNull
private Integer permissionLevel;
public UserAdmin(Integer userAdminId, @NotNull String adminName,
@NotNull String adminAccount,
@NotNull String adminPass, @NotNull Integer permissionLevel) {
this.userAdminId = userAdminId;
this.adminName = adminName;
this.adminAccount = adminAccount;
this.adminPass = adminPass;
this.permissionLevel = permissionLevel;
}
public UserAdmin() {
}
public Integer getUserAdminId() {
return userAdminId;
}
public void setUserAdminId(Integer userAdminId) {
this.userAdminId = userAdminId;
}
public String getAdminName() {
return adminName;
}
public void setAdminName(String adminName) {
this.adminName = adminName;
}
public String getAdminAccount() {
return adminAccount;
}
public void setAdminAccount(String adminAccount) {
this.adminAccount = adminAccount;
}
public String getAdminPass() {
return adminPass;
}
public void setAdminPass(String adminPass) {
this.adminPass = adminPass;
}
public Integer getPermissionLevel() {
return permissionLevel;
}
public void setPermissionLevel(Integer permissionLevel) {
this.permissionLevel = permissionLevel;
}
}

@ -0,0 +1,172 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
*
* (UserAdvise)
*
* @author java
* @since 2020-11-16 14:20:01
*/
@ApiModel(value = "用户信息表")
public class UserAdvise implements Serializable {
private static final long serialVersionUID = -75842427826309033L;
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键")
private Integer adviceId;
/**
* ID
*/
@ApiModelProperty(value = "用户ID", required = true)
@NotNull
private Integer userId;
/**
*
*/
@ApiModelProperty(value = "邮箱", required = true)
@NotNull
@Email
private String email;
/**
*
*/
@ApiModelProperty(value = "标题", required = true)
@NotNull
private String title;
/**
*
*/
@ApiModelProperty(value = "通知信息", required = true)
@NotNull
private String advise;
/**
*
*/
@ApiModelProperty(value = "时间")
private Long createTime;
@ApiModelProperty(value = "通知图片")
private String adviceLogo;
@ApiModelProperty(value = "通知类型")
private Integer adviceType;
@ApiModelProperty(value = "是否回复")
private Integer isReply;
public UserAdvise(Integer adviceId, @NotNull Integer userId,
@NotNull @Email String email,
@NotNull String title, @NotNull String advise,
Long createTime, String adviceLogo,
Integer adviceType, Integer isReply) {
this.adviceId = adviceId;
this.userId = userId;
this.email = email;
this.title = title;
this.advise = advise;
this.createTime = createTime;
this.adviceLogo = adviceLogo;
this.adviceType = adviceType;
this.isReply = isReply;
}
public UserAdvise() {
}
public Integer getAdviceId() {
return adviceId;
}
public void setAdviceId(Integer adviceId) {
this.adviceId = adviceId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getAdvise() {
return advise;
}
public void setAdvise(String advise) {
this.advise = advise;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public String getAdviceLogo() {
return adviceLogo;
}
public void setAdviceLogo(String adviceLogo) {
this.adviceLogo = adviceLogo;
}
public Integer getAdviceType() {
return adviceType;
}
public void setAdviceType(Integer adviceType) {
this.adviceType = adviceType;
}
public Integer getIsReply() {
return isReply;
}
public void setIsReply(Integer isReply) {
this.isReply = isReply;
}
}

@ -0,0 +1,114 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (UserCourse)
*
* @author java
* @since 2020-11-09 10:05:18
*/
@ApiModel(value = "用户课程表")
public class UserCourse implements Serializable {
private static final long serialVersionUID = 367696525637009095L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer userCourseId;
/**
* id
*/
@ApiModelProperty(value = "用户id", required = true)
@NotNull
private Integer userId;
/**
* SKUid
*/
@ApiModelProperty(value = "课程SKUid", required = true)
@NotNull
private Integer courseId;
/**
*
*/
@ApiModelProperty(value = "总体进度")
@NotNull
private Double coursePercent;
/**
* ID
*/
@ApiModelProperty(value = "班级ID", required = true)
@NotNull
private Integer classId;
public UserCourse(Integer userCourseId, @NotNull Integer userId,
@NotNull Integer courseId, Double coursePercent,
@NotNull Integer classId) {
this.userCourseId = userCourseId;
this.userId = userId;
this.courseId = courseId;
this.coursePercent = coursePercent;
this.classId = classId;
}
public UserCourse() {
}
public Integer getUserCourseId() {
return userCourseId;
}
public void setUserCourseId(Integer userCourseId) {
this.userCourseId = userCourseId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
public Double getCoursePercent() {
return coursePercent;
}
public void setCoursePercent(Double coursePercent) {
this.coursePercent = coursePercent;
}
public Integer getClassId() {
return classId;
}
public void setClassId(Integer classId) {
this.classId = classId;
}
}

@ -0,0 +1,302 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
/**
* (UserInvoices)
*
* @author java
* @since 2020-12-02 10:50:29
*/
@ApiModel(value = "订单发票表")
public class UserInvoices implements Serializable {
private static final long serialVersionUID = -61454177699116234L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer userInvoicesId;
/**
*
*/
@ApiModelProperty(value = "抬头", required = true)
private String invoicesHead;
/**
* 12
*/
@ApiModelProperty(value = "发票类型12普票专票", required = true)
private Integer invoicesType;
/**
*
*/
@ApiModelProperty(value = "税号", required = true)
private String invoicesCode;
/**
*
*/
@ApiModelProperty(value = "开户行", required = true)
private String invoicesBank;
/**
*
*/
@ApiModelProperty(value = "开户名", required = true)
private String invoicesUser;
/**
*
*/
@ApiModelProperty(value = "开户账号", required = true)
private String invoicesNo;
/**
*
*/
@ApiModelProperty(value = "发票金额", required = true)
@NotNull
private Double invoicesPrice;
/**
*
*/
@ApiModelProperty(value = "申请日期")
private Long createTime;
/**
*
*/
@ApiModelProperty(value = "状态")
private Integer status;
/**
*
*/
@ApiModelProperty(value = "处理日期")
private Long time;
/**
* ID
*/
@ApiModelProperty(value = "用户ID", required = true)
@NotNull
private Integer userId;
/**
* id
*/
@ApiModelProperty(value = "班次ID", required = true)
@NotNull
private Integer classId;
/**
*
*/
@ApiModelProperty(value = "发票备注")
private String remarks;
/**
*
*/
@ApiModelProperty(value = "后台发票标记")
private String remarksSign;
/**
*
*/
@ApiModelProperty(value = "发票代码")
private String taxCode;
@NotEmpty
@ApiModelProperty(value = "订单id")
@Transient
private List<Integer> ordersIdList;
public UserInvoices(Integer userInvoicesId, String invoicesHead,
Integer invoicesType, String invoicesCode, String invoicesBank,
String invoicesUser, String invoicesNo,
@NotNull Double invoicesPrice, Long createTime,
Integer status, Long time,
@NotNull Integer userId, Integer classId, String remarks
, String remarksSign, String taxCode, List<Integer> ordersIdList) {
this.userInvoicesId = userInvoicesId;
this.invoicesHead = invoicesHead;
this.invoicesType = invoicesType;
this.invoicesCode = invoicesCode;
this.invoicesBank = invoicesBank;
this.invoicesUser = invoicesUser;
this.invoicesNo = invoicesNo;
this.invoicesPrice = invoicesPrice;
this.createTime = createTime;
this.status = status;
this.time = time;
this.userId = userId;
this.remarks = remarks;
this.remarksSign = remarksSign;
this.taxCode = taxCode;
this.classId = classId;
this.ordersIdList = ordersIdList;
}
public UserInvoices() {
}
public Integer getUserInvoicesId() {
return userInvoicesId;
}
public void setUserInvoicesId(Integer userInvoicesId) {
this.userInvoicesId = userInvoicesId;
}
public String getInvoicesHead() {
return invoicesHead;
}
public void setInvoicesHead(String invoicesHead) {
this.invoicesHead = invoicesHead;
}
public Integer getInvoicesType() {
return invoicesType;
}
public void setInvoicesType(Integer invoicesType) {
this.invoicesType = invoicesType;
}
public String getInvoicesCode() {
return invoicesCode;
}
public void setInvoicesCode(String invoicesCode) {
this.invoicesCode = invoicesCode;
}
public String getInvoicesBank() {
return invoicesBank;
}
public void setInvoicesBank(String invoicesBank) {
this.invoicesBank = invoicesBank;
}
public String getInvoicesUser() {
return invoicesUser;
}
public void setInvoicesUser(String invoicesUser) {
this.invoicesUser = invoicesUser;
}
public String getInvoicesNo() {
return invoicesNo;
}
public void setInvoicesNo(String invoicesNo) {
this.invoicesNo = invoicesNo;
}
public Double getInvoicesPrice() {
return invoicesPrice;
}
public void setInvoicesPrice(Double invoicesPrice) {
this.invoicesPrice = invoicesPrice;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Long getTime() {
return time;
}
public void setTime(Long time) {
this.time = time;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public List<Integer> getOrdersIdList() {
return ordersIdList;
}
public void setOrdersIdList(List<Integer> ordersIdList) {
this.ordersIdList = ordersIdList;
}
public String getRemarksSign() {
return remarksSign;
}
public void setRemarksSign(String remarksSign) {
this.remarksSign = remarksSign;
}
public String getTaxCode() {
return taxCode;
}
public void setTaxCode(String taxCode) {
this.taxCode = taxCode;
}
public Integer getClassId() {
return classId;
}
public void setClassId(Integer classId) {
this.classId = classId;
}
}

@ -0,0 +1,155 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 退(UserRefundHistory)
*
* @author java
* @since 2020-12-10 11:31:35
*/
@ApiModel(value = "用户退款表")
public class UserRefundHistory implements Serializable {
private static final long serialVersionUID = -82710997323240027L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer id;
/**
* ID
*/
@ApiModelProperty(value = "用户ID", required = true)
@NotNull
private Integer userId;
/**
* 12
*/
@ApiModelProperty(value = "用户类型12普通用户单位用户", required = true)
@NotNull
private Integer userType;
/**
* 退
*/
@ApiModelProperty(value = "退款订单号", required = true)
@NotNull
private String orderNo;
/**
* 退
*/
@ApiModelProperty(value = "退款时间")
private Long createTime;
/**
* 退
*/
@ApiModelProperty(value = "退款处理时间,保留")
private Long doneTime;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "退费金额")
@NotNull
private BigDecimal refundPrice;
public UserRefundHistory(Integer id, @NotNull Integer userId,
@NotNull Integer userType, String orderNo,
Long createTime, Long doneTime, String remark,
BigDecimal refundPrice) {
this.id = id;
this.userId = userId;
this.userType = userType;
this.orderNo = orderNo;
this.createTime = createTime;
this.doneTime = doneTime;
this.remark = remark;
this.refundPrice = refundPrice;
}
public UserRefundHistory() {
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getUserType() {
return userType;
}
public void setUserType(Integer userType) {
this.userType = userType;
}
public String getOrderNo() {
return orderNo;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public Long getDoneTime() {
return doneTime;
}
public void setDoneTime(Long doneTime) {
this.doneTime = doneTime;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public BigDecimal getRefundPrice() {
return refundPrice;
}
public void setRefundPrice(BigDecimal refundPrice) {
this.refundPrice = refundPrice;
}
}

@ -0,0 +1,115 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
*
* (UserStatus)
*
* @author java
* @since 2020-12-06 11:37:06
*/
@ApiModel(value = "用户状态表")
public class UserStatus implements Serializable {
private static final long serialVersionUID = 425010649051627355L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer statusId;
/**
* id
*/
@ApiModelProperty(value = "用户id")
@NotNull
private Integer userId;
/**
* ID
*/
@ApiModelProperty(value = "地区年度继续学习配置ID")
@NotNull
private Integer classId;
/**
*
*/
@ApiModelProperty(value = "报名得订单号")
@NotNull
private Integer orderId;
/**
*
*/
@ApiModelProperty(value = "状态", required = true)
@NotNull
private Integer status;
public UserStatus(Integer statusId, @NotNull Integer userId,
@NotNull Integer classId,
@NotNull Integer orderId, @NotNull Integer status) {
this.statusId = statusId;
this.userId = userId;
this.classId = classId;
this.orderId = orderId;
this.status = status;
}
public UserStatus() {
}
public Integer getStatusId() {
return statusId;
}
public void setStatusId(Integer statusId) {
this.statusId = statusId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getClassId() {
return classId;
}
public void setClassId(Integer classId) {
this.classId = classId;
}
public Integer getOrderId() {
return orderId;
}
public void setOrderId(Integer orderId) {
this.orderId = orderId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
}

@ -0,0 +1,130 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (UserTeacher)
*
* @author java
* @since 2020-11-20 11:08:17
*/
@ApiModel(value = "老师表")
public class UserTeacher implements Serializable {
private static final long serialVersionUID = 354661860163916483L;
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键")
private Integer teacherId;
/**
*
*/
@ApiModelProperty(value = "老师名称", required = true)
@NotNull
private String teacherName;
/**
*
*/
@ApiModelProperty(value = "老师简介", required = true)
@NotNull
private String teacherIntroduce;
/**
*
*/
@ApiModelProperty(value = "老师头像", required = true)
@NotNull
private String teacherLogo;
/**
*
*/
@ApiModelProperty(value = "老师图片", required = true)
@NotNull
private String teacherUrl;
/**
*
*/
@ApiModelProperty(value = "时间")
private Long createTime;
public UserTeacher(Integer teacherId, @NotNull String teacherName,
@NotNull String teacherIntroduce,
@NotNull String teacherLogo,
@NotNull String teacherUrl, Long createTime) {
this.teacherId = teacherId;
this.teacherName = teacherName;
this.teacherIntroduce = teacherIntroduce;
this.teacherLogo = teacherLogo;
this.teacherUrl = teacherUrl;
this.createTime = createTime;
}
public UserTeacher() {
}
public Integer getTeacherId() {
return teacherId;
}
public void setTeacherId(Integer teacherId) {
this.teacherId = teacherId;
}
public String getTeacherName() {
return teacherName;
}
public void setTeacherName(String teacherName) {
this.teacherName = teacherName;
}
public String getTeacherIntroduce() {
return teacherIntroduce;
}
public void setTeacherIntroduce(String teacherIntroduce) {
this.teacherIntroduce = teacherIntroduce;
}
public String getTeacherLogo() {
return teacherLogo;
}
public void setTeacherLogo(String teacherLogo) {
this.teacherLogo = teacherLogo;
}
public String getTeacherUrl() {
return teacherUrl;
}
public void setTeacherUrl(String teacherUrl) {
this.teacherUrl = teacherUrl;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

@ -0,0 +1,165 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
/**
* (UserTestHistory)
*
* @author java
* @since 2020-12-07 11:28:17
*/
@ApiModel(value = "考试记录表")
public class UserTestHistory implements Serializable {
private static final long serialVersionUID = -86805600747462758L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer testId;
/**
* Id
*/
@ApiModelProperty(value = "用户Id", required = true)
private Integer userId;
/**
* ID
*/
@ApiModelProperty(value = "试卷ID", required = true)
private Integer paperId;
/**
* id
*/
@ApiModelProperty(value = "班次ID", required = true)
private Integer classId;
/**
*
*/
@ApiModelProperty(value = "成绩", required = true)
private Integer score;
/**
* ID
*/
@ApiModelProperty(value = "问题ID数组", required = true)
private String answer;
@ApiModelProperty(value = "创建时间")
private Long createTime;
@ApiModelProperty(value = "总分", required = true)
private Integer totalScore;
/**
*
*/
@ApiModelProperty(value = "考试时间", required = true)
private String testTime;
public UserTestHistory(Integer testId, Integer userId, Integer paperId,
Integer classId, Integer score, String answer,
Long createTime, Integer totalScore, String testTime) {
this.testId = testId;
this.userId = userId;
this.paperId = paperId;
this.classId = classId;
this.score = score;
this.answer = answer;
this.createTime = createTime;
this.totalScore = totalScore;
this.testTime = testTime;
}
public UserTestHistory() {
}
public Integer getTestId() {
return testId;
}
public void setTestId(Integer testId) {
this.testId = testId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getPaperId() {
return paperId;
}
public void setPaperId(Integer paperId) {
this.paperId = paperId;
}
public Integer getClassId() {
return classId;
}
public void setClassId(Integer classId) {
this.classId = classId;
}
public Integer getScore() {
return score;
}
public void setScore(Integer score) {
this.score = score;
}
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
this.answer = answer;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public Integer getTotalScore() {
return totalScore;
}
public void setTotalScore(Integer totalScore) {
this.totalScore = totalScore;
}
public String getTestTime() {
return testTime;
}
public void setTestTime(String testTime) {
this.testTime = testTime;
}
}

@ -0,0 +1,122 @@
package com.hc.business.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* (UserVideoPosition)
*
* @author java
* @since 2020-05-29 15:50:50
*/
@ApiModel(value = "视频记录表")
public class UserVideoPosition implements Serializable {
private static final long serialVersionUID = 133164084604002223L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键ID")
private Integer userVideoPositionId;
/**
* id
*/
@ApiModelProperty(value = "视频id", required = true)
@NotNull
private Integer videoId;
/**
* id
*/
@ApiModelProperty(value = "用户id", required = true)
@NotNull
private Integer userId;
/**
*
*/
private String videoPosition;
/**
*
*/
private Integer watchEnd;
/**
*
*/
private String videoTime;
public UserVideoPosition(Integer userVideoPositionId, @NotNull Integer videoId,
@NotNull Integer userId,
String videoPosition, Integer watchEnd, String videoTime) {
this.userVideoPositionId = userVideoPositionId;
this.videoId = videoId;
this.userId = userId;
this.videoPosition = videoPosition;
this.watchEnd = watchEnd;
this.videoTime = videoTime;
}
public UserVideoPosition() {
}
public Integer getUserVideoPositionId() {
return userVideoPositionId;
}
public void setUserVideoPositionId(Integer userVideoPositionId) {
this.userVideoPositionId = userVideoPositionId;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getVideoPosition() {
return videoPosition;
}
public void setVideoPosition(String videoPosition) {
this.videoPosition = videoPosition;
}
public Integer getWatchEnd() {
return watchEnd;
}
public void setWatchEnd(Integer watchEnd) {
this.watchEnd = watchEnd;
}
public String getVideoTime() {
return videoTime;
}
public void setVideoTime(String videoTime) {
this.videoTime = videoTime;
}
}

@ -0,0 +1,66 @@
package com.hc.business.model.jwt;
import com.hc.business.model.User;
import com.hc.business.model.UserAdmin;
import com.hc.business.model.login.AccessEntity;
import com.hc.business.model.login.AuthEntity;
import com.hc.business.model.login.TokenEntity;
import com.hc.core.utils.exception.ResponseException;
import com.hc.core.utils.redis.RedisUtil;
import com.hc.core.utils.tool.IdGenerator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.util.SerializationUtils;
import java.util.Objects;
@Slf4j
@Component
public class GenerateAuthToken {
private final RedisUtil redisUtil;
public GenerateAuthToken(RedisUtil redisUtil) {
this.redisUtil = redisUtil;
}
public AccessEntity generateToken(AuthEntity auth, User user, UserAdmin userAdmin) {
AccessEntity accessEntity = new AccessEntity();
accessEntity.setAuth(auth);
TokenEntity tokenEntity = new TokenEntity();
// 默认超时 8 小时
tokenEntity.setExpires(60 * 60 * 8);
String token = JWTUtil.sign(auth.getUserName(), IdGenerator.passwordToHash(auth.getPassword()));
tokenEntity.setId(token);
if (userAdmin != null) {
//设置权限级别
tokenEntity.setPermissionLevel(userAdmin.getPermissionLevel());
}
accessEntity.setToken(tokenEntity);
String accessEntityStr = null;
try {
accessEntityStr = new String(Objects.requireNonNull(SerializationUtils.serialize(accessEntity)));
} catch (Exception e) {
throw new ResponseException(-1,"登录序列化失败");
}
// 写入到 redis
redisUtil.set(accessEntity.getToken().getId(),
accessEntityStr,
accessEntity.getToken().getExpires());
if (user != null) {
accessEntity.setUser(user);
}
if (userAdmin != null){
accessEntity.setUserAdmin(userAdmin);
}
log.info("user: {}", auth.getUserName()+" 成功登录系统");
return accessEntity;
}
}

@ -0,0 +1,76 @@
package com.hc.business.model.jwt;
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.JWTDecodeException;
import com.auth0.jwt.interfaces.DecodedJWT;
import org.springframework.stereotype.Component;
import java.io.UnsupportedEncodingException;
import java.util.Date;
@Component
public class JWTUtil {
// 过期时间8小时0分钟
private static final long EXPIRE_TIME = 8 * 60 * 60 * 1000;
/**
* token
*
* @param token
* @param secret
* @return
*/
public static boolean verify(String token, String userName, String secret) {
try {
Algorithm algorithm = Algorithm.HMAC256(secret);
JWTVerifier verifier = JWT.require(algorithm)
.withClaim("userName", userName)
.build();
DecodedJWT jwt = verifier.verify(token);
return true;
} catch (Exception exception) {
System.out.println(exception.getMessage());
return false;
}
}
/**
* tokensecret
*
* @return token
*/
public static String getUserName(String token) {
try {
DecodedJWT jwt = JWT.decode(token);
return jwt.getClaim("userName").asString();
} catch (JWTDecodeException e) {
return null;
}
}
/**
* ,2
*
* @param userName
* @param secret
* @return token
*/
public static String sign(String userName, String secret) {
Date date = new Date(System.currentTimeMillis() + EXPIRE_TIME);
Algorithm algorithm = null;
try {
algorithm = Algorithm.HMAC256(secret);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
// 附带userName信息
return JWT.create()
.withClaim("userName", userName)
.withExpiresAt(date)
.sign(algorithm);
}
}

@ -0,0 +1,31 @@
package com.hc.business.model.login;
import com.hc.business.model.User;
import com.hc.business.model.UserAdmin;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@ApiModel("登录信息表")
@Data
public class AccessEntity implements Serializable{
private static final long serialVersionUID = -5164168823800497252L;
@ApiModelProperty(value = "用户信息")
private AuthEntity auth;
@ApiModelProperty(value = "token",example = "e781d000-0498-46d3-90df-96edfd95bcd6")
private TokenEntity token;
@ApiModelProperty(value = "user")
private User user;
@ApiModelProperty(value = "userAdmin")
private UserAdmin userAdmin;
}

@ -0,0 +1,19 @@
package com.hc.business.model.login;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
public class AuthEntity implements Serializable {
private static final long serialVersionUID = -9061398570055647081L;
@NotNull(message = "用户名不可以为空")
private String userName;
@NotNull(message = "密码不可以为空")
private String password;
}

@ -0,0 +1,21 @@
package com.hc.business.model.login;
import lombok.Data;
import java.io.Serializable;
@Data
public class TokenEntity implements Serializable{
/**
*
*/
private static final long serialVersionUID = -6482495805136843397L;
private String id;
private int expires;
private Integer permissionLevel;
}

@ -0,0 +1,44 @@
package com.hc.business.service;
import com.alipay.api.AlipayApiException;
import com.hc.core.utils.pay.browser.alipay.bean.AliPayRefundBean;
import com.hc.core.utils.pay.browser.alipay.bean.AliPayBean;
import org.springframework.stereotype.Component;
import java.util.Map;
/**
* @author 10696
*/
@Component
public interface AliPayService {
/**
*
*
* @param aliPayBean
* @return
* @throws AlipayApiException
*/
Map<String, String> alipay(AliPayBean aliPayBean) throws AlipayApiException;
/**
*
*
* @param outTradeNo
* @param tradeNo
* @param tradeStatus
*/
void returnNotifyUrlInfo(String outTradeNo, String tradeNo, String tradeStatus);
/**
* 退
*
* @param aliPayRefundBean 退
* @return
* @throws AlipayApiException
*/
Map<String, String> refund(AliPayRefundBean aliPayRefundBean) throws AlipayApiException;
}

@ -0,0 +1,60 @@
package com.hc.business.service;
import com.github.pagehelper.PageInfo;
import com.hc.business.model.AreaDistrict;
import org.springframework.stereotype.Component;
/**
* (AreaDistrict)
*
* @author java
* @since 2020-11-20 12:48:46
*/
@Component
public interface AreaDistrictService {
/**
* ID
*
* @param areaId
* @return
*/
AreaDistrict queryById(Integer areaId);
/**
*
*
* @param areaDistrict
* @return
*/
AreaDistrict insert(AreaDistrict areaDistrict);
/**
*
*
* @param areaDistrict
* @return
*/
AreaDistrict update(AreaDistrict areaDistrict);
/**
*
*
* @param areaId
* @return
*/
boolean deleteById(Integer areaId);
/**
*
*
* @param page
* @param size
* @return
*/
PageInfo queryAllByLimit(int page, int size);
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save