Commit aba3413bcde4c50a01916e9c94600e5729663e54

Authored by 陶汉栋
2 parents 45a76ba8 96601d7c
Exists in master and in 1 other branch cloud_copy

Merge branch 'master' of http://git.shunzhi.net/taohd/mycloud

# Conflicts:
#	cloud/weigeng/src/main/java/com/sincere/weigeng/dao/UserDao.java
#	cloud/weigeng/src/test/java/com/sincere/weigeng/WeigengApplicationTests.java
Showing 734 changed files with 17911 additions and 34024 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 734 files displayed.

cloud/autho/pom.xml
... ... @@ -3,10 +3,9 @@
3 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4 4 <modelVersion>4.0.0</modelVersion>
5 5 <parent>
6   - <groupId>org.springframework.boot</groupId>
7   - <artifactId>spring-boot-starter-parent</artifactId>
8   - <version>2.1.7.RELEASE</version>
9   - <relativePath/> <!-- lookup parent from repository -->
  6 + <groupId>com.sincere</groupId>
  7 + <artifactId>cloud</artifactId>
  8 + <version>1.0.0</version>
10 9 </parent>
11 10 <groupId>com.sincere</groupId>
12 11 <artifactId>autho</artifactId>
... ... @@ -27,10 +26,6 @@
27 26 </dependency>
28 27 <dependency>
29 28 <groupId>org.springframework.cloud</groupId>
30   - <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
31   - </dependency>
32   - <dependency>
33   - <groupId>org.springframework.cloud</groupId>
34 29 <artifactId>spring-cloud-starter-oauth2</artifactId>
35 30 </dependency>
36 31  
... ... @@ -39,13 +34,6 @@
39 34 <artifactId>spring-cloud-starter-security</artifactId>
40 35 <version>2.1.3.RELEASE</version>
41 36 </dependency>
42   -
43   - <dependency>
44   - <groupId>org.springframework.boot</groupId>
45   - <artifactId>spring-boot-starter-test</artifactId>
46   - <scope>test</scope>
47   - </dependency>
48   -
49 37 <dependency>
50 38 <groupId>org.springframework.cloud</groupId>
51 39 <artifactId>spring-cloud-starter-openfeign</artifactId>
... ... @@ -56,13 +44,6 @@
56 44 <artifactId>spring-boot-starter-data-redis</artifactId>
57 45 </dependency>
58 46 <dependency>
59   - <groupId>com.alibaba</groupId>
60   - <artifactId>fastjson</artifactId>
61   - <version>1.2.58</version>
62   - <scope>compile</scope>
63   - </dependency>
64   -
65   - <dependency>
66 47 <groupId>io.grpc</groupId>
67 48 <artifactId>grpc-core</artifactId>
68 49 <version>1.18.0</version>
... ... @@ -82,18 +63,6 @@
82 63  
83 64 </dependencies>
84 65  
85   - <dependencyManagement>
86   - <dependencies>
87   - <dependency>
88   - <groupId>org.springframework.cloud</groupId>
89   - <artifactId>spring-cloud-dependencies</artifactId>
90   - <version>${spring-cloud.version}</version>
91   - <type>pom</type>
92   - <scope>import</scope>
93   - </dependency>
94   - </dependencies>
95   - </dependencyManagement>
96   -
97 66 <build>
98 67 <plugins>
99 68 <plugin>
... ...
cloud/common/libs/sqljdbc4-4.2-6.jar
No preview for this file type
cloud/common/pom.xml
... ... @@ -3,10 +3,9 @@
3 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4 4 <modelVersion>4.0.0</modelVersion>
5 5 <parent>
6   - <groupId>org.springframework.boot</groupId>
7   - <artifactId>spring-boot-starter-parent</artifactId>
8   - <version>2.1.7.RELEASE</version>
9   - <relativePath/> <!-- lookup parent from repository -->
  6 + <groupId>com.sincere</groupId>
  7 + <artifactId>cloud</artifactId>
  8 + <version>1.0.0</version>
10 9 </parent>
11 10 <groupId>com.sincere</groupId>
12 11 <artifactId>common</artifactId>
... ... @@ -20,71 +19,68 @@
20 19  
21 20 <dependencies>
22 21 <dependency>
23   - <groupId>org.springframework.boot</groupId>
24   - <artifactId>spring-boot-starter</artifactId>
  22 + <groupId>redis.clients</groupId>
  23 + <artifactId>jedis</artifactId>
  24 + <version>2.9.0</version>
25 25 </dependency>
26   -
27   - <dependency>
28   - <groupId>org.springframework.boot</groupId>
29   - <artifactId>spring-boot-starter-test</artifactId>
30   - <scope>test</scope>
31   - </dependency>
32   -
33   - <dependency>
34   - <groupId>com.microsoft.sqlserver.jdbc</groupId>
35   - <artifactId>sqljdbc</artifactId>
36   - <scope>system</scope>
37   - <version>1</version>
38   - <systemPath>${project.basedir}/libs/sqljdbc4-4.2-6.jar</systemPath>
39   - </dependency>
40   -
41   -
42 26 <dependency>
43   - <groupId>org.springframework.boot</groupId>
44   - <artifactId>spring-boot</artifactId>
  27 + <groupId>org.apache.httpcomponents</groupId>
  28 + <artifactId>httpclient</artifactId>
  29 + <version>4.3</version>
45 30 </dependency>
46 31 <dependency>
47   - <groupId>com.baomidou</groupId>
48   - <artifactId>mybatis-plus-core</artifactId>
49   - <version>3.0.1</version>
50   - <scope>compile</scope>
51   - </dependency>
52   -
53   - <dependency>
54   - <groupId>com.baomidou</groupId>
55   - <artifactId>mybatis-plus-extension</artifactId>
56   - <version>3.0.1</version>
57   - <scope>compile</scope>
58   - </dependency>
59   -
60   - <dependency>
61 32 <groupId>org.apache.tomcat.embed</groupId>
62 33 <artifactId>tomcat-embed-core</artifactId>
63 34 </dependency>
64   -
65 35 <dependency>
66 36 <groupId>io.jsonwebtoken</groupId>
67 37 <artifactId>jjwt</artifactId>
68 38 <version>0.9.0</version>
69 39 </dependency>
70   -
71 40 <dependency>
72 41 <groupId>org.springframework.security</groupId>
73 42 <artifactId>spring-security-core</artifactId>
74 43 </dependency>
75   -
76 44 <dependency>
77 45 <groupId>org.projectlombok</groupId>
78 46 <artifactId>lombok</artifactId>
79 47 </dependency>
80   -
81   -
82 48 <dependency>
83 49 <groupId>commons-collections</groupId>
84 50 <artifactId>commons-collections</artifactId>
85 51 <version>3.2.2</version>
86 52 </dependency>
  53 + <dependency>
  54 + <groupId>io.springfox</groupId>
  55 + <artifactId>springfox-swagger2</artifactId>
  56 + <version>2.5.0</version>
  57 + </dependency>
  58 + <dependency>
  59 + <groupId>io.springfox</groupId>
  60 + <artifactId>springfox-swagger-ui</artifactId>
  61 + <version>2.5.0</version>
  62 + </dependency>
  63 + <dependency>
  64 + <groupId>commons-net</groupId>
  65 + <artifactId>commons-net</artifactId>
  66 + <version>2.0</version>
  67 + </dependency>
  68 + <dependency>
  69 + <groupId>org.apache.poi</groupId>
  70 + <artifactId>poi</artifactId>
  71 + <version>4.1.0</version>
  72 + </dependency>
87 73  
  74 + <dependency>
  75 + <groupId>org.apache.poi</groupId>
  76 + <artifactId>poi-ooxml</artifactId>
  77 + <version>4.1.0</version>
  78 + </dependency>
  79 + <dependency>
  80 + <groupId>org.apache.commons</groupId>
  81 + <artifactId>commons-lang3</artifactId>
  82 + <version>3.3.2</version>
  83 + </dependency>
88 84 </dependencies>
89 85  
90 86 <build>
... ...
cloud/common/src/main/java/com/sincere/common/CommonApplication.java
... ... @@ -1,13 +0,0 @@
1   -package com.sincere.common;
2   -
3   -import org.springframework.boot.SpringApplication;
4   -import org.springframework.boot.autoconfigure.SpringBootApplication;
5   -
6   -@SpringBootApplication
7   -public class CommonApplication {
8   -
9   - public static void main(String[] args) {
10   - SpringApplication.run(CommonApplication.class, args);
11   - }
12   -
13   -}
cloud/common/src/main/java/com/sincere/common/commons/Result.java
1   -package com.sincere.common.commons;
2   -
3   -import lombok.AllArgsConstructor;
4   -import lombok.Data;
5   -import lombok.NoArgsConstructor;
6   -
7   -import java.io.Serializable;
8   -
9   -/**
10   - * @Author: [zhangzhiguang]
11   - * @Date: [2018-08-01 23:39]
12   - * @Description: [ ]
13   - * @Version: [1.0.0]
14   - * @Copy: [com.zzg]
15   - */
16   -@Data
17   -@NoArgsConstructor
18   -@AllArgsConstructor
19   -public class Result<T> implements Serializable {
20   -
21   - private T datas;
22   - private Integer resp_code;
23   - private String resp_msg;
24   -
25   - public static <T> Result<T> succeed(String msg) {
26   - return succeedWith(null, CodeEnum.SUCCESS.getCode(),msg);
27   - }
28   -
29   - public static <T> Result<T> succeed(T model, String msg) {
30   - return succeedWith(model, CodeEnum.SUCCESS.getCode(),msg);
31   - }
32   -
33   - public static <T> Result<T> succeedWith(T datas, Integer code,String msg) {
34   - return new Result<T>(datas, code, msg);
35   - }
36   -
37   - public static <T> Result<T> failed(String msg) {
38   - return failedWith(null, CodeEnum.ERROR.getCode(), msg);
39   - }
40   -
41   - public static <T> Result<T> failed(T model,String msg) {
42   - return failedWith(model, CodeEnum.ERROR.getCode(), msg);
43   - }
44   -
45   - public static <T> Result<T> failedWith(T datas, Integer code, String msg) {
46   - return new Result<T>( datas, code, msg);
47   - }
48   -
49   -}
  1 +//package com.sincere.common.commons;
  2 +//
  3 +//import lombok.AllArgsConstructor;
  4 +//import lombok.Data;
  5 +//import lombok.NoArgsConstructor;
  6 +//
  7 +//import java.io.Serializable;
  8 +//
  9 +///**
  10 +// * @Author: [zhangzhiguang]
  11 +// * @Date: [2018-08-01 23:39]
  12 +// * @Description: [ ]
  13 +// * @Version: [1.0.0]
  14 +// * @Copy: [com.zzg]
  15 +// */
  16 +//@Data
  17 +//@NoArgsConstructor
  18 +//@AllArgsConstructor
  19 +//public class Result<T> implements Serializable {
  20 +//
  21 +// private T datas;
  22 +// private Integer resp_code;
  23 +// private String resp_msg;
  24 +//
  25 +// public static <T> Result<T> succeed(String msg) {
  26 +// return succeedWith(null, CodeEnum.SUCCESS.getCode(),msg);
  27 +// }
  28 +//
  29 +// public static <T> Result<T> succeed(T model, String msg) {
  30 +// return succeedWith(model, CodeEnum.SUCCESS.getCode(),msg);
  31 +// }
  32 +//
  33 +// public static <T> Result<T> succeedWith(T datas, Integer code,String msg) {
  34 +// return new Result<T>(datas, code, msg);
  35 +// }
  36 +//
  37 +// public static <T> Result<T> failed(String msg) {
  38 +// return failedWith(null, CodeEnum.ERROR.getCode(), msg);
  39 +// }
  40 +//
  41 +// public static <T> Result<T> failed(T model,String msg) {
  42 +// return failedWith(model, CodeEnum.ERROR.getCode(), msg);
  43 +// }
  44 +//
  45 +// public static <T> Result<T> failedWith(T datas, Integer code, String msg) {
  46 +// return new Result<T>( datas, code, msg);
  47 +// }
  48 +//
  49 +//}
... ...
cloud/common/src/main/java/com/sincere/common/config/DataSourceHolder.java
... ... @@ -1,25 +0,0 @@
1   -package com.sincere.common.config;
2   -
3   -
4   -/**
5   - * 用于数据源切换
6   - *
7   - */
8   -public class DataSourceHolder {
9   -
10   - private static final ThreadLocal<DataSourceKey> dataSourceKey = new ThreadLocal<>();
11   -
12   - public static DataSourceKey getDataSourceKey() {
13   - return dataSourceKey.get();
14   - }
15   -
16   - public static void setDataSourceKey(DataSourceKey type) {
17   - dataSourceKey.set(type);
18   - }
19   -
20   - public static void clearDataSourceKey() {
21   - dataSourceKey.remove();
22   - }
23   -
24   -
25   -}
26 0 \ No newline at end of file
cloud/common/src/main/java/com/sincere/common/config/DataSourceKey.java
... ... @@ -1,11 +0,0 @@
1   -package com.sincere.common.config;
2   -
3   -/**
4   - * 数据源定义
5   - *
6   - * @author owen
7   - * @create 2017年7月2日
8   - */
9   -public enum DataSourceKey {
10   - core, log ,sharding
11   -}
12 0 \ No newline at end of file
cloud/common/src/main/java/com/sincere/common/dto/independence/AnalyseDetailDto.java 0 → 100644
... ... @@ -0,0 +1,76 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/13 0013 10:05
  10 + */
  11 +public class AnalyseDetailDto implements Serializable {
  12 +
  13 + private int id ;
  14 + private int analyseId ;
  15 + private String questionNumber ;
  16 + private String questionType ;
  17 + private int difficult ;
  18 + private Double score ;
  19 + private Date createTime ;
  20 +
  21 + public int getId() {
  22 + return id;
  23 + }
  24 +
  25 + public void setId(int id) {
  26 + this.id = id;
  27 + }
  28 +
  29 + public int getAnalyseId() {
  30 + return analyseId;
  31 + }
  32 +
  33 + public void setAnalyseId(int analyseId) {
  34 + this.analyseId = analyseId;
  35 + }
  36 +
  37 + public String getQuestionNumber() {
  38 + return questionNumber;
  39 + }
  40 +
  41 + public void setQuestionNumber(String questionNumber) {
  42 + this.questionNumber = questionNumber;
  43 + }
  44 +
  45 + public int getDifficult() {
  46 + return difficult;
  47 + }
  48 +
  49 + public void setDifficult(int difficult) {
  50 + this.difficult = difficult;
  51 + }
  52 +
  53 + public Double getScore() {
  54 + return score;
  55 + }
  56 +
  57 + public void setScore(Double score) {
  58 + this.score = score;
  59 + }
  60 +
  61 + public Date getCreateTime() {
  62 + return createTime;
  63 + }
  64 +
  65 + public void setCreateTime(Date createTime) {
  66 + this.createTime = createTime;
  67 + }
  68 +
  69 + public String getQuestionType() {
  70 + return questionType;
  71 + }
  72 +
  73 + public void setQuestionType(String questionType) {
  74 + this.questionType = questionType;
  75 + }
  76 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/AnalyseDimensionalDto.java 0 → 100644
... ... @@ -0,0 +1,67 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/13 0013 10:19
  10 + */
  11 +public class AnalyseDimensionalDto implements Serializable {
  12 +
  13 + private int id ;
  14 + private int analyseId ;
  15 + private String questionNumber ;
  16 + private int dimensionalId ;
  17 + private Double score ;
  18 + private Date createTime ;
  19 +
  20 + public int getId() {
  21 + return id;
  22 + }
  23 +
  24 + public void setId(int id) {
  25 + this.id = id;
  26 + }
  27 +
  28 + public int getAnalyseId() {
  29 + return analyseId;
  30 + }
  31 +
  32 + public void setAnalyseId(int analyseId) {
  33 + this.analyseId = analyseId;
  34 + }
  35 +
  36 + public String getQuestionNumber() {
  37 + return questionNumber;
  38 + }
  39 +
  40 + public void setQuestionNumber(String questionNumber) {
  41 + this.questionNumber = questionNumber;
  42 + }
  43 +
  44 + public int getDimensionalId() {
  45 + return dimensionalId;
  46 + }
  47 +
  48 + public void setDimensionalId(int dimensionalId) {
  49 + this.dimensionalId = dimensionalId;
  50 + }
  51 +
  52 + public Double getScore() {
  53 + return score;
  54 + }
  55 +
  56 + public void setScore(Double score) {
  57 + this.score = score;
  58 + }
  59 +
  60 + public Date getCreateTime() {
  61 + return createTime;
  62 + }
  63 +
  64 + public void setCreateTime(Date createTime) {
  65 + this.createTime = createTime;
  66 + }
  67 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/AnalyseDto.java 0 → 100644
... ... @@ -0,0 +1,85 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/13 0013 9:39
  10 + */
  11 +public class AnalyseDto implements Serializable {
  12 +
  13 + private int id ;
  14 + private String examName ;
  15 + private String examTime ;
  16 + private String courseName ;
  17 + private Date createTime ;
  18 + private Double maxScore ;
  19 + private String grade ;
  20 + private String examScope ;
  21 +
  22 + public int getId() {
  23 + return id;
  24 + }
  25 +
  26 + public void setId(int id) {
  27 + this.id = id;
  28 + }
  29 +
  30 + public String getExamName() {
  31 + return examName;
  32 + }
  33 +
  34 + public void setExamName(String examName) {
  35 + this.examName = examName;
  36 + }
  37 +
  38 + public String getExamTime() {
  39 + return examTime;
  40 + }
  41 +
  42 + public void setExamTime(String examTime) {
  43 + this.examTime = examTime;
  44 + }
  45 +
  46 + public String getCourseName() {
  47 + return courseName;
  48 + }
  49 +
  50 + public void setCourseName(String courseName) {
  51 + this.courseName = courseName;
  52 + }
  53 +
  54 + public Date getCreateTime() {
  55 + return createTime;
  56 + }
  57 +
  58 + public void setCreateTime(Date createTime) {
  59 + this.createTime = createTime;
  60 + }
  61 +
  62 + public Double getMaxScore() {
  63 + return maxScore;
  64 + }
  65 +
  66 + public void setMaxScore(Double maxScore) {
  67 + this.maxScore = maxScore;
  68 + }
  69 +
  70 + public String getGrade() {
  71 + return grade;
  72 + }
  73 +
  74 + public void setGrade(String grade) {
  75 + this.grade = grade;
  76 + }
  77 +
  78 + public String getExamScope() {
  79 + return examScope;
  80 + }
  81 +
  82 + public void setExamScope(String examScope) {
  83 + this.examScope = examScope;
  84 + }
  85 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/ChapterDto.java 0 → 100644
... ... @@ -0,0 +1,67 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/13 0013 9:17
  9 + */
  10 +public class ChapterDto implements Serializable {
  11 +
  12 + private int id ;
  13 + private int analyseId ;
  14 + private int chapterNumber ;
  15 + private String chapterName ;
  16 + private Double chapterScore ;
  17 +
  18 + private Double percent ;
  19 +
  20 + public int getId() {
  21 + return id;
  22 + }
  23 +
  24 + public void setId(int id) {
  25 + this.id = id;
  26 + }
  27 +
  28 + public int getAnalyseId() {
  29 + return analyseId;
  30 + }
  31 +
  32 + public void setAnalyseId(int analyseId) {
  33 + this.analyseId = analyseId;
  34 + }
  35 +
  36 + public int getChapterNumber() {
  37 + return chapterNumber;
  38 + }
  39 +
  40 + public void setChapterNumber(int chapterNumber) {
  41 + this.chapterNumber = chapterNumber;
  42 + }
  43 +
  44 + public String getChapterName() {
  45 + return chapterName;
  46 + }
  47 +
  48 + public void setChapterName(String chapterName) {
  49 + this.chapterName = chapterName;
  50 + }
  51 +
  52 + public Double getChapterScore() {
  53 + return chapterScore;
  54 + }
  55 +
  56 + public void setChapterScore(Double chapterScore) {
  57 + this.chapterScore = chapterScore;
  58 + }
  59 +
  60 + public Double getPercent() {
  61 + return percent;
  62 + }
  63 +
  64 + public void setPercent(Double percent) {
  65 + this.percent = percent;
  66 + }
  67 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/ClassCourseDto.java 0 → 100644
... ... @@ -0,0 +1,132 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/13 0013 16:46
  10 + */
  11 +public class ClassCourseDto implements Serializable {
  12 +
  13 + private Integer courseId;
  14 +
  15 + private Integer schoolId;
  16 +
  17 + private String grade;
  18 +
  19 + private Integer classId;
  20 +
  21 + private Integer singleOrDouble;
  22 +
  23 + private Integer week;
  24 +
  25 + private Integer courseNumber;
  26 +
  27 + private String courseName;
  28 +
  29 + private Date createTime;
  30 +
  31 + private Date updateTime;
  32 +
  33 + private String team ;
  34 +
  35 + private int courseOpenId ;
  36 +
  37 + public Integer getCourseId() {
  38 + return courseId;
  39 + }
  40 +
  41 + public void setCourseId(Integer courseId) {
  42 + this.courseId = courseId;
  43 + }
  44 +
  45 + public Integer getSchoolId() {
  46 + return schoolId;
  47 + }
  48 +
  49 + public void setSchoolId(Integer schoolId) {
  50 + this.schoolId = schoolId;
  51 + }
  52 +
  53 + public String getGrade() {
  54 + return grade;
  55 + }
  56 +
  57 + public void setGrade(String grade) {
  58 + this.grade = grade;
  59 + }
  60 +
  61 + public Integer getClassId() {
  62 + return classId;
  63 + }
  64 +
  65 + public void setClassId(Integer classId) {
  66 + this.classId = classId;
  67 + }
  68 +
  69 + public Integer getSingleOrDouble() {
  70 + return singleOrDouble;
  71 + }
  72 +
  73 + public void setSingleOrDouble(Integer singleOrDouble) {
  74 + this.singleOrDouble = singleOrDouble;
  75 + }
  76 +
  77 + public Integer getWeek() {
  78 + return week;
  79 + }
  80 +
  81 + public void setWeek(Integer week) {
  82 + this.week = week;
  83 + }
  84 +
  85 + public Integer getCourseNumber() {
  86 + return courseNumber;
  87 + }
  88 +
  89 + public void setCourseNumber(Integer courseNumber) {
  90 + this.courseNumber = courseNumber;
  91 + }
  92 +
  93 + public String getCourseName() {
  94 + return courseName;
  95 + }
  96 +
  97 + public void setCourseName(String courseName) {
  98 + this.courseName = courseName == null ? null : courseName.trim();
  99 + }
  100 +
  101 + public Date getCreateTime() {
  102 + return createTime;
  103 + }
  104 +
  105 + public void setCreateTime(Date createTime) {
  106 + this.createTime = createTime;
  107 + }
  108 +
  109 + public Date getUpdateTime() {
  110 + return updateTime;
  111 + }
  112 +
  113 + public void setUpdateTime(Date updateTime) {
  114 + this.updateTime = updateTime;
  115 + }
  116 +
  117 + public String getTeam() {
  118 + return team;
  119 + }
  120 +
  121 + public void setTeam(String team) {
  122 + this.team = team;
  123 + }
  124 +
  125 + public int getCourseOpenId() {
  126 + return courseOpenId;
  127 + }
  128 +
  129 + public void setCourseOpenId(int courseOpenId) {
  130 + this.courseOpenId = courseOpenId;
  131 + }
  132 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/ClassModelDto.java 0 → 100644
... ... @@ -0,0 +1,51 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/13 0013 16:35
  9 + */
  10 +public class ClassModelDto implements Serializable {
  11 +
  12 + private Integer classId;
  13 +
  14 + private Integer schoolId;
  15 +
  16 + private String grade;
  17 +
  18 + private String className;
  19 +
  20 + public Integer getClassId() {
  21 + return classId;
  22 + }
  23 +
  24 + public void setClassId(Integer classId) {
  25 + this.classId = classId;
  26 + }
  27 +
  28 + public Integer getSchoolId() {
  29 + return schoolId;
  30 + }
  31 +
  32 + public void setSchoolId(Integer schoolId) {
  33 + this.schoolId = schoolId;
  34 + }
  35 +
  36 + public String getGrade() {
  37 + return grade;
  38 + }
  39 +
  40 + public void setGrade(String grade) {
  41 + this.grade = grade;
  42 + }
  43 +
  44 + public String getClassName() {
  45 + return className;
  46 + }
  47 +
  48 + public void setClassName(String className) {
  49 + this.className = className == null ? null : className.trim();
  50 + }
  51 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/CourseDto.java 0 → 100644
... ... @@ -0,0 +1,57 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/13 0013 16:38
  9 + */
  10 +public class CourseDto implements Serializable {
  11 +
  12 + private int id ;
  13 + private int schoolId ;
  14 + private int courseId ;
  15 + private String courseName ;
  16 + private int courseType;
  17 +
  18 + public int getCourseId() {
  19 + return courseId;
  20 + }
  21 +
  22 + public void setCourseId(int courseId) {
  23 + this.courseId = courseId;
  24 + }
  25 +
  26 + public String getCourseName() {
  27 + return courseName;
  28 + }
  29 +
  30 + public void setCourseName(String courseName) {
  31 + this.courseName = courseName;
  32 + }
  33 +
  34 + public int getId() {
  35 + return id;
  36 + }
  37 +
  38 + public void setId(int id) {
  39 + this.id = id;
  40 + }
  41 +
  42 + public int getSchoolId() {
  43 + return schoolId;
  44 + }
  45 +
  46 + public void setSchoolId(int schoolId) {
  47 + this.schoolId = schoolId;
  48 + }
  49 +
  50 + public int getCourseType() {
  51 + return courseType;
  52 + }
  53 +
  54 + public void setCourseType(int courseType) {
  55 + this.courseType = courseType;
  56 + }
  57 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/GetLearnDto.java 0 → 100644
... ... @@ -0,0 +1,30 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/13 0013 9:04
  9 + */
  10 +public class GetLearnDto implements Serializable {
  11 +
  12 + private int analyseId ;
  13 + private String schoolName ;
  14 +
  15 + public int getAnalyseId() {
  16 + return analyseId;
  17 + }
  18 +
  19 + public void setAnalyseId(int analyseId) {
  20 + this.analyseId = analyseId;
  21 + }
  22 +
  23 + public String getSchoolName() {
  24 + return schoolName;
  25 + }
  26 +
  27 + public void setSchoolName(String schoolName) {
  28 + this.schoolName = schoolName;
  29 + }
  30 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/JoinClassDto.java 0 → 100644
... ... @@ -0,0 +1,75 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/13 0013 15:32
  9 + */
  10 +public class JoinClassDto implements Serializable {
  11 +
  12 + private int id ;
  13 + private int schoolId ;
  14 + private int classId ;
  15 + private String team ;
  16 + private int courseId ;
  17 + private String courseName ;
  18 + private int courseGroup ;
  19 +
  20 + public int getId() {
  21 + return id;
  22 + }
  23 +
  24 + public void setId(int id) {
  25 + this.id = id;
  26 + }
  27 +
  28 + public int getSchoolId() {
  29 + return schoolId;
  30 + }
  31 +
  32 + public void setSchoolId(int schoolId) {
  33 + this.schoolId = schoolId;
  34 + }
  35 +
  36 + public int getClassId() {
  37 + return classId;
  38 + }
  39 +
  40 + public void setClassId(int classId) {
  41 + this.classId = classId;
  42 + }
  43 +
  44 + public String getTeam() {
  45 + return team;
  46 + }
  47 +
  48 + public void setTeam(String team) {
  49 + this.team = team;
  50 + }
  51 +
  52 + public int getCourseId() {
  53 + return courseId;
  54 + }
  55 +
  56 + public void setCourseId(int courseId) {
  57 + this.courseId = courseId;
  58 + }
  59 +
  60 + public String getCourseName() {
  61 + return courseName;
  62 + }
  63 +
  64 + public void setCourseName(String courseName) {
  65 + this.courseName = courseName;
  66 + }
  67 +
  68 + public int getCourseGroup() {
  69 + return courseGroup;
  70 + }
  71 +
  72 + public void setCourseGroup(int courseGroup) {
  73 + this.courseGroup = courseGroup;
  74 + }
  75 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/LeagueDto.java 0 → 100644
... ... @@ -0,0 +1,48 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/13 0013 9:46
  9 + */
  10 +public class LeagueDto implements Serializable {
  11 +
  12 + private int id ;
  13 + private int analyseId ;
  14 + private String league ;
  15 + private String schoolName ;
  16 +
  17 + public int getId() {
  18 + return id;
  19 + }
  20 +
  21 + public void setId(int id) {
  22 + this.id = id;
  23 + }
  24 +
  25 + public int getAnalyseId() {
  26 + return analyseId;
  27 + }
  28 +
  29 + public void setAnalyseId(int analyseId) {
  30 + this.analyseId = analyseId;
  31 + }
  32 +
  33 + public String getLeague() {
  34 + return league;
  35 + }
  36 +
  37 + public void setLeague(String league) {
  38 + this.league = league;
  39 + }
  40 +
  41 + public String getSchoolName() {
  42 + return schoolName;
  43 + }
  44 +
  45 + public void setSchoolName(String schoolName) {
  46 + this.schoolName = schoolName;
  47 + }
  48 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/ScheduleDto.java 0 → 100644
... ... @@ -0,0 +1,103 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/13 0013 13:51
  10 + */
  11 +public class ScheduleDto implements Serializable {
  12 +
  13 + private int id ;
  14 + private String scheduleName ;
  15 + private int schoolId ;
  16 + private String team ;
  17 + private Date createTime ;
  18 + private Date updateTime ;
  19 + private int speed ;
  20 + private int morning ;
  21 + private int afternoon;
  22 + private int night ;
  23 +
  24 + public int getId() {
  25 + return id;
  26 + }
  27 +
  28 + public void setId(int id) {
  29 + this.id = id;
  30 + }
  31 +
  32 + public String getScheduleName() {
  33 + return scheduleName;
  34 + }
  35 +
  36 + public void setScheduleName(String scheduleName) {
  37 + this.scheduleName = scheduleName;
  38 + }
  39 +
  40 + public int getSchoolId() {
  41 + return schoolId;
  42 + }
  43 +
  44 + public void setSchoolId(int schoolId) {
  45 + this.schoolId = schoolId;
  46 + }
  47 +
  48 + public String getTeam() {
  49 + return team;
  50 + }
  51 +
  52 + public void setTeam(String team) {
  53 + this.team = team;
  54 + }
  55 +
  56 + public Date getCreateTime() {
  57 + return createTime;
  58 + }
  59 +
  60 + public void setCreateTime(Date createTime) {
  61 + this.createTime = createTime;
  62 + }
  63 +
  64 + public Date getUpdateTime() {
  65 + return updateTime;
  66 + }
  67 +
  68 + public void setUpdateTime(Date updateTime) {
  69 + this.updateTime = updateTime;
  70 + }
  71 +
  72 + public int getSpeed() {
  73 + return speed;
  74 + }
  75 +
  76 + public void setSpeed(int speed) {
  77 + this.speed = speed;
  78 + }
  79 +
  80 + public int getMorning() {
  81 + return morning;
  82 + }
  83 +
  84 + public void setMorning(int morning) {
  85 + this.morning = morning;
  86 + }
  87 +
  88 + public int getAfternoon() {
  89 + return afternoon;
  90 + }
  91 +
  92 + public void setAfternoon(int afternoon) {
  93 + this.afternoon = afternoon;
  94 + }
  95 +
  96 + public int getNight() {
  97 + return night;
  98 + }
  99 +
  100 + public void setNight(int night) {
  101 + this.night = night;
  102 + }
  103 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/StudentDetailDto.java 0 → 100644
... ... @@ -0,0 +1,112 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/13 0013 10:56
  10 + */
  11 +public class StudentDetailDto implements Serializable {
  12 +
  13 + private long id ;
  14 + private int openId;
  15 + private String schoolName ;
  16 + private String className ;
  17 + private String studentName ;
  18 + private String studentNumber ;
  19 + private int analyseId ;
  20 + private String examNumber ;
  21 + private Double score ;
  22 + private Date createTime ;
  23 + private int correct ; //1 正确 0 错误
  24 +
  25 + public long getId() {
  26 + return id;
  27 + }
  28 +
  29 + public void setId(long id) {
  30 + this.id = id;
  31 + }
  32 +
  33 + public int getOpenId() {
  34 + return openId;
  35 + }
  36 +
  37 + public void setOpenId(int openId) {
  38 + this.openId = openId;
  39 + }
  40 +
  41 + public String getSchoolName() {
  42 + return schoolName;
  43 + }
  44 +
  45 + public void setSchoolName(String schoolName) {
  46 + this.schoolName = schoolName;
  47 + }
  48 +
  49 + public String getClassName() {
  50 + return className;
  51 + }
  52 +
  53 + public void setClassName(String className) {
  54 + this.className = className;
  55 + }
  56 +
  57 + public String getStudentName() {
  58 + return studentName;
  59 + }
  60 +
  61 + public void setStudentName(String studentName) {
  62 + this.studentName = studentName;
  63 + }
  64 +
  65 + public String getStudentNumber() {
  66 + return studentNumber;
  67 + }
  68 +
  69 + public void setStudentNumber(String studentNumber) {
  70 + this.studentNumber = studentNumber;
  71 + }
  72 +
  73 + public int getAnalyseId() {
  74 + return analyseId;
  75 + }
  76 +
  77 + public void setAnalyseId(int analyseId) {
  78 + this.analyseId = analyseId;
  79 + }
  80 +
  81 + public String getExamNumber() {
  82 + return examNumber;
  83 + }
  84 +
  85 + public void setExamNumber(String examNumber) {
  86 + this.examNumber = examNumber;
  87 + }
  88 +
  89 + public Double getScore() {
  90 + return score;
  91 + }
  92 +
  93 + public void setScore(Double score) {
  94 + this.score = score;
  95 + }
  96 +
  97 + public Date getCreateTime() {
  98 + return createTime;
  99 + }
  100 +
  101 + public void setCreateTime(Date createTime) {
  102 + this.createTime = createTime;
  103 + }
  104 +
  105 + public int getCorrect() {
  106 + return correct;
  107 + }
  108 +
  109 + public void setCorrect(int correct) {
  110 + this.correct = correct;
  111 + }
  112 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/StudentDto.java 0 → 100644
... ... @@ -0,0 +1,95 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/13 0013 10:51
  10 + */
  11 +public class StudentDto implements Serializable {
  12 +
  13 + private int id ;
  14 + private int openId;
  15 + private String schoolName ;
  16 + private String className ;
  17 + private String studentName ;
  18 + private String studentNumber ;
  19 + private int analyseId ;
  20 + private double score ;
  21 + private Date createTime ;
  22 +
  23 +
  24 + public int getId() {
  25 + return id;
  26 + }
  27 +
  28 + public void setId(int id) {
  29 + this.id = id;
  30 + }
  31 +
  32 + public int getOpenId() {
  33 + return openId;
  34 + }
  35 +
  36 + public void setOpenId(int openId) {
  37 + this.openId = openId;
  38 + }
  39 +
  40 + public String getSchoolName() {
  41 + return schoolName;
  42 + }
  43 +
  44 + public void setSchoolName(String schoolName) {
  45 + this.schoolName = schoolName;
  46 + }
  47 +
  48 + public String getClassName() {
  49 + return className;
  50 + }
  51 +
  52 + public void setClassName(String className) {
  53 + this.className = className;
  54 + }
  55 +
  56 + public String getStudentName() {
  57 + return studentName;
  58 + }
  59 +
  60 + public void setStudentName(String studentName) {
  61 + this.studentName = studentName;
  62 + }
  63 +
  64 + public String getStudentNumber() {
  65 + return studentNumber;
  66 + }
  67 +
  68 + public void setStudentNumber(String studentNumber) {
  69 + this.studentNumber = studentNumber;
  70 + }
  71 +
  72 + public int getAnalyseId() {
  73 + return analyseId;
  74 + }
  75 +
  76 + public void setAnalyseId(int analyseId) {
  77 + this.analyseId = analyseId;
  78 + }
  79 +
  80 + public double getScore() {
  81 + return score;
  82 + }
  83 +
  84 + public void setScore(double score) {
  85 + this.score = score;
  86 + }
  87 +
  88 + public Date getCreateTime() {
  89 + return createTime;
  90 + }
  91 +
  92 + public void setCreateTime(Date createTime) {
  93 + this.createTime = createTime;
  94 + }
  95 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/independence/TeacherClassDto.java 0 → 100644
... ... @@ -0,0 +1,132 @@
  1 +package com.sincere.common.dto.independence;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/13 0013 16:53
  10 + */
  11 +public class TeacherClassDto implements Serializable {
  12 +
  13 + private Integer tClassId;
  14 +
  15 + private Integer teacherId;
  16 +
  17 + private String teacherName;
  18 +
  19 + private Integer schoolId;
  20 +
  21 + private String grade;
  22 +
  23 + private Integer classId;
  24 +
  25 + private String courseName;
  26 +
  27 + private Integer times;
  28 +
  29 + private Integer joinTimes;
  30 +
  31 + private Date createTime;
  32 +
  33 + private String team ;
  34 +
  35 + private int status ;
  36 +
  37 + public Integer gettClassId() {
  38 + return tClassId;
  39 + }
  40 +
  41 + public void settClassId(Integer tClassId) {
  42 + this.tClassId = tClassId;
  43 + }
  44 +
  45 + public Integer getTeacherId() {
  46 + return teacherId;
  47 + }
  48 +
  49 + public void setTeacherId(Integer teacherId) {
  50 + this.teacherId = teacherId;
  51 + }
  52 +
  53 + public String getTeacherName() {
  54 + return teacherName;
  55 + }
  56 +
  57 + public void setTeacherName(String teacherName) {
  58 + this.teacherName = teacherName == null ? null : teacherName.trim();
  59 + }
  60 +
  61 + public Integer getSchoolId() {
  62 + return schoolId;
  63 + }
  64 +
  65 + public void setSchoolId(Integer schoolId) {
  66 + this.schoolId = schoolId;
  67 + }
  68 +
  69 + public String getGrade() {
  70 + return grade;
  71 + }
  72 +
  73 + public void setGrade(String grade) {
  74 + this.grade = grade;
  75 + }
  76 +
  77 + public Integer getClassId() {
  78 + return classId;
  79 + }
  80 +
  81 + public void setClassId(Integer classId) {
  82 + this.classId = classId;
  83 + }
  84 +
  85 + public String getCourseName() {
  86 + return courseName;
  87 + }
  88 +
  89 + public void setCourseName(String courseName) {
  90 + this.courseName = courseName == null ? null : courseName.trim();
  91 + }
  92 +
  93 + public Integer getTimes() {
  94 + return times;
  95 + }
  96 +
  97 + public void setTimes(Integer times) {
  98 + this.times = times;
  99 + }
  100 +
  101 + public Integer getJoinTimes() {
  102 + return joinTimes;
  103 + }
  104 +
  105 + public void setJoinTimes(Integer joinTimes) {
  106 + this.joinTimes = joinTimes;
  107 + }
  108 +
  109 + public Date getCreateTime() {
  110 + return createTime;
  111 + }
  112 +
  113 + public void setCreateTime(Date createTime) {
  114 + this.createTime = createTime;
  115 + }
  116 +
  117 + public String getTeam() {
  118 + return team;
  119 + }
  120 +
  121 + public void setTeam(String team) {
  122 + this.team = team;
  123 + }
  124 +
  125 + public int getStatus() {
  126 + return status;
  127 + }
  128 +
  129 + public void setStatus(int status) {
  130 + this.status = status;
  131 + }
  132 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/smartCampus/SchoolDto.java 0 → 100644
... ... @@ -0,0 +1,31 @@
  1 +package com.sincere.common.dto.smartCampus;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/12 0012 9:06
  9 + */
  10 +public class SchoolDto implements Serializable {
  11 +
  12 + private int schoolId ;
  13 + private String schoolName ;
  14 +
  15 + public int getSchoolId() {
  16 + return schoolId;
  17 + }
  18 +
  19 + public void setSchoolId(int schoolId) {
  20 + this.schoolId = schoolId;
  21 + }
  22 +
  23 + public String getSchoolName() {
  24 + return schoolName;
  25 + }
  26 +
  27 + public void setSchoolName(String schoolName) {
  28 + this.schoolName = schoolName;
  29 + }
  30 +
  31 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/smartCampus/StudentCardDto.java 0 → 100644
... ... @@ -0,0 +1,31 @@
  1 +package com.sincere.common.dto.smartCampus;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/12 0012 9:33
  9 + */
  10 +public class StudentCardDto implements Serializable {
  11 +
  12 + private String cardType ;
  13 + private String cardNum ;
  14 +
  15 + public String getCardType() {
  16 + return cardType;
  17 + }
  18 +
  19 + public void setCardType(String cardType) {
  20 + this.cardType = cardType;
  21 + }
  22 +
  23 + public String getCardNum() {
  24 + return cardNum;
  25 + }
  26 +
  27 + public void setCardNum(String cardNum) {
  28 + this.cardNum = cardNum;
  29 + }
  30 +
  31 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/smartCampus/UpdateCardDto.java 0 → 100644
... ... @@ -0,0 +1,39 @@
  1 +package com.sincere.common.dto.smartCampus;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/12 0012 9:31
  9 + */
  10 +public class UpdateCardDto implements Serializable {
  11 +
  12 + private int id ;
  13 + private int userType ;
  14 + private String oldCard ;
  15 +
  16 + public int getId() {
  17 + return id;
  18 + }
  19 +
  20 + public void setId(int id) {
  21 + this.id = id;
  22 + }
  23 +
  24 + public int getUserType() {
  25 + return userType;
  26 + }
  27 +
  28 + public void setUserType(int userType) {
  29 + this.userType = userType;
  30 + }
  31 +
  32 + public String getOldCard() {
  33 + return oldCard;
  34 + }
  35 +
  36 + public void setOldCard(String oldCard) {
  37 + this.oldCard = oldCard;
  38 + }
  39 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/smartCampus/UserDto.java 0 → 100644
... ... @@ -0,0 +1,48 @@
  1 +package com.sincere.common.dto.smartCampus;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/12 0012 9:28
  9 + */
  10 +public class UserDto implements Serializable {
  11 +
  12 + private int schoolId;
  13 + private int classId ;
  14 + private String name ;
  15 + private int studentId ;
  16 +
  17 + public int getSchoolId() {
  18 + return schoolId;
  19 + }
  20 +
  21 + public void setSchoolId(int schoolId) {
  22 + this.schoolId = schoolId;
  23 + }
  24 +
  25 + public int getClassId() {
  26 + return classId;
  27 + }
  28 +
  29 + public void setClassId(int classId) {
  30 + this.classId = classId;
  31 + }
  32 +
  33 + public String getName() {
  34 + return name;
  35 + }
  36 +
  37 + public void setName(String name) {
  38 + this.name = name;
  39 + }
  40 +
  41 + public int getStudentId() {
  42 + return studentId;
  43 + }
  44 +
  45 + public void setStudentId(int studentId) {
  46 + this.studentId = studentId;
  47 + }
  48 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/xiaoan/CheckInDto.java 0 → 100644
... ... @@ -0,0 +1,59 @@
  1 +package com.sincere.common.dto.xiaoan;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/12 0012 9:40
  9 + */
  10 +public class CheckInDto implements Serializable {
  11 +
  12 + private String deviceId ;
  13 + private String cardNo ;
  14 + private int funNo ;
  15 + private int flag ;
  16 + private String checkTime ;
  17 +
  18 +
  19 + public String getDeviceId() {
  20 + return deviceId;
  21 + }
  22 +
  23 + public void setDeviceId(String deviceId) {
  24 + this.deviceId = deviceId;
  25 + }
  26 +
  27 + public String getCardNo() {
  28 + return cardNo;
  29 + }
  30 +
  31 + public void setCardNo(String cardNo) {
  32 + this.cardNo = cardNo;
  33 + }
  34 +
  35 + public int getFlag() {
  36 + return flag;
  37 + }
  38 +
  39 + public void setFlag(int flag) {
  40 + this.flag = flag;
  41 + }
  42 +
  43 + public String getCheckTime() {
  44 + return checkTime;
  45 + }
  46 +
  47 + public void setCheckTime(String checkTime) {
  48 + this.checkTime = checkTime;
  49 + }
  50 +
  51 +
  52 + public int getFunNo() {
  53 + return funNo;
  54 + }
  55 +
  56 + public void setFunNo(int funNo) {
  57 + this.funNo = funNo;
  58 + }
  59 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/xiaoan/CheckOutDto.java 0 → 100644
... ... @@ -0,0 +1,30 @@
  1 +package com.sincere.common.dto.xiaoan;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/11/12 0012 13:36
  9 + */
  10 +public class CheckOutDto implements Serializable {
  11 +
  12 + private String out;
  13 + private int isSuccess ;
  14 +
  15 + public String getOut() {
  16 + return out;
  17 + }
  18 +
  19 + public void setOut(String out) {
  20 + this.out = out;
  21 + }
  22 +
  23 + public int getIsSuccess() {
  24 + return isSuccess;
  25 + }
  26 +
  27 + public void setIsSuccess(int isSuccess) {
  28 + this.isSuccess = isSuccess;
  29 + }
  30 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/xiaoan/PassFailDto.java 0 → 100644
... ... @@ -0,0 +1,76 @@
  1 +package com.sincere.common.dto.xiaoan;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/12 0012 10:03
  10 + */
  11 +public class PassFailDto implements Serializable {
  12 +
  13 + private String cardNum ;
  14 + private String deviceId ;
  15 + private String direction ;
  16 + private String resultIntro ;
  17 + private Date createTime ;
  18 + private int schoolId ;
  19 + private Date inTime ;
  20 +
  21 + public String getCardNum() {
  22 + return cardNum;
  23 + }
  24 +
  25 + public void setCardNum(String cardNum) {
  26 + this.cardNum = cardNum;
  27 + }
  28 +
  29 + public String getDeviceId() {
  30 + return deviceId;
  31 + }
  32 +
  33 + public void setDeviceId(String deviceId) {
  34 + this.deviceId = deviceId;
  35 + }
  36 +
  37 + public String getDirection() {
  38 + return direction;
  39 + }
  40 +
  41 + public void setDirection(String direction) {
  42 + this.direction = direction;
  43 + }
  44 +
  45 + public String getResultIntro() {
  46 + return resultIntro;
  47 + }
  48 +
  49 + public void setResultIntro(String resultIntro) {
  50 + this.resultIntro = resultIntro;
  51 + }
  52 +
  53 + public Date getCreateTime() {
  54 + return createTime;
  55 + }
  56 +
  57 + public void setCreateTime(Date createTime) {
  58 + this.createTime = createTime;
  59 + }
  60 +
  61 + public int getSchoolId() {
  62 + return schoolId;
  63 + }
  64 +
  65 + public void setSchoolId(int schoolId) {
  66 + this.schoolId = schoolId;
  67 + }
  68 +
  69 + public Date getInTime() {
  70 + return inTime;
  71 + }
  72 +
  73 + public void setInTime(Date inTime) {
  74 + this.inTime = inTime;
  75 + }
  76 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/xiaoan/SendFailDto.java 0 → 100644
... ... @@ -0,0 +1,215 @@
  1 +package com.sincere.common.dto.xiaoan;
  2 +
  3 +import com.sincere.common.dto.smartCampus.SchoolDto;
  4 +import com.sincere.common.dto.smartCampus.StudentCardDto;
  5 +import com.sincere.common.dto.smartCampus.UpdateCardDto;
  6 +import com.sincere.common.dto.smartCampus.UserDto;
  7 +
  8 +import java.io.Serializable;
  9 +import java.util.Date;
  10 +
  11 +/**
  12 + * @author chen
  13 + * @version 1.0
  14 + * @date 2019/11/12 0012 10:12
  15 + */
  16 +public class SendFailDto implements Serializable {
  17 +
  18 + private String deviceId ;
  19 + private String cardNum ;
  20 + private String oldCardNum ;
  21 + private String cardType ;
  22 + private int customerId ;
  23 + private int userType ;
  24 + private int classId ;
  25 + private String schoolName ;
  26 + private int studentType ;
  27 + private int openFlag ;
  28 + private int status ;
  29 + private int updateId ;
  30 + private Date createTime ;
  31 + private int sex ;
  32 + private String name ;
  33 + private int failType ;
  34 + private String failContent ;
  35 + private int schoolId ;
  36 + private int shiduan ;
  37 +
  38 + public SendFailDto() {
  39 + }
  40 +
  41 + public SendFailDto(UserDto user , SchoolDto school , StudentCardDto studentCard , UpdateCardDto updateCard) {
  42 + if(updateCard != null){
  43 + oldCardNum = updateCard.getOldCard();
  44 + userType = updateCard.getUserType() ;
  45 + }
  46 + if(studentCard != null){
  47 + cardType = studentCard.getCardType();
  48 + }
  49 + if(user != null){
  50 + customerId = user.getStudentId();
  51 + classId = user.getClassId();
  52 + schoolId = user.getSchoolId();
  53 + name = user.getName();
  54 + }
  55 + if(school != null){
  56 + schoolName = school.getSchoolName();
  57 + }
  58 + createTime = new Date();
  59 + studentType =1 ;
  60 + sex = 1;
  61 + }
  62 +
  63 +
  64 + public String getDeviceId() {
  65 + return deviceId;
  66 + }
  67 +
  68 + public void setDeviceId(String deviceId) {
  69 + this.deviceId = deviceId;
  70 + }
  71 +
  72 + public String getCardNum() {
  73 + return cardNum;
  74 + }
  75 +
  76 + public void setCardNum(String cardNum) {
  77 + this.cardNum = cardNum;
  78 + }
  79 +
  80 + public String getOldCardNum() {
  81 + return oldCardNum;
  82 + }
  83 +
  84 + public void setOldCardNum(String oldCardNum) {
  85 + this.oldCardNum = oldCardNum;
  86 + }
  87 +
  88 + public String getCardType() {
  89 + return cardType;
  90 + }
  91 +
  92 + public void setCardType(String cardType) {
  93 + this.cardType = cardType;
  94 + }
  95 +
  96 + public int getCustomerId() {
  97 + return customerId;
  98 + }
  99 +
  100 + public void setCustomerId(int customerId) {
  101 + this.customerId = customerId;
  102 + }
  103 +
  104 + public int getUserType() {
  105 + return userType;
  106 + }
  107 +
  108 + public void setUserType(int userType) {
  109 + this.userType = userType;
  110 + }
  111 +
  112 + public int getClassId() {
  113 + return classId;
  114 + }
  115 +
  116 + public void setClassId(int classId) {
  117 + this.classId = classId;
  118 + }
  119 +
  120 + public String getSchoolName() {
  121 + return schoolName;
  122 + }
  123 +
  124 + public void setSchoolName(String schoolName) {
  125 + this.schoolName = schoolName;
  126 + }
  127 +
  128 + public int getStudentType() {
  129 + return studentType;
  130 + }
  131 +
  132 + public void setStudentType(int studentType) {
  133 + this.studentType = studentType;
  134 + }
  135 +
  136 + public int getOpenFlag() {
  137 + return openFlag;
  138 + }
  139 +
  140 + public void setOpenFlag(int openFlag) {
  141 + this.openFlag = openFlag;
  142 + }
  143 +
  144 + public int getStatus() {
  145 + return status;
  146 + }
  147 +
  148 + public void setStatus(int status) {
  149 + this.status = status;
  150 + }
  151 +
  152 + public int getUpdateId() {
  153 + return updateId;
  154 + }
  155 +
  156 + public void setUpdateId(int updateId) {
  157 + this.updateId = updateId;
  158 + }
  159 +
  160 + public Date getCreateTime() {
  161 + return createTime;
  162 + }
  163 +
  164 + public void setCreateTime(Date createTime) {
  165 + this.createTime = createTime;
  166 + }
  167 +
  168 + public int getSex() {
  169 + return sex;
  170 + }
  171 +
  172 + public void setSex(int sex) {
  173 + this.sex = sex;
  174 + }
  175 +
  176 + public String getName() {
  177 + return name;
  178 + }
  179 +
  180 + public void setName(String name) {
  181 + this.name = name;
  182 + }
  183 +
  184 + public int getFailType() {
  185 + return failType;
  186 + }
  187 +
  188 + public void setFailType(int failType) {
  189 + this.failType = failType;
  190 + }
  191 +
  192 + public String getFailContent() {
  193 + return failContent;
  194 + }
  195 +
  196 + public void setFailContent(String failContent) {
  197 + this.failContent = failContent;
  198 + }
  199 +
  200 + public int getSchoolId() {
  201 + return schoolId;
  202 + }
  203 +
  204 + public void setSchoolId(int schoolId) {
  205 + this.schoolId = schoolId;
  206 + }
  207 +
  208 + public int getShiduan() {
  209 + return shiduan;
  210 + }
  211 +
  212 + public void setShiduan(int shiduan) {
  213 + this.shiduan = shiduan;
  214 + }
  215 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/xiaoan/SendMessageDto.java 0 → 100644
... ... @@ -0,0 +1,94 @@
  1 +package com.sincere.common.dto.xiaoan;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/11/12 0012 9:37
  10 + */
  11 +public class SendMessageDto implements Serializable {
  12 +
  13 + private long id ;
  14 + private String deviceId ;
  15 + private String cardNo ;
  16 + private long index ;
  17 + private String send ;
  18 + private String result ;
  19 + private int correct ;
  20 + private Date createTime ;
  21 + private String functionId ;
  22 +
  23 + public long getId() {
  24 + return id;
  25 + }
  26 +
  27 + public void setId(long id) {
  28 + this.id = id;
  29 + }
  30 +
  31 + public String getDeviceId() {
  32 + return deviceId;
  33 + }
  34 +
  35 + public void setDeviceId(String deviceId) {
  36 + this.deviceId = deviceId;
  37 + }
  38 +
  39 + public String getCardNo() {
  40 + return cardNo;
  41 + }
  42 +
  43 + public void setCardNo(String cardNo) {
  44 + this.cardNo = cardNo;
  45 + }
  46 +
  47 + public long getIndex() {
  48 + return index;
  49 + }
  50 +
  51 + public void setIndex(long index) {
  52 + this.index = index;
  53 + }
  54 +
  55 + public String getSend() {
  56 + return send;
  57 + }
  58 +
  59 + public void setSend(String send) {
  60 + this.send = send;
  61 + }
  62 +
  63 + public String getResult() {
  64 + return result;
  65 + }
  66 +
  67 + public void setResult(String result) {
  68 + this.result = result;
  69 + }
  70 +
  71 + public int getCorrect() {
  72 + return correct;
  73 + }
  74 +
  75 + public void setCorrect(int correct) {
  76 + this.correct = correct;
  77 + }
  78 +
  79 + public Date getCreateTime() {
  80 + return createTime;
  81 + }
  82 +
  83 + public void setCreateTime(Date createTime) {
  84 + this.createTime = createTime;
  85 + }
  86 +
  87 + public String getFunctionId() {
  88 + return functionId;
  89 + }
  90 +
  91 + public void setFunctionId(String functionId) {
  92 + this.functionId = functionId;
  93 + }
  94 +}
... ...
cloud/common/src/main/java/com/sincere/common/dto/xiaoan/SendSuccessDto.java 0 → 100644
... ... @@ -0,0 +1,196 @@
  1 +package com.sincere.common.dto.xiaoan;
  2 +
  3 +import com.sincere.common.dto.smartCampus.SchoolDto;
  4 +import com.sincere.common.dto.smartCampus.StudentCardDto;
  5 +import com.sincere.common.dto.smartCampus.UpdateCardDto;
  6 +import com.sincere.common.dto.smartCampus.UserDto;
  7 +
  8 +import java.io.Serializable;
  9 +import java.util.Date;
  10 +
  11 +/**
  12 + * @author chen
  13 + * @version 1.0
  14 + * @date 2019/11/12 0012 10:06
  15 + */
  16 +public class SendSuccessDto implements Serializable {
  17 +
  18 + private String deviceId ;
  19 + private String cardNum ;
  20 + private String oldCardNum ;
  21 + private String cardType ;
  22 + private int customerId ;
  23 + private int userType ;
  24 + private int classId ;
  25 + private String schoolName ;
  26 + private int studentType ;
  27 + private int openFlag ;
  28 + private int status ;
  29 + private int updateId ;
  30 + private Date createTime ;
  31 + private int sex ;
  32 + private String name ;
  33 + private int schoolId ;
  34 + private int shiduan ;
  35 +
  36 + public SendSuccessDto() {
  37 + }
  38 +
  39 + public SendSuccessDto(UserDto user , SchoolDto school , StudentCardDto studentCard , UpdateCardDto updateCard) {
  40 + if(updateCard != null){
  41 + oldCardNum = updateCard.getOldCard();
  42 + userType = updateCard.getUserType() ;
  43 + }
  44 + if(studentCard != null){
  45 + cardType = studentCard.getCardType();
  46 + }
  47 + if(user != null){
  48 + customerId = user.getStudentId();
  49 + classId = user.getClassId();
  50 + schoolId = user.getSchoolId();
  51 + name = user.getName();
  52 + }
  53 + if(school != null){
  54 + schoolName = school.getSchoolName();
  55 + }
  56 + createTime = new Date();
  57 + studentType =1 ;
  58 + sex = 1;
  59 + }
  60 +
  61 + public String getDeviceId() {
  62 + return deviceId;
  63 + }
  64 +
  65 + public void setDeviceId(String deviceId) {
  66 + this.deviceId = deviceId;
  67 + }
  68 +
  69 + public String getCardNum() {
  70 + return cardNum;
  71 + }
  72 +
  73 + public void setCardNum(String cardNum) {
  74 + this.cardNum = cardNum;
  75 + }
  76 +
  77 + public String getOldCardNum() {
  78 + return oldCardNum;
  79 + }
  80 +
  81 + public void setOldCardNum(String oldCardNum) {
  82 + this.oldCardNum = oldCardNum;
  83 + }
  84 +
  85 + public String getCardType() {
  86 + return cardType;
  87 + }
  88 +
  89 + public void setCardType(String cardType) {
  90 + this.cardType = cardType;
  91 + }
  92 +
  93 + public int getCustomerId() {
  94 + return customerId;
  95 + }
  96 +
  97 + public void setCustomerId(int customerId) {
  98 + this.customerId = customerId;
  99 + }
  100 +
  101 + public int getUserType() {
  102 + return userType;
  103 + }
  104 +
  105 + public void setUserType(int userType) {
  106 + this.userType = userType;
  107 + }
  108 +
  109 + public int getClassId() {
  110 + return classId;
  111 + }
  112 +
  113 + public void setClassId(int classId) {
  114 + this.classId = classId;
  115 + }
  116 +
  117 + public String getSchoolName() {
  118 + return schoolName;
  119 + }
  120 +
  121 + public void setSchoolName(String schoolName) {
  122 + this.schoolName = schoolName;
  123 + }
  124 +
  125 + public int getStudentType() {
  126 + return studentType;
  127 + }
  128 +
  129 + public void setStudentType(int studentType) {
  130 + this.studentType = studentType;
  131 + }
  132 +
  133 + public int getOpenFlag() {
  134 + return openFlag;
  135 + }
  136 +
  137 + public void setOpenFlag(int openFlag) {
  138 + this.openFlag = openFlag;
  139 + }
  140 +
  141 + public int getStatus() {
  142 + return status;
  143 + }
  144 +
  145 + public void setStatus(int status) {
  146 + this.status = status;
  147 + }
  148 +
  149 + public int getUpdateId() {
  150 + return updateId;
  151 + }
  152 +
  153 + public void setUpdateId(int updateId) {
  154 + this.updateId = updateId;
  155 + }
  156 +
  157 + public Date getCreateTime() {
  158 + return createTime;
  159 + }
  160 +
  161 + public void setCreateTime(Date createTime) {
  162 + this.createTime = createTime;
  163 + }
  164 +
  165 + public int getSex() {
  166 + return sex;
  167 + }
  168 +
  169 + public void setSex(int sex) {
  170 + this.sex = sex;
  171 + }
  172 +
  173 + public String getName() {
  174 + return name;
  175 + }
  176 +
  177 + public void setName(String name) {
  178 + this.name = name;
  179 + }
  180 +
  181 + public int getSchoolId() {
  182 + return schoolId;
  183 + }
  184 +
  185 + public void setSchoolId(int schoolId) {
  186 + this.schoolId = schoolId;
  187 + }
  188 +
  189 + public int getShiduan() {
  190 + return shiduan;
  191 + }
  192 +
  193 + public void setShiduan(int shiduan) {
  194 + this.shiduan = shiduan;
  195 + }
  196 +}
... ...
cloud/common/src/main/java/com/sincere/common/entity/SysUser.java
... ... @@ -1,99 +0,0 @@
1   -package com.sincere.common.entity;
2   -
3   -
4   -import lombok.Data;
5   -import lombok.experimental.Accessors;
6   -
7   -import java.time.LocalDateTime;
8   -
9   -/**
10   - * <p>
11   - * 用户表
12   - * </p>
13   - *
14   - * @author yukong
15   - * @since 2018-10-08
16   - */
17   -@Data
18   -@Accessors(chain = true)
19   -public class SysUser {
20   -
21   - private static final long serialVersionUID = 1L;
22   -
23   - /**
24   - * 主键ID
25   - */
26   - private Integer userId;
27   -
28   - /**
29   - * 用户名
30   - */
31   - private String username;
32   -
33   - /**
34   - * 密码
35   - */
36   - private String password;
37   -
38   - /**
39   - * 邮箱
40   - */
41   - private String email;
42   -
43   - /**
44   - * 手机号码
45   - */
46   - private String mobile;
47   -
48   - /**
49   - * qq号码
50   - */
51   - private String qq;
52   -
53   - /**
54   - * 微信号码
55   - */
56   - private String wechat;
57   -
58   - /**
59   - * 微博url
60   - */
61   - private String weibo;
62   -
63   - /**
64   - * 头像url
65   - */
66   - private String avatar;
67   -
68   - /**
69   - * qq openid
70   - */
71   - private String qqOpenid;
72   -
73   - /**
74   - * 微信openid
75   - */
76   - private String wechatOpenid;
77   -
78   - /**
79   - * 微博openid
80   - */
81   - private String weiboOpenid;
82   -
83   - /**
84   - * 创建时间
85   - */
86   - private LocalDateTime createTime;
87   -
88   - /**
89   - * 更新时间
90   - */
91   - private LocalDateTime modifyTime;
92   -
93   - /**
94   - * 是否删除 0-未删除 1-删除
95   - */
96   - private String delFlag;
97   -
98   -
99   -}
cloud/common/src/main/java/com/sincere/common/enums/ApiErrorCodeEnum.java
1 1 package com.sincere.common.enums;
2   -
3   -
4   -import com.baomidou.mybatisplus.extension.api.IErrorCode;
5   -
6 2 /**
7 3 * @author yukong
8 4 * @date 2019-04-20 18:54
9 5 */
10   -public enum ApiErrorCodeEnum implements IErrorCode {
  6 +public enum ApiErrorCodeEnum{
11 7 /**
12 8 * 失败
13 9 */
... ... @@ -40,17 +36,14 @@ public enum ApiErrorCodeEnum implements IErrorCode {
40 36 return SUCCESS;
41 37 }
42 38  
43   - @Override
44 39 public long getCode() {
45 40 return code;
46 41 }
47 42  
48   - @Override
49 43 public String getMsg() {
50 44 return msg;
51 45 }
52 46  
53   - @Override
54 47 public String toString() {
55 48 return String.format(" ErrorCode:{code=%s, msg=%s} ", code, msg);
56 49 }
... ...
cloud/common/src/main/java/com/sincere/common/enums/DifficultEnums.java 0 → 100644
... ... @@ -0,0 +1,66 @@
  1 +package com.sincere.common.enums;
  2 +
  3 +/**
  4 + * 学情分析 题目困难程度
  5 + * @author chen
  6 + * @version 1.0 1
  7 + * @date 2019/10/18 0018 8:40
  8 + */
  9 +public enum DifficultEnums {
  10 +
  11 + easy(1,"易","认知"),
  12 + medium(2,"中","理解"),
  13 + difficult(3,"难","应用");
  14 +
  15 + private int difficultType ;
  16 + private String difficultName ;
  17 + private String difficultShow ;
  18 +
  19 + DifficultEnums(int difficultType, String difficultName, String difficultShow) {
  20 + this.difficultType = difficultType;
  21 + this.difficultName = difficultName;
  22 + this.difficultShow = difficultShow;
  23 + }
  24 +
  25 + public String getDifficultShow() {
  26 + return difficultShow;
  27 + }
  28 +
  29 + public void setDifficultShow(String difficultShow) {
  30 + this.difficultShow = difficultShow;
  31 + }
  32 +
  33 + public int getDifficultType() {
  34 + return difficultType;
  35 + }
  36 +
  37 + public void setDifficultType(int difficultType) {
  38 + this.difficultType = difficultType;
  39 + }
  40 +
  41 + public String getDifficultName() {
  42 + return difficultName;
  43 + }
  44 +
  45 + public void setDifficultName(String difficultName) {
  46 + this.difficultName = difficultName;
  47 + }
  48 +
  49 + public static int getDifficultType(String difficultName){
  50 + for (DifficultEnums difficultEnums : DifficultEnums.values()) {
  51 + if (difficultEnums.getDifficultName().equals(difficultName)) {
  52 + return difficultEnums.getDifficultType();
  53 + }
  54 + }
  55 + return 0 ;
  56 + }
  57 +
  58 + public static String getDifficultName(int difficultType){
  59 + for (DifficultEnums difficultEnums : DifficultEnums.values()) {
  60 + if (difficultEnums.getDifficultType() == difficultType) {
  61 + return difficultEnums.getDifficultName();
  62 + }
  63 + }
  64 + return "" ;
  65 + }
  66 +}
... ...
cloud/common/src/main/java/com/sincere/common/enums/DimensionalEnums.java 0 → 100644
... ... @@ -0,0 +1,38 @@
  1 +package com.sincere.common.enums;
  2 +
  3 +/**
  4 + * 学情分析 四维细目
  5 + * @author chen
  6 + * @version 1.0
  7 + * @date 2019/10/18 0018 8:33
  8 + */
  9 +public enum DimensionalEnums {
  10 + knowledge(1,"知识点"),
  11 + ability(2,"能力"),
  12 + skill(3,"技能"),
  13 + think(4,"四维");
  14 +
  15 + private int dimensionalType ;
  16 + private String dimensionalName ;
  17 +
  18 + DimensionalEnums(int dimensionalType, String dimensionalName) {
  19 + this.dimensionalType = dimensionalType;
  20 + this.dimensionalName = dimensionalName;
  21 + }
  22 +
  23 + public int getDimensionalType() {
  24 + return dimensionalType;
  25 + }
  26 +
  27 + public void setDimensionalType(int dimensionalType) {
  28 + this.dimensionalType = dimensionalType;
  29 + }
  30 +
  31 + public String getDimensionalName() {
  32 + return dimensionalName;
  33 + }
  34 +
  35 + public void setDimensionalName(String dimensionalName) {
  36 + this.dimensionalName = dimensionalName;
  37 + }
  38 +}
... ...
cloud/common/src/main/java/com/sincere/common/model/log/SysLog.java
... ... @@ -1,37 +0,0 @@
1   -package com.sincere.common.model.log;
2   -
3   -import lombok.AllArgsConstructor;
4   -import lombok.Builder;
5   -import lombok.Data;
6   -import lombok.NoArgsConstructor;
7   -
8   -import java.io.Serializable;
9   -import java.util.Date;
10   -
11   -
12   -/**
13   -* @author 作者 owen E-mail: 624191343@qq.com
14   -* @version 创建时间:2017年11月12日 上午22:57:51
15   -* 日志实体
16   - */
17   -@Builder
18   -@Data
19   -@NoArgsConstructor
20   -@AllArgsConstructor
21   -public class SysLog implements Serializable {
22   -
23   - private static final long serialVersionUID = -5398795297842978376L;
24   -
25   - private Long id;
26   -// 用户名
27   - private String username;
28   -// 归属模块
29   - private String module;
30   -// 执行方法的参数值
31   - private String params;
32   - private String remark;
33   -// 是否执行成功
34   - private Boolean flag;
35   -
36   - private Date createTime;
37   -}
cloud/common/src/main/java/com/sincere/common/model/system/LoginAppUser.java
... ... @@ -1,93 +0,0 @@
1   -package com.sincere.common.model.system;
2   -
3   -import com.fasterxml.jackson.annotation.JsonIgnore;
4   -import lombok.Getter;
5   -import lombok.Setter;
6   -import org.springframework.security.core.GrantedAuthority;
7   -import org.springframework.security.core.authority.SimpleGrantedAuthority;
8   -import org.springframework.security.core.userdetails.UserDetails;
9   -import org.springframework.util.CollectionUtils;
10   -
11   -import java.io.Serializable;
12   -import java.util.Collection;
13   -import java.util.HashSet;
14   -import java.util.Set;
15   -
16   -/**
17   - * 用户实体绑定spring security
18   - */
19   -@Getter
20   -@Setter
21   -public class LoginAppUser extends SysUser implements UserDetails {
22   -
23   - /**
24   - *
25   - */
26   - private static final long serialVersionUID = -3685249101751401211L;
27   -
28   - private Set<SysRole> sysRoles;
29   -
30   - private Set<String> permissions;
31   -
32   - /***
33   - * 权限重写
34   - */
35   - @JsonIgnore
36   - @Override
37   - public Collection<? extends GrantedAuthority> getAuthorities() {
38   - Collection<GrantedAuthority> collection = new HashSet<>();
39   - if (!CollectionUtils.isEmpty(sysRoles)) {
40   - sysRoles.parallelStream().forEach(role -> {
41   - if (role.getCode().startsWith("ROLE_")) {
42   - collection.add(new SimpleGrantedAuthority(role.getCode()));
43   - } else {
44   - collection.add(new SimpleGrantedAuthority("ROLE_" + role.getCode()));
45   - }
46   - });
47   - }
48   -
49   - if (!CollectionUtils.isEmpty(permissions)) {
50   - permissions.parallelStream().forEach(per -> {
51   - collection.add(new SimpleGrantedAuthority(per));
52   - });
53   - }
54   -
55   - return collection;
56   - }
57   -
58   -
59   - @JsonIgnore
60   - public Collection<? extends GrantedAuthority> putAll( Collection<GrantedAuthority> collections) {
61   - Collection<GrantedAuthority> collection = new HashSet<>();
62   -
63   - collection.addAll(collections) ;
64   -
65   - return collection;
66   - }
67   -
68   -
69   - @Override
70   - public boolean isAccountNonExpired() {
71   - return true;
72   - }
73   -
74   - @Override
75   - public boolean isAccountNonLocked() {
76   - return true;
77   - }
78   -
79   - @Override
80   - public boolean isCredentialsNonExpired() {
81   - return true;
82   - }
83   -
84   - @Override
85   - public boolean isEnabled() {
86   - return getEnabled();
87   - }
88   -
89   - @Override
90   - protected Serializable pkVal() {
91   - return null;
92   - }
93   -}
cloud/common/src/main/java/com/sincere/common/model/system/SysMenu.java
... ... @@ -1,37 +0,0 @@
1   -package com.sincere.common.model.system;
2   -
3   -import com.fasterxml.jackson.databind.annotation.JsonSerialize;
4   -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
5   -import lombok.Data;
6   -
7   -import java.io.Serializable;
8   -import java.util.Date;
9   -import java.util.List;
10   -import java.util.Set;
11   -
12   -@Data
13   -public class SysMenu implements Serializable {
14   -
15   - private static final long serialVersionUID = 749360940290141180L;
16   - @JsonSerialize(using= ToStringSerializer.class)
17   - private Long id;
18   - private Long parentId;
19   - private String name;
20   - private String css;
21   - private String url;
22   - private String path;
23   - private Integer sort;
24   - private Date createTime;
25   - private Date updateTime;
26   - private Integer isMenu;
27   - private Boolean hidden;
28   -
29   -
30   - private List<SysMenu> subMenus;
31   -
32   - private Long roleId;
33   - private Set<Long> menuIds;
34   -
35   -
36   -
37   -}
cloud/common/src/main/java/com/sincere/common/model/system/SysPermission.java
... ... @@ -1,47 +0,0 @@
1   -package com.sincere.common.model.system;
2   -
3   -import com.baomidou.mybatisplus.annotation.IdType;
4   -import com.baomidou.mybatisplus.annotation.TableField;
5   -import com.baomidou.mybatisplus.annotation.TableId;
6   -import com.baomidou.mybatisplus.annotation.TableName;
7   -import com.baomidou.mybatisplus.extension.activerecord.Model;
8   -import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9   -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
10   -import lombok.Data;
11   -
12   -import java.io.Serializable;
13   -import java.util.Date;
14   -import java.util.Set;
15   -
16   -
17   -/**
18   - * @author 作者 owen E-mail: 624191343@qq.com
19   - * @version 创建时间:2017年11月12日 上午22:57:51
20   - * 权限标识
21   - */
22   -@Data
23   -@TableName("sys_permission")
24   -public class SysPermission extends Model<SysPermission> implements Serializable {
25   - /**
26   - *
27   - */
28   - private static final long serialVersionUID = 1389727646460449239L;
29   - @TableId(value="id",type= IdType.ID_WORKER) //雪花算法 id生成策略
30   - @JsonSerialize(using= ToStringSerializer.class)
31   - private Long id;
32   - private String permission;
33   - private String name;
34   - @TableField(value="createTime")
35   - private Date createTime;
36   - @TableField(value="updateTime")
37   - private Date updateTime;
38   - @TableField(exist=false)
39   - private Long roleId;
40   - @TableField(exist=false)
41   - private Set<Long> authIds;
42   -
43   - @Override
44   - protected Serializable pkVal() {
45   - return null;
46   - }
47   -}
cloud/common/src/main/java/com/sincere/common/model/system/SysRole.java
... ... @@ -1,29 +0,0 @@
1   -package com.sincere.common.model.system;
2   -
3   -import com.fasterxml.jackson.databind.annotation.JsonSerialize;
4   -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
5   -import lombok.Data;
6   -
7   -import java.io.Serializable;
8   -import java.util.Date;
9   -
10   -/**
11   - * @author 作者 owen E-mail: 624191343@qq.com
12   - * @version 创建时间:2017年11月12日 上午22:57:51
13   - * 角色
14   - */
15   -@Data
16   -public class SysRole implements Serializable {
17   -
18   - /**
19   - *
20   - */
21   - private static final long serialVersionUID = 4497149010220586111L;
22   - @JsonSerialize(using= ToStringSerializer.class)
23   - private Long id;
24   - private String code;
25   - private String name;
26   - private Date createTime;
27   - private Date updateTime;
28   - private Long userId;
29   -}
cloud/common/src/main/java/com/sincere/common/model/system/SysUser.java
... ... @@ -1,60 +0,0 @@
1   -package com.sincere.common.model.system;
2   -
3   -import com.baomidou.mybatisplus.annotation.IdType;
4   -import com.baomidou.mybatisplus.annotation.TableField;
5   -import com.baomidou.mybatisplus.annotation.TableId;
6   -import com.baomidou.mybatisplus.annotation.TableName;
7   -import com.baomidou.mybatisplus.extension.activerecord.Model;
8   -import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9   -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
10   -import lombok.Data;
11   -
12   -import java.io.Serializable;
13   -import java.util.Date;
14   -import java.util.List;
15   -
16   -/**
17   - * @author 作者 owen E-mail: 624191343@qq.com
18   - * @version 创建时间:2017年11月12日 上午22:57:51
19   - * 用户实体
20   - */
21   -@Data
22   -@TableName("sys_user")
23   -public class SysUser extends Model<SysUser> implements Serializable {
24   -
25   - /**
26   - *
27   - */
28   - private static final long serialVersionUID = -5886012896705137070L;
29   - @TableId(value="id",type= IdType.ID_WORKER) //雪花算法 id生成策略
30   - @JsonSerialize(using= ToStringSerializer.class)
31   - private Long id;
32   - private String username;
33   - private String password;
34   - private String nickname;
35   - private String headImgUrl;
36   - private String phone;
37   - private Integer sex;
38   - private Boolean enabled;
39   - private String type;
40   - @TableField(value="createTime")
41   - private Date createTime;
42   - @TableField(value="updateTime")
43   - private Date updateTime;
44   -
45   - @TableField(exist=false)
46   - private List<SysRole> roles;
47   -
48   - @TableField(exist=false)
49   - private String roleId;
50   -
51   - @TableField(exist=false)
52   - private String oldPassword;
53   - @TableField(exist=false)
54   - private String newPassword;
55   -
56   - @Override
57   - protected Serializable pkVal() {
58   - return null;
59   - }
60   -}
cloud/common/src/main/java/com/sincere/common/model/system/SysUserRole.java
... ... @@ -1,18 +0,0 @@
1   -package com.sincere.common.model.system;
2   -
3   -import lombok.Data;
4   -
5   -/**
6   - * @Author: [gitgeek]
7   - * @Date: [2018-08-06 21:29]
8   - * @Description: [ ]
9   - * @Version: [1.0.0]
10   - * @Copy: [com.zzg]
11   - */
12   -@Data
13   -public class SysUserRole {
14   -
15   - private String userId;
16   - private String roleId;
17   -
18   -}
cloud/common/src/main/java/com/sincere/common/model/system/constants/UserType.java
... ... @@ -1,19 +0,0 @@
1   -package com.sincere.common.model.system.constants;
2   -
3   -
4   -/**
5   - * @author 作者 owen E-mail: 624191343@qq.com
6   - * @version 创建时间:2017年11月12日 上午22:57:51
7   - * 用户类型
8   - */
9   -public enum UserType {
10   -
11   - /**
12   - * 前端app用户
13   - */
14   - APP,
15   - /**
16   - * 后端管理用户
17   - */
18   - BACKEND
19   -}
cloud/common/src/main/java/com/sincere/common/util/DateUtils.java 0 → 100644
... ... @@ -0,0 +1,67 @@
  1 +package com.sincere.common.util;
  2 +
  3 +import java.text.ParseException;
  4 +import java.text.SimpleDateFormat;
  5 +import java.util.Date;
  6 +
  7 +/**
  8 + * @author chen
  9 + * @version 1.0
  10 + * @date 2019/10/14 0014 14:16
  11 + */
  12 +public class DateUtils {
  13 +
  14 + public static String format = "yyyy";
  15 +
  16 + public static String format1 = "yyyy-MM-dd";
  17 +
  18 + public static String format2 = "yyyy-MM-dd HH:mm:ss";
  19 +
  20 + public static long getDate(){
  21 + return System.currentTimeMillis();
  22 + }
  23 +
  24 + public static String date2String(Date date, String format) {
  25 + SimpleDateFormat sdf = new SimpleDateFormat(format);
  26 + return sdf.format(date);
  27 + }
  28 +
  29 + public static Date string2Date(String date, String format) {
  30 + try{
  31 + SimpleDateFormat sdf = new SimpleDateFormat(format);
  32 + return sdf.parse(date);
  33 + }catch (Exception e){
  34 +
  35 + }
  36 + return new Date();
  37 + }
  38 +
  39 + public static Date getToday(){
  40 + return new Date();
  41 + }
  42 +
  43 + public static String getToday(String format) throws ParseException{
  44 + SimpleDateFormat sdf = new SimpleDateFormat(format);
  45 + return sdf.format(new Date());
  46 + }
  47 +
  48 + public static int getDateDifference(Date date1, Date date2, String timeType) {
  49 + int between = (int) (date1.getTime() - date2.getTime());
  50 + int difference = 0;
  51 + switch (timeType) {
  52 + case "day":
  53 + difference = between / (24 * 60 * 60 * 1000);
  54 + break;
  55 + case "hour":
  56 + difference = between / (60 * 60 * 1000);
  57 + break;
  58 + case "min":
  59 + difference = between / (60 * 1000);
  60 + break;
  61 + case "s":
  62 + difference = between / 1000;
  63 + }
  64 + return difference;
  65 + }
  66 +
  67 +}
... ...
cloud/common/src/main/java/com/sincere/common/util/ExcelUtils.java 0 → 100644
... ... @@ -0,0 +1,147 @@
  1 +package com.sincere.common.util;
  2 +
  3 +import com.google.common.base.Strings;
  4 +import org.apache.commons.lang3.StringUtils;
  5 +import org.apache.poi.hssf.usermodel.HSSFCell;
  6 +import org.apache.poi.hssf.usermodel.HSSFRow;
  7 +import org.apache.poi.hssf.usermodel.HSSFSheet;
  8 +import org.apache.poi.hssf.usermodel.HSSFWorkbook;
  9 +
  10 +import javax.servlet.http.HttpServletRequest;
  11 +import javax.servlet.http.HttpServletResponse;
  12 +import java.io.IOException;
  13 +import java.io.OutputStream;
  14 +import java.math.BigDecimal;
  15 +import java.util.List;
  16 +import java.util.Map;
  17 +
  18 +/**
  19 + * @author chen
  20 + * @version 1.0
  21 + * @date 2019/10/16 0016 18:46
  22 + */
  23 +public class ExcelUtils {
  24 +
  25 + //各个列的表头
  26 + private List<String> heardList;
  27 + //各个列的元素key值
  28 + private List<String> heardKey;
  29 + //需要填充的数据信息
  30 + private List<Map<String,String>> data;
  31 + //工作表
  32 + private String sheetName = "模板";
  33 +
  34 +
  35 + public List<String> getHeardList() {
  36 + return heardList;
  37 + }
  38 +
  39 + public void setHeardList(List<String> heardList) {
  40 + this.heardList = heardList;
  41 + }
  42 +
  43 + public List<String> getHeardKey() {
  44 + return heardKey;
  45 + }
  46 +
  47 + public void setHeardKey(List<String> heardKey) {
  48 + this.heardKey = heardKey;
  49 + }
  50 +
  51 + public List<Map<String, String>> getData() {
  52 + return data;
  53 + }
  54 +
  55 + public void setData(List<Map<String, String>> data) {
  56 + this.data = data;
  57 + }
  58 +
  59 + public String getSheetName() {
  60 + return sheetName;
  61 + }
  62 +
  63 + public void setSheetName(String sheetName) {
  64 + this.sheetName = sheetName;
  65 + }
  66 +
  67 + /**
  68 + * 开始导出数据信息
  69 + *
  70 + */
  71 + public byte[] exportExport(HttpServletRequest request, HttpServletResponse response) throws IOException {
  72 + //检查参数配置信息
  73 + checkConfig();
  74 + //创建工作簿
  75 + HSSFWorkbook wb = new HSSFWorkbook();
  76 + //创建工作表
  77 + HSSFSheet wbSheet = wb.createSheet(this.sheetName);
  78 +
  79 + //在第0行创建rows
  80 + HSSFRow row = wbSheet.createRow((int)0);
  81 + //设置列头元素
  82 + HSSFCell cellHead = null;
  83 + for (int i = 0; i < heardList.size(); i++) {
  84 + cellHead = row.createCell(i);
  85 + cellHead.setCellValue(heardList.get(i));
  86 + }
  87 + //开始写入实体数据信息
  88 + int a = 1;
  89 + for (int i = 0; i < data.size(); i++) {
  90 + HSSFRow roww = wbSheet.createRow((int) a);
  91 + Map map = data.get(i);
  92 + HSSFCell cell = null;
  93 + for (int j = 0; j < heardKey.size(); j++) {
  94 + cell = roww.createCell(j);
  95 + Object valueObject = map.get(heardKey.get(j));
  96 + String value = null;
  97 + if (valueObject == null) {
  98 + valueObject = "";
  99 + }
  100 + if (valueObject instanceof String) {
  101 + //取出的数据是字符串直接赋值
  102 + value = (String) map.get(heardKey.get(j));
  103 + } else if (valueObject instanceof Integer) {
  104 + //取出的数据是Integer
  105 + value = String.valueOf(((Integer) (valueObject)).floatValue());
  106 + } else if (valueObject instanceof BigDecimal) {
  107 + //取出的数据是BigDecimal
  108 + value = String.valueOf(((BigDecimal) (valueObject)).floatValue());
  109 + } else {
  110 + value = valueObject.toString();
  111 + }
  112 + cell.setCellValue(Strings.isNullOrEmpty(value) ? "" : value);
  113 + }
  114 + a++;
  115 + }
  116 +
  117 + //导出数据
  118 + try {
  119 + //设置Http响应头告诉浏览器下载这个附件
  120 + response.setHeader("Content-Disposition", "attachment;Filename=" + System.currentTimeMillis() + ".xls");
  121 + OutputStream outputStream = response.getOutputStream();
  122 + wb.write(outputStream);
  123 + outputStream.flush();
  124 + outputStream.close();
  125 + return wb.getBytes();
  126 + } catch (Exception ex) {
  127 + ex.printStackTrace();
  128 + throw new IOException("导出Excel出现严重异常,异常信息:" + ex.getMessage());
  129 + }
  130 +
  131 + }
  132 +
  133 + /**
  134 + * 检查数据配置问题
  135 + *
  136 + * @throws IOException 抛出数据异常类
  137 + */
  138 + protected void checkConfig() throws IOException {
  139 + if (heardKey == null || heardList.size() == 0) {
  140 + throw new IOException("列名数组不能为空或者为NULL");
  141 + }
  142 + if (StringUtils.isBlank(sheetName)) {
  143 + throw new IOException("工作表表名不能为NULL");
  144 + }
  145 + }
  146 +
  147 +}
... ...
cloud/common/src/main/java/com/sincere/common/util/HttpClientUtils.java 0 → 100644
... ... @@ -0,0 +1,164 @@
  1 +package com.sincere.common.util;
  2 +
  3 +import com.alibaba.fastjson.JSONObject;
  4 +import org.apache.http.HttpEntity;
  5 +import org.apache.http.HttpStatus;
  6 +import org.apache.http.client.config.RequestConfig;
  7 +import org.apache.http.client.methods.CloseableHttpResponse;
  8 +import org.apache.http.client.methods.HttpGet;
  9 +import org.apache.http.client.methods.HttpPost;
  10 +import org.apache.http.entity.StringEntity;
  11 +import org.apache.http.impl.client.CloseableHttpClient;
  12 +import org.apache.http.impl.client.HttpClients;
  13 +import org.apache.http.util.EntityUtils;
  14 +
  15 +import java.io.IOException;
  16 +import java.io.InputStream;
  17 +import java.net.HttpURLConnection;
  18 +import java.net.URL;
  19 +
  20 +/**
  21 + * HttpClient4.3工具类
  22 + * @author chen
  23 + * @version 1.0
  24 + * @date 2019/10/11 0011 10:17
  25 + */
  26 +public class HttpClientUtils {
  27 +
  28 + private static RequestConfig requestConfig = null;
  29 +
  30 + static
  31 + {
  32 + // 设置请求和传输超时时间
  33 + requestConfig = RequestConfig.custom().setSocketTimeout(2000).setConnectTimeout(2000).build();
  34 + }
  35 +
  36 + public static void main(String[] args){
  37 + JSONObject teacherList = HttpClientUtils.httpGet("http://60.190.202.57:1000/api/EasyN/GetSchoolSubject?SchoolId=1");
  38 + System.out.println("1");
  39 + }
  40 +
  41 + /**
  42 + * post请求传输json参数
  43 + * @param url url地址
  44 + * @param jsonParam 参数
  45 + * @return
  46 + */
  47 + public static JSONObject httpPost(String url, JSONObject jsonParam) {
  48 + // post请求返回结果
  49 + CloseableHttpClient httpClient = HttpClients.createDefault();
  50 + JSONObject jsonResult = null;
  51 + HttpPost httpPost = new HttpPost(url);
  52 + // 设置请求和传输超时时间
  53 + httpPost.setConfig(requestConfig);
  54 + try {
  55 + if (null != jsonParam) {
  56 + // 解决中文乱码问题
  57 + StringEntity entity = new StringEntity(jsonParam.toString(), "utf-8");
  58 + entity.setContentEncoding("UTF-8");
  59 + entity.setContentType("application/json");
  60 + httpPost.setEntity(entity);
  61 + }
  62 + CloseableHttpResponse result = httpClient.execute(httpPost);
  63 + // 请求发送成功,并得到响应
  64 + if (result.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
  65 + String str = "";
  66 + // 读取服务器返回过来的json字符串数据
  67 + str = EntityUtils.toString(result.getEntity(), "utf-8");
  68 + // 把json字符串转换成json对象
  69 + jsonResult = JSONObject.parseObject(str);
  70 +
  71 + }
  72 + } catch (IOException e) {
  73 +
  74 + } finally {
  75 + httpPost.releaseConnection();
  76 + }
  77 + return jsonResult;
  78 + }
  79 +
  80 + /**
  81 + * post请求传输String参数 例如:name=Jack&sex=1&type=2
  82 + * Content-type:application/x-www-form-urlencoded
  83 + * @param url url地址
  84 + * @param strParam 参数
  85 + * @return
  86 + */
  87 + public static JSONObject httpPost(String url, String strParam) {
  88 + // post请求返回结果
  89 + CloseableHttpClient httpClient = HttpClients.createDefault();
  90 + JSONObject jsonResult = null;
  91 + HttpPost httpPost = new HttpPost(url);
  92 + httpPost.setConfig(requestConfig);
  93 + try {
  94 + if (null != strParam) {
  95 + // 解决中文乱码问题
  96 + StringEntity entity = new StringEntity(strParam, "utf-8");
  97 + entity.setContentEncoding("UTF-8");
  98 + entity.setContentType("application/x-www-form-urlencoded");
  99 + httpPost.setEntity(entity);
  100 + }
  101 + CloseableHttpResponse result = httpClient.execute(httpPost);
  102 + // 请求发送成功,并得到响应
  103 + if (result.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
  104 + String str = "";
  105 + // 读取服务器返回过来的json字符串数据
  106 + str = EntityUtils.toString(result.getEntity(), "utf-8");
  107 + // 把json字符串转换成json对象
  108 + jsonResult = JSONObject.parseObject(str);
  109 + }
  110 + } catch (IOException e) {
  111 +
  112 + } finally {
  113 + httpPost.releaseConnection();
  114 + }
  115 + return jsonResult;
  116 + }
  117 +
  118 + /**
  119 + * 发送get请求
  120 + * @param url 路径
  121 + * @return
  122 + */
  123 + public static JSONObject httpGet(String url) {
  124 + // get请求返回结果
  125 + JSONObject jsonResult = null;
  126 + CloseableHttpClient client = HttpClients.createDefault();
  127 + // 发送get请求
  128 + HttpGet request = new HttpGet(url);
  129 + request.setConfig(requestConfig);
  130 + try {
  131 + CloseableHttpResponse response = client.execute(request);
  132 + // 请求发送成功,并得到响应
  133 + if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
  134 + // 读取服务器返回过来的json字符串数据
  135 + HttpEntity entity = response.getEntity();
  136 + String strResult = EntityUtils.toString(entity, "utf-8");
  137 + // 把json字符串转换成json对象
  138 + jsonResult = JSONObject.parseObject(strResult);
  139 + }
  140 + } catch (IOException e) {
  141 +
  142 + } finally {
  143 + request.releaseConnection();
  144 + }
  145 + return jsonResult;
  146 + }
  147 +
  148 +
  149 + public static InputStream GetFileInputStream(String fileUrl){
  150 + try{
  151 + URL url = new URL(fileUrl);
  152 + HttpURLConnection conn = (HttpURLConnection)url.openConnection();
  153 + //设置超时间为3秒
  154 + conn.setConnectTimeout(8*1000);
  155 + //得到输入流
  156 + InputStream inputStream = conn.getInputStream();
  157 +
  158 + return inputStream ;
  159 + }catch (Exception e){
  160 +
  161 + }
  162 + return null ;
  163 + }
  164 +}
0 165 \ No newline at end of file
... ...
cloud/common/src/main/java/com/sincere/common/util/RedisUtils.java 0 → 100644
... ... @@ -0,0 +1,225 @@
  1 +package com.sincere.common.util;
  2 +
  3 +import org.springframework.beans.factory.annotation.Value;
  4 +import org.springframework.context.annotation.PropertySource;
  5 +import org.springframework.stereotype.Component;
  6 +import redis.clients.jedis.Jedis;
  7 +import redis.clients.jedis.JedisPool;
  8 +import redis.clients.jedis.JedisPoolConfig;
  9 +
  10 +import javax.annotation.PostConstruct;
  11 +
  12 +/**
  13 + * @author chen
  14 + * @version 1.0
  15 + * @date 2019/11/5 0005 8:51
  16 + */
  17 +@Component
  18 +@PropertySource(value = "classpath:conf.properties")
  19 +public class RedisUtils {
  20 +
  21 +
  22 + @Value("${redis.host}")
  23 + private String host;
  24 + @Value("${redis.port}")
  25 + private int port;
  26 + @Value("${redis.password}")
  27 + private String password;
  28 +
  29 + @PostConstruct
  30 + public void getApiToken() {
  31 + ADDR = this.host ;
  32 + PORT = this.port ;
  33 + AUTH = this.password ;
  34 + }
  35 +
  36 + //Redis服务器IP
  37 + private static String ADDR;
  38 +
  39 + //Redis的端口号
  40 + private static int PORT;
  41 +
  42 + //访问密码
  43 + private static String AUTH;
  44 +
  45 + //可用连接实例的最大数目,默认值为8;
  46 + //如果赋值为-1,则表示不限制;如果pool已经分配了maxActive个jedis实例,则此时pool的状态为exhausted(耗尽)。
  47 + private static int MAX_ACTIVE = 1024;
  48 +
  49 + //控制一个pool最多有多少个状态为idle(空闲的)的jedis实例,默认值也是8。
  50 + private static int MAX_IDLE = 200;
  51 +
  52 + //等待可用连接的最大时间,单位毫秒,默认值为-1,表示永不超时。如果超过等待时间,则直接抛出JedisConnectionException;
  53 + private static int MAX_WAIT = 10000;
  54 +
  55 + private static int TIMEOUT = 10000;
  56 +
  57 + //在borrow一个jedis实例时,是否提前进行validate操作;如果为true,则得到的jedis实例均是可用的;
  58 + private static boolean TEST_ON_BORROW = true;
  59 +
  60 + private static JedisPool jedisPool = null;
  61 +
  62 +
  63 + /**
  64 + * 获取Jedis实例
  65 + * @return
  66 + */
  67 + public synchronized static Jedis getJedis() {
  68 +
  69 + try {
  70 + if (jedisPool != null) {
  71 + Jedis resource = jedisPool.getResource();
  72 + return resource;
  73 + } else {
  74 + JedisPoolConfig config = new JedisPoolConfig();
  75 + config.setMaxTotal(MAX_ACTIVE);
  76 + config.setMaxIdle(MAX_IDLE);
  77 + config.setMaxWaitMillis(MAX_WAIT);
  78 + config.setTestOnBorrow(TEST_ON_BORROW);
  79 + jedisPool = new JedisPool(config, ADDR, PORT, TIMEOUT, AUTH);
  80 + Jedis resource = jedisPool.getResource();
  81 + return resource;
  82 + }
  83 + } catch (Exception e) {
  84 + e.printStackTrace();
  85 + return null;
  86 + }
  87 + }
  88 +
  89 + public static void main(String[] args) {
  90 + RedisUtils.setString("test","test");
  91 + }
  92 + /**
  93 + * 释放jedis资源
  94 + * @param jedis
  95 + */
  96 + public static void returnResource(final Jedis jedis) {
  97 + if (jedis != null) {
  98 + jedisPool.returnResource(jedis);
  99 + }
  100 + }
  101 +
  102 + public static void setString(String key ,String value){
  103 + Jedis jedis = null;
  104 + try {
  105 + jedis = getJedis();
  106 + jedis.set(key,value);
  107 + } catch (Exception e) {
  108 + System.out.println("setString设置redis键值异常:key=" + key + " value=" + value + " cause:" + e.getMessage());
  109 + } finally {
  110 + if(jedis != null)
  111 + {
  112 + jedis.close();
  113 + }
  114 + }
  115 + }
  116 +
  117 + public static void setObject(String key,Object object) {
  118 + Jedis jedis = null;
  119 + try {
  120 + jedis = getJedis();
  121 + jedis.set(key.getBytes(), SerializeUtil.serialize(object));
  122 + } catch (Exception e) {
  123 + e.printStackTrace();
  124 + System.out.println("setString设置redis键值异常:key=" + key + " value=" + object + " cause:" + e.getMessage());
  125 + } finally {
  126 + if(jedis != null)
  127 + {
  128 + jedis.close();
  129 + }
  130 + }
  131 + }
  132 +
  133 + public static void setString(String key ,String value , int expireTime){
  134 + String result = "OK";
  135 + Jedis jedis = null;
  136 + try {
  137 + jedis = getJedis();
  138 + jedis.set(key,value);
  139 + if(result.equals("OK")) {
  140 + jedis.expire(key.getBytes(), expireTime);
  141 + }
  142 + } catch (Exception e) {
  143 + System.out.println("setString设置redis键值异常:key=" + key + " value=" + value + " cause:" + e.getMessage());
  144 + } finally {
  145 + if(jedis != null)
  146 + {
  147 + jedis.close();
  148 + }
  149 + }
  150 + }
  151 +
  152 + public static String getString(String key) {
  153 + Jedis jedis = null;
  154 + try {
  155 + jedis = getJedis();
  156 + String value = jedis.get(key);
  157 + return value;
  158 + } catch (Exception e) {
  159 + System.out.println("getString获取redis键值异常:key=" + key + " cause:" + e.getMessage());
  160 + } finally {
  161 + jedis.close();
  162 + }
  163 + return null;
  164 + }
  165 +
  166 + public static Object getObject(String key) {
  167 + Jedis jedis = null;
  168 + try {
  169 + jedis = getJedis();
  170 + byte[] value = jedis.get(key.getBytes());
  171 + return SerializeUtil. unserialize(value);
  172 + } catch (Exception e) {
  173 + System.out.println("getString获取redis键值异常:key=" + key + " cause:" + e.getMessage());
  174 + } finally {
  175 + jedis.close();
  176 + }
  177 + return null;
  178 + }
  179 +
  180 +
  181 + /**
  182 + * 删除key
  183 + */
  184 + public static Long delkeyObject(String key) {
  185 + Jedis jedis = null;
  186 + try {
  187 + jedis = getJedis();
  188 + return jedis.del(key.getBytes());
  189 + }catch(Exception e) {
  190 + e.printStackTrace();
  191 + return null;
  192 + }finally{
  193 + if(jedis != null)
  194 + {
  195 + jedis.close();
  196 + }
  197 + }
  198 + }
  199 +
  200 + public static Boolean existsObject(String key) {
  201 + Jedis jedis = null;
  202 + try {
  203 + jedis = getJedis();
  204 + return jedis.exists(key);
  205 + }catch(Exception e) {
  206 + e.printStackTrace();
  207 + return false;
  208 + }finally{
  209 + if(jedis != null)
  210 + {
  211 + jedis.close();
  212 + }
  213 + }
  214 + }
  215 +
  216 + public static void flushAll() {
  217 + Jedis jedis = null;
  218 + try {
  219 + jedis = getJedis();
  220 + jedis.flushAll();
  221 + } catch (Exception e) {
  222 + System.out.println("Cache清空失败:" + e);
  223 + }
  224 + }
  225 +}
... ...
cloud/common/src/main/java/com/sincere/common/util/SerializeUtil.java 0 → 100644
... ... @@ -0,0 +1,44 @@
  1 +package com.sincere.common.util;
  2 +
  3 +import java.io.ByteArrayInputStream;
  4 +import java.io.ByteArrayOutputStream;
  5 +import java.io.ObjectInputStream;
  6 +import java.io.ObjectOutputStream;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/11/5 0005 9:06
  12 + */
  13 +public class SerializeUtil {
  14 +
  15 + // 序列化
  16 + public static byte[] serialize(Object object) {
  17 + ObjectOutputStream oos;
  18 + oos = null;
  19 + ByteArrayOutputStream baos = null;
  20 + try {
  21 + baos = new ByteArrayOutputStream();
  22 + oos = new ObjectOutputStream(baos);
  23 + oos.writeObject(object);
  24 + byte[] bytes = baos.toByteArray();
  25 + return bytes;
  26 + } catch (Exception e) {
  27 + e.printStackTrace();
  28 + }
  29 + return null;
  30 + }
  31 +
  32 + // 反序列化
  33 + public static Object unserialize( byte[] bytes) {
  34 + ByteArrayInputStream bais = null;
  35 + try {
  36 + bais = new ByteArrayInputStream(bytes);
  37 + ObjectInputStream ois = new ObjectInputStream(bais);
  38 + return ois.readObject();
  39 + } catch (Exception e) {
  40 +
  41 + }
  42 + return null;
  43 + }
  44 +}
... ...
cloud/common/src/main/java/com/sincere/common/util/UserUtil.java
... ... @@ -29,7 +29,7 @@ public class UserUtil {
29 29 return null;
30 30 }
31 31 String token = authorization.split(" ")[1];
32   - log.info("获取token成功,值为{}", token);
  32 + //log.info("获取token成功,值为{}", token);
33 33 return token;
34 34 }
35 35  
... ... @@ -56,7 +56,7 @@ public class UserUtil {
56 56 }
57 57 Claims claims = getClaims(token);
58 58 Integer userId = (Integer) claims.get(UserConstants.USER_ID);
59   - log.info("获取userId成功,值为", userId);
  59 + //log.info("获取userId成功,值为", userId);
60 60 return userId;
61 61 }
62 62  
... ... @@ -72,7 +72,7 @@ public class UserUtil {
72 72 }
73 73 Claims claims = getClaims(token);
74 74 String username = (String) claims.get(UserConstants.USER_NAME);
75   - log.info("获取username成功,值为", username);
  75 + //log.info("获取username成功,值为", username);
76 76 return username;
77 77 }
78 78  
... ...
cloud/common/src/main/java/com/sincere/common/vo/BaseVo.java 0 → 100644
... ... @@ -0,0 +1,29 @@
  1 +package com.sincere.common.vo;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +public class BaseVo implements Serializable {
  6 +
  7 + private boolean success;
  8 + private String message ;
  9 +
  10 + public boolean isSuccess() {
  11 + return success;
  12 + }
  13 +
  14 + public void setSuccess(boolean success) {
  15 + this.success = success;
  16 + }
  17 +
  18 + public String getMessage() {
  19 + return message;
  20 + }
  21 +
  22 + public void setMessage(String message) {
  23 + this.message = message;
  24 + }
  25 +
  26 + public BaseVo() {
  27 + success = true;
  28 + }
  29 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/ClassCourseDetailVo.java 0 → 100644
... ... @@ -0,0 +1,58 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import com.sincere.common.dto.independence.TeacherClassDto;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/10/12 0012 8:30
  9 + */
  10 +public class ClassCourseDetailVo {
  11 +
  12 + private String courseName ;
  13 + private String teacherName ;
  14 + private int times ;
  15 + private int joinTimes ;
  16 +
  17 +
  18 + public ClassCourseDetailVo(TeacherClassDto teacherClass) {
  19 + this.courseName = teacherClass.getCourseName();
  20 + this.teacherName = teacherClass.getTeacherName();
  21 + this.joinTimes = teacherClass.getJoinTimes();
  22 + this.times = teacherClass.getTimes()-2*(teacherClass.getJoinTimes());
  23 + }
  24 +
  25 +
  26 + public String getCourseName() {
  27 + return courseName;
  28 + }
  29 +
  30 + public void setCourseName(String courseName) {
  31 + this.courseName = courseName;
  32 + }
  33 +
  34 + public String getTeacherName() {
  35 + return teacherName;
  36 + }
  37 +
  38 + public void setTeacherName(String teacherName) {
  39 + this.teacherName = teacherName;
  40 + }
  41 +
  42 + public int getTimes() {
  43 + return times;
  44 + }
  45 +
  46 + public void setTimes(int times) {
  47 + this.times = times;
  48 + }
  49 +
  50 + public int getJoinTimes() {
  51 + return joinTimes;
  52 + }
  53 +
  54 + public void setJoinTimes(int joinTimes) {
  55 + this.joinTimes = joinTimes;
  56 + }
  57 +
  58 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/ClassCourseRepVo.java 0 → 100644
... ... @@ -0,0 +1,25 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +
  4 +import com.sincere.common.dto.independence.ClassCourseDto;
  5 +import com.sincere.common.vo.BaseVo;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @author chen
  11 + * @version 1.0
  12 + * @date 2019/10/11 0011 10:17
  13 + */
  14 +public class ClassCourseRepVo extends BaseVo {
  15 +
  16 + private List<ClassCourseDto> data;
  17 +
  18 + public List<ClassCourseDto> getData() {
  19 + return data;
  20 + }
  21 +
  22 + public void setData(List<ClassCourseDto> data) {
  23 + this.data = data;
  24 + }
  25 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/ClassCourseVO.java 0 → 100644
... ... @@ -0,0 +1,49 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import java.util.List;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/10/12 0012 8:30
  9 + */
  10 +public class ClassCourseVO {
  11 +
  12 + private int classId ;
  13 + private String className ;
  14 + private int allCount ;
  15 +
  16 + List<ClassCourseDetailVo> list ;
  17 +
  18 + public int getClassId() {
  19 + return classId;
  20 + }
  21 +
  22 + public void setClassId(int classId) {
  23 + this.classId = classId;
  24 + }
  25 +
  26 + public String getClassName() {
  27 + return className;
  28 + }
  29 +
  30 + public void setClassName(String className) {
  31 + this.className = className;
  32 + }
  33 +
  34 + public int getAllCount() {
  35 + return allCount;
  36 + }
  37 +
  38 + public void setAllCount(int allCount) {
  39 + this.allCount = allCount;
  40 + }
  41 +
  42 + public List<ClassCourseDetailVo> getList() {
  43 + return list;
  44 + }
  45 +
  46 + public void setList(List<ClassCourseDetailVo> list) {
  47 + this.list = list;
  48 + }
  49 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/ClassRepVo.java 0 → 100644
... ... @@ -0,0 +1,24 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import com.sincere.common.dto.independence.ClassModelDto;
  4 +import com.sincere.common.vo.BaseVo;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/11 0011 14:08
  12 + */
  13 +public class ClassRepVo extends BaseVo {
  14 +
  15 + private List<ClassModelDto> data ;
  16 +
  17 + public List<ClassModelDto> getData() {
  18 + return data;
  19 + }
  20 +
  21 + public void setData(List<ClassModelDto> data) {
  22 + this.data = data;
  23 + }
  24 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/CourseClassReqVo.java 0 → 100644
... ... @@ -0,0 +1,28 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +/**
  4 + * @author chen
  5 + * @version 1.0
  6 + * @date 2019/10/12 0012 9:18
  7 + */
  8 +public class CourseClassReqVo {
  9 +
  10 + private int scheduleId ;
  11 + private int courseId ;
  12 +
  13 + public int getScheduleId() {
  14 + return scheduleId;
  15 + }
  16 +
  17 + public void setScheduleId(int scheduleId) {
  18 + this.scheduleId = scheduleId;
  19 + }
  20 +
  21 + public int getCourseId() {
  22 + return courseId;
  23 + }
  24 +
  25 + public void setCourseId(int courseId) {
  26 + this.courseId = courseId;
  27 + }
  28 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/CourseGroupReqVo.java 0 → 100644
... ... @@ -0,0 +1,30 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/10/12 0012 8:58
  9 + */
  10 +public class CourseGroupReqVo implements Serializable {
  11 +
  12 + private int scheduleId ;
  13 + private int courseGroup ;
  14 +
  15 + public int getScheduleId() {
  16 + return scheduleId;
  17 + }
  18 +
  19 + public void setScheduleId(int scheduleId) {
  20 + this.scheduleId = scheduleId;
  21 + }
  22 +
  23 + public int getCourseGroup() {
  24 + return courseGroup;
  25 + }
  26 +
  27 + public void setCourseGroup(int courseGroup) {
  28 + this.courseGroup = courseGroup;
  29 + }
  30 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/CourseRepVo.java 0 → 100644
... ... @@ -0,0 +1,28 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import com.sincere.common.dto.independence.CourseDto;
  4 +import com.sincere.common.vo.BaseVo;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/11 0011 10:12
  12 + */
  13 +public class CourseRepVo extends BaseVo {
  14 +
  15 + private List<CourseDto> data ;
  16 +
  17 + public List<CourseDto> getData() {
  18 + return data;
  19 + }
  20 +
  21 + public void setData(List<CourseDto> data) {
  22 + this.data = data;
  23 + }
  24 +
  25 + public CourseRepVo(){
  26 + super();
  27 + }
  28 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/CourseTypeListVO.java 0 → 100644
... ... @@ -0,0 +1,41 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import com.sincere.common.dto.independence.CourseDto;
  4 +
  5 +import java.util.List;
  6 +
  7 +/**
  8 + * @author chen
  9 + * @version 1.0
  10 + * @date 2019/10/14 0014 7:58
  11 + */
  12 +public class CourseTypeListVO {
  13 +
  14 + private int courseType ;
  15 + private String courseTypeName ;
  16 + private List<CourseDto> list ;
  17 +
  18 + public int getCourseType() {
  19 + return courseType;
  20 + }
  21 +
  22 + public void setCourseType(int courseType) {
  23 + this.courseType = courseType;
  24 + }
  25 +
  26 + public String getCourseTypeName() {
  27 + return courseTypeName;
  28 + }
  29 +
  30 + public void setCourseTypeName(String courseTypeName) {
  31 + this.courseTypeName = courseTypeName;
  32 + }
  33 +
  34 + public List<CourseDto> getList() {
  35 + return list;
  36 + }
  37 +
  38 + public void setList(List<CourseDto> list) {
  39 + this.list = list;
  40 + }
  41 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/FirstReqVo.java 0 → 100644
... ... @@ -0,0 +1,52 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +public class FirstReqVo implements Serializable {
  6 +
  7 + private int scheduleId;
  8 + private int morning ;
  9 + private int afternoon;
  10 + private int night ;
  11 + private int dayNumber;
  12 +
  13 + public int getScheduleId() {
  14 + return scheduleId;
  15 + }
  16 +
  17 + public void setScheduleId(int scheduleId) {
  18 + this.scheduleId = scheduleId;
  19 + }
  20 +
  21 + public int getMorning() {
  22 + return morning;
  23 + }
  24 +
  25 + public void setMorning(int morning) {
  26 + this.morning = morning;
  27 + }
  28 +
  29 + public int getAfternoon() {
  30 + return afternoon;
  31 + }
  32 +
  33 + public void setAfternoon(int afternoon) {
  34 + this.afternoon = afternoon;
  35 + }
  36 +
  37 + public int getNight() {
  38 + return night;
  39 + }
  40 +
  41 + public void setNight(int night) {
  42 + this.night = night;
  43 + }
  44 +
  45 + public int getDayNumber() {
  46 + return dayNumber;
  47 + }
  48 +
  49 + public void setDayNumber(int dayNumber) {
  50 + this.dayNumber = dayNumber;
  51 + }
  52 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/GetClassCourseReqVo.java 0 → 100644
... ... @@ -0,0 +1,28 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +/**
  4 + * @author chen
  5 + * @version 1.0
  6 + * @date 2019/10/11 0011 10:21
  7 + */
  8 +public class GetClassCourseReqVo {
  9 +
  10 + private int scheduleId ;
  11 + private int classId ;
  12 +
  13 + public int getScheduleId() {
  14 + return scheduleId;
  15 + }
  16 +
  17 + public void setScheduleId(int scheduleId) {
  18 + this.scheduleId = scheduleId;
  19 + }
  20 +
  21 + public int getClassId() {
  22 + return classId;
  23 + }
  24 +
  25 + public void setClassId(int classId) {
  26 + this.classId = classId;
  27 + }
  28 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/GetCourseClassListRepVo.java 0 → 100644
... ... @@ -0,0 +1,57 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/10/12 0012 9:20
  9 + */
  10 +public class GetCourseClassListRepVo implements Serializable {
  11 +
  12 + private int classId ;
  13 + private String className ;
  14 + private int courseId ;
  15 + private String courseName ;
  16 + private String teacherName ;
  17 +
  18 + public int getClassId() {
  19 + return classId;
  20 + }
  21 +
  22 + public void setClassId(int classId) {
  23 + this.classId = classId;
  24 + }
  25 +
  26 + public String getClassName() {
  27 + return className;
  28 + }
  29 +
  30 + public void setClassName(String className) {
  31 + this.className = className;
  32 + }
  33 +
  34 + public int getCourseId() {
  35 + return courseId;
  36 + }
  37 +
  38 + public void setCourseId(int courseId) {
  39 + this.courseId = courseId;
  40 + }
  41 +
  42 + public String getCourseName() {
  43 + return courseName;
  44 + }
  45 +
  46 + public void setCourseName(String courseName) {
  47 + this.courseName = courseName;
  48 + }
  49 +
  50 + public String getTeacherName() {
  51 + return teacherName;
  52 + }
  53 +
  54 + public void setTeacherName(String teacherName) {
  55 + this.teacherName = teacherName;
  56 + }
  57 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/GetCourseTypeListRepVo.java 0 → 100644
... ... @@ -0,0 +1,32 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +
  5 +import java.util.List;
  6 +
  7 +/**
  8 + * @author chen
  9 + * @version 1.0
  10 + * @date 2019/10/14 0014 7:59
  11 + */
  12 +public class GetCourseTypeListRepVo extends BaseVo {
  13 +
  14 + private int scheduleId ;
  15 + private List<CourseTypeListVO> data ;
  16 +
  17 + public int getScheduleId() {
  18 + return scheduleId;
  19 + }
  20 +
  21 + public void setScheduleId(int scheduleId) {
  22 + this.scheduleId = scheduleId;
  23 + }
  24 +
  25 + public List<CourseTypeListVO> getData() {
  26 + return data;
  27 + }
  28 +
  29 + public void setData(List<CourseTypeListVO> data) {
  30 + this.data = data;
  31 + }
  32 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/InitRepVo.java 0 → 100644
... ... @@ -0,0 +1,40 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +
  4 +import com.sincere.common.vo.BaseVo;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/10/11 0011 16:55
  10 + */
  11 +public class InitRepVo extends BaseVo {
  12 +
  13 + private int classNumber ;
  14 + private int teacherNumber ;
  15 + private int courseNumber ;
  16 +
  17 + public int getClassNumber() {
  18 + return classNumber;
  19 + }
  20 +
  21 + public void setClassNumber(int classNumber) {
  22 + this.classNumber = classNumber;
  23 + }
  24 +
  25 + public int getTeacherNumber() {
  26 + return teacherNumber;
  27 + }
  28 +
  29 + public void setTeacherNumber(int teacherNumber) {
  30 + this.teacherNumber = teacherNumber;
  31 + }
  32 +
  33 + public int getCourseNumber() {
  34 + return courseNumber;
  35 + }
  36 +
  37 + public void setCourseNumber(int courseNumber) {
  38 + this.courseNumber = courseNumber;
  39 + }
  40 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/InitTeacherCourseReqVo.java 0 → 100644
... ... @@ -0,0 +1,27 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +/**
  4 + * @author chen
  5 + * @version 1.0
  6 + * @date 2019/10/10 0010 9:04
  7 + */
  8 +public class InitTeacherCourseReqVo {
  9 + private int scheduleId ;
  10 + private String url ;
  11 +
  12 + public int getScheduleId() {
  13 + return scheduleId;
  14 + }
  15 +
  16 + public void setScheduleId(int scheduleId) {
  17 + this.scheduleId = scheduleId;
  18 + }
  19 +
  20 + public String getUrl() {
  21 + return url;
  22 + }
  23 +
  24 + public void setUrl(String url) {
  25 + this.url = url;
  26 + }
  27 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/JoinClassReqVo.java 0 → 100644
... ... @@ -0,0 +1,40 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/10/10 0010 8:40
  10 + */
  11 +public class JoinClassReqVo implements Serializable {
  12 +
  13 + private int scheduleId ;
  14 + private int courseId ;
  15 + private List<Integer> classIdList ;
  16 +
  17 + public int getScheduleId() {
  18 + return scheduleId;
  19 + }
  20 +
  21 + public void setScheduleId(int scheduleId) {
  22 + this.scheduleId = scheduleId;
  23 + }
  24 +
  25 + public int getCourseId() {
  26 + return courseId;
  27 + }
  28 +
  29 + public void setCourseId(int courseId) {
  30 + this.courseId = courseId;
  31 + }
  32 +
  33 + public List<Integer> getClassIdList() {
  34 + return classIdList;
  35 + }
  36 +
  37 + public void setClassIdList(List<Integer> classIdList) {
  38 + this.classIdList = classIdList;
  39 + }
  40 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/JoinDetail.java 0 → 100644
... ... @@ -0,0 +1,46 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +/**
  4 + * @author chen
  5 + * @version 1.0
  6 + * @date 2019/10/11 0011 14:27
  7 + */
  8 +public class JoinDetail {
  9 +
  10 + private int courseGroup ;
  11 + private String courseName ;
  12 + private String className ;
  13 + private String teacherName ;
  14 +
  15 + public int getCourseGroup() {
  16 + return courseGroup;
  17 + }
  18 +
  19 + public void setCourseGroup(int courseGroup) {
  20 + this.courseGroup = courseGroup;
  21 + }
  22 +
  23 + public String getCourseName() {
  24 + return courseName;
  25 + }
  26 +
  27 + public void setCourseName(String courseName) {
  28 + this.courseName = courseName;
  29 + }
  30 +
  31 + public String getClassName() {
  32 + return className;
  33 + }
  34 +
  35 + public void setClassName(String className) {
  36 + this.className = className;
  37 + }
  38 +
  39 + public String getTeacherName() {
  40 + return teacherName;
  41 + }
  42 +
  43 + public void setTeacherName(String teacherName) {
  44 + this.teacherName = teacherName;
  45 + }
  46 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/JoinRepVo.java 0 → 100644
... ... @@ -0,0 +1,24 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +
  4 +import com.sincere.common.vo.BaseVo;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/11 0011 14:28
  12 + */
  13 +public class JoinRepVo extends BaseVo {
  14 +
  15 + private List<JoinDetail> data ;
  16 +
  17 + public List<JoinDetail> getData() {
  18 + return data;
  19 + }
  20 +
  21 + public void setData(List<JoinDetail> data) {
  22 + this.data = data;
  23 + }
  24 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/NoScheduleReqVo.java 0 → 100644
... ... @@ -0,0 +1,58 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/10/9 0009 15:53
  10 + */
  11 +public class NoScheduleReqVo implements Serializable {
  12 +
  13 + private int scheduleId ;
  14 + private String grade ;
  15 + private int classId ;
  16 + private int level ; //1 班级不排 2 年级不排 3 学校不排
  17 + private List<String> list ;
  18 +
  19 + public int getScheduleId() {
  20 + return scheduleId;
  21 + }
  22 +
  23 + public void setScheduleId(int scheduleId) {
  24 + this.scheduleId = scheduleId;
  25 + }
  26 +
  27 + public int getLevel() {
  28 + return level;
  29 + }
  30 +
  31 + public void setLevel(int level) {
  32 + this.level = level;
  33 + }
  34 +
  35 + public List<String> getList() {
  36 + return list;
  37 + }
  38 +
  39 + public void setList(List<String> list) {
  40 + this.list = list;
  41 + }
  42 +
  43 + public String getGrade() {
  44 + return grade;
  45 + }
  46 +
  47 + public void setGrade(String grade) {
  48 + this.grade = grade;
  49 + }
  50 +
  51 + public int getClassId() {
  52 + return classId;
  53 + }
  54 +
  55 + public void setClassId(int classId) {
  56 + this.classId = classId;
  57 + }
  58 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/ParallelClassReqVo.java 0 → 100644
... ... @@ -0,0 +1,68 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/9/25 0025 8:41
  10 + */
  11 +public class ParallelClassReqVo implements Serializable {
  12 +
  13 + private int scheduleId ;
  14 + private List<String> intervalList ;
  15 + private int courseType;
  16 +
  17 + private int level ; //1 班级不排 2 年级不排 3 学校不排
  18 + private String grade ;
  19 + private int classId ;
  20 +
  21 + public int getScheduleId() {
  22 + return scheduleId;
  23 + }
  24 +
  25 + public void setScheduleId(int scheduleId) {
  26 + this.scheduleId = scheduleId;
  27 + }
  28 +
  29 + public List<String> getIntervalList() {
  30 + return intervalList;
  31 + }
  32 +
  33 + public void setIntervalList(List<String> intervalList) {
  34 + this.intervalList = intervalList;
  35 + }
  36 +
  37 + public int getCourseType() {
  38 + return courseType;
  39 + }
  40 +
  41 + public void setCourseType(int courseType) {
  42 + this.courseType = courseType;
  43 + }
  44 +
  45 + public int getLevel() {
  46 + return level;
  47 + }
  48 +
  49 + public void setLevel(int level) {
  50 + this.level = level;
  51 + }
  52 +
  53 + public String getGrade() {
  54 + return grade;
  55 + }
  56 +
  57 + public void setGrade(String grade) {
  58 + this.grade = grade;
  59 + }
  60 +
  61 + public int getClassId() {
  62 + return classId;
  63 + }
  64 +
  65 + public void setClassId(int classId) {
  66 + this.classId = classId;
  67 + }
  68 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/RecallReqVo.java 0 → 100644
... ... @@ -0,0 +1,29 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/10/15 0015 8:08
  9 + */
  10 +public class RecallReqVo implements Serializable {
  11 + private int scheduleId ;
  12 + private int number ;// 对应页面 1不排课 2 公共课 3 主课 4 副课
  13 +
  14 + public int getScheduleId() {
  15 + return scheduleId;
  16 + }
  17 +
  18 + public void setScheduleId(int scheduleId) {
  19 + this.scheduleId = scheduleId;
  20 + }
  21 +
  22 + public int getNumber() {
  23 + return number;
  24 + }
  25 +
  26 + public void setNumber(int number) {
  27 + this.number = number;
  28 + }
  29 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/ScheduleIdReqVo.java 0 → 100644
... ... @@ -0,0 +1,19 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +/**
  4 + * @author chen
  5 + * @version 1.0
  6 + * @date 2019/10/11 0011 14:41
  7 + */
  8 +public class ScheduleIdReqVo {
  9 +
  10 + private int scheduleId ;
  11 +
  12 + public int getScheduleId() {
  13 + return scheduleId;
  14 + }
  15 +
  16 + public void setScheduleId(int scheduleId) {
  17 + this.scheduleId = scheduleId;
  18 + }
  19 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/ScheduleListRepVo.java 0 → 100644
... ... @@ -0,0 +1,28 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +
  4 +import com.sincere.common.dto.independence.ScheduleDto;
  5 +import com.sincere.common.vo.BaseVo;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @author chen
  11 + * @version 1.0
  12 + * @date 2019/10/11 0011 14:03
  13 + */
  14 +public class ScheduleListRepVo extends BaseVo {
  15 +
  16 + private List<ScheduleDto> data ;
  17 +
  18 + public List<ScheduleDto> getData() {
  19 + return data;
  20 + }
  21 +
  22 + public void setData(List<ScheduleDto> data) {
  23 + this.data = data;
  24 + }
  25 + public ScheduleListRepVo(){
  26 + super();
  27 + }
  28 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/ScheduleRepVo.java 0 → 100644
... ... @@ -0,0 +1,21 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +
  5 +/**
  6 + * @author chen
  7 + * @version 1.0
  8 + * @date 2019/10/10 0010 11:32
  9 + */
  10 +public class ScheduleRepVo extends BaseVo {
  11 +
  12 + private int scheduleId ;
  13 +
  14 + public int getScheduleId() {
  15 + return scheduleId;
  16 + }
  17 +
  18 + public void setScheduleId(int scheduleId) {
  19 + this.scheduleId = scheduleId;
  20 + }
  21 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/SchoolIdReqVo.java 0 → 100644
... ... @@ -0,0 +1,19 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +/**
  4 + * @author chen
  5 + * @version 1.0
  6 + * @date 2019/10/11 0011 14:41
  7 + */
  8 +public class SchoolIdReqVo {
  9 +
  10 + private int schoolId ;
  11 +
  12 + public int getSchoolId() {
  13 + return schoolId;
  14 + }
  15 +
  16 + public void setSchoolId(int schoolId) {
  17 + this.schoolId = schoolId;
  18 + }
  19 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/SetTypeReqVo.java 0 → 100644
... ... @@ -0,0 +1,41 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +/**
  7 + * @author chen
  8 + * @version 1.0
  9 + * @date 2019/10/9 0009 16:32
  10 + */
  11 +public class SetTypeReqVo implements Serializable {
  12 +
  13 + private int scheduleId ;
  14 + private int courseType ; // 1 主课 2 副课 3 公共课
  15 + private List<Integer> courseIdList ;
  16 +
  17 +
  18 + public int getCourseType() {
  19 + return courseType;
  20 + }
  21 +
  22 + public void setCourseType(int courseType) {
  23 + this.courseType = courseType;
  24 + }
  25 +
  26 + public int getScheduleId() {
  27 + return scheduleId;
  28 + }
  29 +
  30 + public void setScheduleId(int scheduleId) {
  31 + this.scheduleId = scheduleId;
  32 + }
  33 +
  34 + public List<Integer> getCourseIdList() {
  35 + return courseIdList;
  36 + }
  37 +
  38 + public void setCourseIdList(List<Integer> courseIdList) {
  39 + this.courseIdList = courseIdList;
  40 + }
  41 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/TeacherCourseRepVo.java 0 → 100644
... ... @@ -0,0 +1,33 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +
  4 +import com.sincere.common.vo.BaseVo;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/12 0012 8:32
  12 + */
  13 +public class TeacherCourseRepVo extends BaseVo {
  14 +
  15 + private List<ClassCourseVO> data ;
  16 + private List<String> courseNameList ;
  17 +
  18 + public List<ClassCourseVO> getData() {
  19 + return data;
  20 + }
  21 +
  22 + public void setData(List<ClassCourseVO> data) {
  23 + this.data = data;
  24 + }
  25 +
  26 + public List<String> getCourseNameList() {
  27 + return courseNameList;
  28 + }
  29 +
  30 + public void setCourseNameList(List<String> courseNameList) {
  31 + this.courseNameList = courseNameList;
  32 + }
  33 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/paike/UpdateScheduleReqVo.java 0 → 100644
... ... @@ -0,0 +1,36 @@
  1 +package com.sincere.common.vo.independence.paike;
  2 +
  3 +/**
  4 + * @author chen
  5 + * @version 1.0
  6 + * @date 2019/10/14 0014 16:52
  7 + */
  8 +public class UpdateScheduleReqVo {
  9 + private int scheduleId;
  10 + private String team ;
  11 + private String scheduleName ;
  12 +
  13 + public int getScheduleId() {
  14 + return scheduleId;
  15 + }
  16 +
  17 + public void setScheduleId(int scheduleId) {
  18 + this.scheduleId = scheduleId;
  19 + }
  20 +
  21 + public String getTeam() {
  22 + return team;
  23 + }
  24 +
  25 + public void setTeam(String team) {
  26 + this.team = team;
  27 + }
  28 +
  29 + public String getScheduleName() {
  30 + return scheduleName;
  31 + }
  32 +
  33 + public void setScheduleName(String scheduleName) {
  34 + this.scheduleName = scheduleName;
  35 + }
  36 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form1.java 0 → 100644
... ... @@ -0,0 +1,46 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/18 0018 15:37
  12 + */
  13 +@ApiModel
  14 +public class Form1 implements Serializable {
  15 +
  16 + @ApiModelProperty(value="等级")
  17 + private String level ;
  18 + @ApiModelProperty(value="人数")
  19 + private int number ;
  20 + @ApiModelProperty(value="比例")
  21 + private double prop ;
  22 +
  23 + public String getLevel() {
  24 + return level;
  25 + }
  26 +
  27 + public void setLevel(String level) {
  28 + this.level = level;
  29 + }
  30 +
  31 + public int getNumber() {
  32 + return number;
  33 + }
  34 +
  35 + public void setNumber(int number) {
  36 + this.number = number;
  37 + }
  38 +
  39 + public double getProp() {
  40 + return prop;
  41 + }
  42 +
  43 + public void setProp(double prop) {
  44 + this.prop = prop;
  45 + }
  46 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form1RepVO.java 0 → 100644
... ... @@ -0,0 +1,38 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +import io.swagger.annotations.ApiModel;
  5 +import io.swagger.annotations.ApiModelProperty;
  6 +
  7 +import java.util.List;
  8 +import java.util.Map;
  9 +
  10 +/**
  11 + * @author chen
  12 + * @version 1.0
  13 + * @date 2019/10/18 0018 15:46
  14 + */
  15 +@ApiModel
  16 +public class Form1RepVO extends BaseVo {
  17 +
  18 + @ApiModelProperty(value="分数段区间")
  19 + private Map<String ,String> map ;
  20 + @ApiModelProperty(value="分数段详情")
  21 + private List<Form1> list ;
  22 +
  23 + public Map<String, String> getMap() {
  24 + return map;
  25 + }
  26 +
  27 + public void setMap(Map<String, String> map) {
  28 + this.map = map;
  29 + }
  30 +
  31 + public List<Form1> getList() {
  32 + return list;
  33 + }
  34 +
  35 + public void setList(List<Form1> list) {
  36 + this.list = list;
  37 + }
  38 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form2.java 0 → 100644
... ... @@ -0,0 +1,86 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/18 0018 16:10
  12 + */
  13 +@ApiModel
  14 +public class Form2 implements Serializable {
  15 +
  16 + @ApiModelProperty(value="名称")
  17 + private String name ;
  18 + @ApiModelProperty(value="参考人数")
  19 + private int studentNumber ;
  20 + @ApiModelProperty(value="参考人数占比")
  21 + private double studentProp ;
  22 + @ApiModelProperty(value="高分段人数")
  23 + private int highNumber ;
  24 + @ApiModelProperty(value="高分段人数占比")
  25 + private double highProp ;
  26 + @ApiModelProperty(value="低分段人数")
  27 + private int lowNumber ;
  28 + @ApiModelProperty(value="低分段人数占比")
  29 + private double lowProp ;
  30 +
  31 + public String getName() {
  32 + return name;
  33 + }
  34 +
  35 + public void setName(String name) {
  36 + this.name = name;
  37 + }
  38 +
  39 + public int getStudentNumber() {
  40 + return studentNumber;
  41 + }
  42 +
  43 + public void setStudentNumber(int studentNumber) {
  44 + this.studentNumber = studentNumber;
  45 + }
  46 +
  47 + public int getHighNumber() {
  48 + return highNumber;
  49 + }
  50 +
  51 + public void setHighNumber(int highNumber) {
  52 + this.highNumber = highNumber;
  53 + }
  54 +
  55 + public double getHighProp() {
  56 + return highProp;
  57 + }
  58 +
  59 + public void setHighProp(double highProp) {
  60 + this.highProp = highProp;
  61 + }
  62 +
  63 + public int getLowNumber() {
  64 + return lowNumber;
  65 + }
  66 +
  67 + public void setLowNumber(int lowNumber) {
  68 + this.lowNumber = lowNumber;
  69 + }
  70 +
  71 + public double getLowProp() {
  72 + return lowProp;
  73 + }
  74 +
  75 + public void setLowProp(double lowProp) {
  76 + this.lowProp = lowProp;
  77 + }
  78 +
  79 + public double getStudentProp() {
  80 + return studentProp;
  81 + }
  82 +
  83 + public void setStudentProp(double studentProp) {
  84 + this.studentProp = studentProp;
  85 + }
  86 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form2RepVO.java 0 → 100644
... ... @@ -0,0 +1,26 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +import io.swagger.annotations.ApiModel;
  5 +import io.swagger.annotations.ApiModelProperty;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @author chen
  11 + * @version 1.0
  12 + * @date 2019/10/22 0022 9:51
  13 + */
  14 +@ApiModel
  15 +public class Form2RepVO extends BaseVo {
  16 + @ApiModelProperty(value="数据")
  17 + private List<Form2> data ;
  18 +
  19 + public List<Form2> getData() {
  20 + return data;
  21 + }
  22 +
  23 + public void setData(List<Form2> data) {
  24 + this.data = data;
  25 + }
  26 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form3.java 0 → 100644
... ... @@ -0,0 +1,96 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/21 0021 9:03
  12 + */
  13 +@ApiModel
  14 +public class Form3 implements Serializable {
  15 +
  16 + @ApiModelProperty(value="名称")
  17 + private String name ;
  18 + @ApiModelProperty(value="最高分")
  19 + private Double maxScore ;
  20 + @ApiModelProperty(value="平均分")
  21 + private Double average ;
  22 + @ApiModelProperty(value="最低分")
  23 + private Double minScore ;
  24 + @ApiModelProperty(value="优秀率")
  25 + private Double apercent ;
  26 + @ApiModelProperty(value="良好率")
  27 + private Double bpercent ;
  28 + @ApiModelProperty(value="及格率")
  29 + private Double cpercent ;
  30 + @ApiModelProperty(value="不及格率")
  31 + private Double dpercent ;
  32 +
  33 + public String getName() {
  34 + return name;
  35 + }
  36 +
  37 + public void setName(String name) {
  38 + this.name = name;
  39 + }
  40 +
  41 + public Double getMaxScore() {
  42 + return maxScore;
  43 + }
  44 +
  45 + public void setMaxScore(Double maxScore) {
  46 + this.maxScore = maxScore;
  47 + }
  48 +
  49 + public Double getAverage() {
  50 + return average;
  51 + }
  52 +
  53 + public void setAverage(Double average) {
  54 + this.average = average;
  55 + }
  56 +
  57 + public Double getMinScore() {
  58 + return minScore;
  59 + }
  60 +
  61 + public void setMinScore(Double minScore) {
  62 + this.minScore = minScore;
  63 + }
  64 +
  65 + public Double getApercent() {
  66 + return apercent;
  67 + }
  68 +
  69 + public void setApercent(Double apercent) {
  70 + this.apercent = apercent;
  71 + }
  72 +
  73 + public Double getBpercent() {
  74 + return bpercent;
  75 + }
  76 +
  77 + public void setBpercent(Double bpercent) {
  78 + this.bpercent = bpercent;
  79 + }
  80 +
  81 + public Double getCpercent() {
  82 + return cpercent;
  83 + }
  84 +
  85 + public void setCpercent(Double cpercent) {
  86 + this.cpercent = cpercent;
  87 + }
  88 +
  89 + public Double getDpercent() {
  90 + return dpercent;
  91 + }
  92 +
  93 + public void setDpercent(Double dpercent) {
  94 + this.dpercent = dpercent;
  95 + }
  96 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form3RepVO.java 0 → 100644
... ... @@ -0,0 +1,23 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +
  5 +import java.util.List;
  6 +
  7 +/**
  8 + * @author chen
  9 + * @version 1.0
  10 + * @date 2019/10/22 0022 10:14
  11 + */
  12 +public class Form3RepVO extends BaseVo {
  13 +
  14 + private List<Form3> data ;
  15 +
  16 + public List<Form3> getData() {
  17 + return data;
  18 + }
  19 +
  20 + public void setData(List<Form3> data) {
  21 + this.data = data;
  22 + }
  23 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form4.java 0 → 100644
... ... @@ -0,0 +1,66 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/21 0021 9:51
  12 + */
  13 +@ApiModel
  14 +public class Form4 implements Serializable {
  15 +
  16 + @ApiModelProperty(value="名称")
  17 + private String name ;
  18 + @ApiModelProperty(value="众数")
  19 + private Double modeNumber ;
  20 + @ApiModelProperty(value="中位数")
  21 + private Double medianNumber ;
  22 + @ApiModelProperty(value="标准差")
  23 + private Double stdev ;
  24 + @ApiModelProperty(value="平均分")
  25 + private Double avgNumber ;
  26 +
  27 + public String getName() {
  28 + return name;
  29 + }
  30 +
  31 + public void setName(String name) {
  32 + this.name = name;
  33 + }
  34 +
  35 + public Double getModeNumber() {
  36 + return modeNumber;
  37 + }
  38 +
  39 + public void setModeNumber(Double modeNumber) {
  40 + this.modeNumber = modeNumber;
  41 + }
  42 +
  43 + public Double getMedianNumber() {
  44 + return medianNumber;
  45 + }
  46 +
  47 + public void setMedianNumber(Double medianNumber) {
  48 + this.medianNumber = medianNumber;
  49 + }
  50 +
  51 + public Double getStdev() {
  52 + return stdev;
  53 + }
  54 +
  55 + public void setStdev(Double stdev) {
  56 + this.stdev = stdev;
  57 + }
  58 +
  59 + public Double getAvgNumber() {
  60 + return avgNumber;
  61 + }
  62 +
  63 + public void setAvgNumber(Double avgNumber) {
  64 + this.avgNumber = avgNumber;
  65 + }
  66 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form4RepVO.java 0 → 100644
... ... @@ -0,0 +1,25 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +import io.swagger.annotations.ApiModel;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/22 0022 10:23
  12 + */
  13 +@ApiModel
  14 +public class Form4RepVO extends BaseVo {
  15 +
  16 + private List<Form4> data ;
  17 +
  18 + public List<Form4> getData() {
  19 + return data;
  20 + }
  21 +
  22 + public void setData(List<Form4> data) {
  23 + this.data = data;
  24 + }
  25 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form5.java 0 → 100644
... ... @@ -0,0 +1,136 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/21 0021 9:59
  12 + */
  13 +@ApiModel
  14 +public class Form5 implements Serializable {
  15 + @ApiModelProperty(value="题号")
  16 + private String examNumber ;
  17 + @ApiModelProperty(value="难度")
  18 + private String difficultName ;
  19 + @ApiModelProperty(value="分值")
  20 + private Double score ;
  21 + @ApiModelProperty(value="得分率 区")
  22 + private Double allRate ;
  23 + @ApiModelProperty(value="得分率 联盟校")
  24 + private Double leagueRate ;
  25 + @ApiModelProperty(value="得分率 本校")
  26 + private Double schoolRate ;
  27 + @ApiModelProperty(value="平均分 区")
  28 + private Double allAvg ;
  29 + @ApiModelProperty(value="平均分 联盟校")
  30 + private Double leagueAvg ;
  31 + @ApiModelProperty(value="平均分 本校")
  32 + private Double schoolAvg ;
  33 + @ApiModelProperty(value="区分度 区")
  34 + private Double allDist ;
  35 + @ApiModelProperty(value="区分度 联盟校")
  36 + private Double leagueDist ;
  37 + @ApiModelProperty(value="区分度 本校")
  38 + private Double schoolDist ;
  39 +
  40 +
  41 + public String getExamNumber() {
  42 + return examNumber;
  43 + }
  44 +
  45 + public void setExamNumber(String examNumber) {
  46 + this.examNumber = examNumber;
  47 + }
  48 +
  49 + public Double getScore() {
  50 + return score;
  51 + }
  52 +
  53 + public void setScore(Double score) {
  54 + this.score = score;
  55 + }
  56 +
  57 + public Double getAllRate() {
  58 + return allRate;
  59 + }
  60 +
  61 + public void setAllRate(Double allRate) {
  62 + this.allRate = allRate;
  63 + }
  64 +
  65 + public Double getSchoolRate() {
  66 + return schoolRate;
  67 + }
  68 +
  69 + public void setSchoolRate(Double schoolRate) {
  70 + this.schoolRate = schoolRate;
  71 + }
  72 +
  73 + public Double getAllAvg() {
  74 + return allAvg;
  75 + }
  76 +
  77 + public void setAllAvg(Double allAvg) {
  78 + this.allAvg = allAvg;
  79 + }
  80 +
  81 + public Double getSchoolAvg() {
  82 + return schoolAvg;
  83 + }
  84 +
  85 + public void setSchoolAvg(Double schoolAvg) {
  86 + this.schoolAvg = schoolAvg;
  87 + }
  88 +
  89 + public Double getAllDist() {
  90 + return allDist;
  91 + }
  92 +
  93 + public void setAllDist(Double allDist) {
  94 + this.allDist = allDist;
  95 + }
  96 +
  97 + public Double getSchoolDist() {
  98 + return schoolDist;
  99 + }
  100 +
  101 + public void setSchoolDist(Double schoolDist) {
  102 + this.schoolDist = schoolDist;
  103 + }
  104 +
  105 + public String getDifficultName() {
  106 + return difficultName;
  107 + }
  108 +
  109 + public void setDifficultName(String difficultName) {
  110 + this.difficultName = difficultName;
  111 + }
  112 +
  113 + public Double getLeagueRate() {
  114 + return leagueRate;
  115 + }
  116 +
  117 + public void setLeagueRate(Double leagueRate) {
  118 + this.leagueRate = leagueRate;
  119 + }
  120 +
  121 + public Double getLeagueAvg() {
  122 + return leagueAvg;
  123 + }
  124 +
  125 + public void setLeagueAvg(Double leagueAvg) {
  126 + this.leagueAvg = leagueAvg;
  127 + }
  128 +
  129 + public Double getLeagueDist() {
  130 + return leagueDist;
  131 + }
  132 +
  133 + public void setLeagueDist(Double leagueDist) {
  134 + this.leagueDist = leagueDist;
  135 + }
  136 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form5RepVO.java 0 → 100644
... ... @@ -0,0 +1,25 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +import io.swagger.annotations.ApiModel;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/22 0022 10:28
  12 + */
  13 +@ApiModel
  14 +public class Form5RepVO extends BaseVo {
  15 +
  16 + private List<Form5> data ;
  17 +
  18 + public List<Form5> getData() {
  19 + return data;
  20 + }
  21 +
  22 + public void setData(List<Form5> data) {
  23 + this.data = data;
  24 + }
  25 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form6.java 0 → 100644
... ... @@ -0,0 +1,137 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/21 0021 11:25
  12 + */
  13 +@ApiModel
  14 +public class Form6 implements Serializable {
  15 + @ApiModelProperty(value="维度名称")
  16 + private String dimensional ;
  17 + @ApiModelProperty(value="分值")
  18 + private Double score ;
  19 + @ApiModelProperty(value="得分率 区")
  20 + private Double allRate ;
  21 + @ApiModelProperty(value="得分率 联盟校")
  22 + private Double leagueRate ;
  23 + @ApiModelProperty(value="得分率 本校")
  24 + private Double schoolRate ;
  25 + @ApiModelProperty(value="平均分 区")
  26 + private Double allAvg ;
  27 + @ApiModelProperty(value="平均分 联盟校")
  28 + private Double leagueAvg ;
  29 + @ApiModelProperty(value="平均分 本校")
  30 + private Double schoolAvg ;
  31 + @ApiModelProperty(value="区分度 区")
  32 + private Double allDist ;
  33 + @ApiModelProperty(value="区分度 联盟校")
  34 + private Double leagueDist ;
  35 + @ApiModelProperty(value="区分度 本校")
  36 + private Double schoolDist ;
  37 +
  38 +
  39 + private String examNumber ;
  40 +
  41 +
  42 + public Double getScore() {
  43 + return score;
  44 + }
  45 +
  46 + public void setScore(Double score) {
  47 + this.score = score;
  48 + }
  49 +
  50 + public Double getAllRate() {
  51 + return allRate;
  52 + }
  53 +
  54 + public void setAllRate(Double allRate) {
  55 + this.allRate = allRate;
  56 + }
  57 +
  58 + public Double getSchoolRate() {
  59 + return schoolRate;
  60 + }
  61 +
  62 + public void setSchoolRate(Double schoolRate) {
  63 + this.schoolRate = schoolRate;
  64 + }
  65 +
  66 + public Double getAllAvg() {
  67 + return allAvg;
  68 + }
  69 +
  70 + public void setAllAvg(Double allAvg) {
  71 + this.allAvg = allAvg;
  72 + }
  73 +
  74 + public Double getSchoolAvg() {
  75 + return schoolAvg;
  76 + }
  77 +
  78 + public void setSchoolAvg(Double schoolAvg) {
  79 + this.schoolAvg = schoolAvg;
  80 + }
  81 +
  82 + public Double getAllDist() {
  83 + return allDist;
  84 + }
  85 +
  86 + public void setAllDist(Double allDist) {
  87 + this.allDist = allDist;
  88 + }
  89 +
  90 + public Double getSchoolDist() {
  91 + return schoolDist;
  92 + }
  93 +
  94 + public void setSchoolDist(Double schoolDist) {
  95 + this.schoolDist = schoolDist;
  96 + }
  97 +
  98 + public String getExamNumber() {
  99 + return examNumber;
  100 + }
  101 +
  102 + public void setExamNumber(String examNumber) {
  103 + this.examNumber = examNumber;
  104 + }
  105 +
  106 + public String getDimensional() {
  107 + return dimensional;
  108 + }
  109 +
  110 + public void setDimensional(String dimensional) {
  111 + this.dimensional = dimensional;
  112 + }
  113 +
  114 + public Double getLeagueRate() {
  115 + return leagueRate;
  116 + }
  117 +
  118 + public void setLeagueRate(Double leagueRate) {
  119 + this.leagueRate = leagueRate;
  120 + }
  121 +
  122 + public Double getLeagueAvg() {
  123 + return leagueAvg;
  124 + }
  125 +
  126 + public void setLeagueAvg(Double leagueAvg) {
  127 + this.leagueAvg = leagueAvg;
  128 + }
  129 +
  130 + public Double getLeagueDist() {
  131 + return leagueDist;
  132 + }
  133 +
  134 + public void setLeagueDist(Double leagueDist) {
  135 + this.leagueDist = leagueDist;
  136 + }
  137 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form6RepVO.java 0 → 100644
... ... @@ -0,0 +1,25 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +import io.swagger.annotations.ApiModel;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/22 0022 10:51
  12 + */
  13 +@ApiModel
  14 +public class Form6RepVO extends BaseVo {
  15 +
  16 + private List<Form6> data ;
  17 +
  18 + public List<Form6> getData() {
  19 + return data;
  20 + }
  21 +
  22 + public void setData(List<Form6> data) {
  23 + this.data = data;
  24 + }
  25 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form7.java 0 → 100644
... ... @@ -0,0 +1,46 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/21 0021 14:58
  12 + */
  13 +@ApiModel
  14 +public class Form7 implements Serializable {
  15 +
  16 + @ApiModelProperty(value = "名称")
  17 + private String name ;
  18 + @ApiModelProperty(value = "分值")
  19 + private Double score ;
  20 + @ApiModelProperty(value = "占比")
  21 + private Double percent ;
  22 +
  23 + public Double getScore() {
  24 + return score;
  25 + }
  26 +
  27 + public void setScore(Double score) {
  28 + this.score = score;
  29 + }
  30 +
  31 + public String getName() {
  32 + return name;
  33 + }
  34 +
  35 + public void setName(String name) {
  36 + this.name = name;
  37 + }
  38 +
  39 + public Double getPercent() {
  40 + return percent;
  41 + }
  42 +
  43 + public void setPercent(Double percent) {
  44 + this.percent = percent;
  45 + }
  46 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form7RepVO.java 0 → 100644
... ... @@ -0,0 +1,88 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import com.sincere.common.dto.independence.ChapterDto;
  4 +import com.sincere.common.vo.BaseVo;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +
  8 +import java.util.List;
  9 +
  10 +/**
  11 + * @author chen
  12 + * @version 1.0
  13 + * @date 2019/10/24 0024 9:20
  14 + */
  15 +@ApiModel
  16 +public class Form7RepVO extends BaseVo {
  17 +
  18 + @ApiModelProperty(value = "举例七年级上册")
  19 + private String examScope ;
  20 + @ApiModelProperty(value = "科目")
  21 + private String courseName ;
  22 + @ApiModelProperty(value = "满分")
  23 + private Double maxScore ;
  24 + @ApiModelProperty(value = "考试时长")
  25 + private String examTime ;
  26 + @ApiModelProperty(value = "章节列表对应分值")
  27 + private List<ChapterDto> list ;
  28 + @ApiModelProperty(value = "难度列表对应分值")
  29 + private List<Form7> difficultList ;
  30 + @ApiModelProperty(value = "题型类型对应分值")
  31 + private List<Form7> typeList ;
  32 +
  33 + public String getExamScope() {
  34 + return examScope;
  35 + }
  36 +
  37 + public void setExamScope(String examScope) {
  38 + this.examScope = examScope;
  39 + }
  40 +
  41 + public String getCourseName() {
  42 + return courseName;
  43 + }
  44 +
  45 + public void setCourseName(String courseName) {
  46 + this.courseName = courseName;
  47 + }
  48 +
  49 + public List<ChapterDto> getList() {
  50 + return list;
  51 + }
  52 +
  53 + public void setList(List<ChapterDto> list) {
  54 + this.list = list;
  55 + }
  56 +
  57 + public List<Form7> getDifficultList() {
  58 + return difficultList;
  59 + }
  60 +
  61 + public void setDifficultList(List<Form7> difficultList) {
  62 + this.difficultList = difficultList;
  63 + }
  64 +
  65 + public List<Form7> getTypeList() {
  66 + return typeList;
  67 + }
  68 +
  69 + public void setTypeList(List<Form7> typeList) {
  70 + this.typeList = typeList;
  71 + }
  72 +
  73 + public Double getMaxScore() {
  74 + return maxScore;
  75 + }
  76 +
  77 + public void setMaxScore(Double maxScore) {
  78 + this.maxScore = maxScore;
  79 + }
  80 +
  81 + public String getExamTime() {
  82 + return examTime;
  83 + }
  84 +
  85 + public void setExamTime(String examTime) {
  86 + this.examTime = examTime;
  87 + }
  88 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form8.java 0 → 100644
... ... @@ -0,0 +1,66 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/21 0021 15:14
  12 + */
  13 +@ApiModel
  14 +public class Form8 implements Serializable {
  15 +
  16 + @ApiModelProperty(value="题目难度")
  17 + private String difficultName ;
  18 + @ApiModelProperty(value="分值")
  19 + private Double score ;
  20 + @ApiModelProperty(value="得分率 区")
  21 + private Double allRate ;
  22 + @ApiModelProperty(value="得分率 联盟校")
  23 + private Double leagueRate ;
  24 + @ApiModelProperty(value="得分率 本校")
  25 + private Double schoolRate ;
  26 +
  27 + public String getDifficultName() {
  28 + return difficultName;
  29 + }
  30 +
  31 + public void setDifficultName(String difficultName) {
  32 + this.difficultName = difficultName;
  33 + }
  34 +
  35 + public Double getScore() {
  36 + return score;
  37 + }
  38 +
  39 + public void setScore(Double score) {
  40 + this.score = score;
  41 + }
  42 +
  43 + public Double getAllRate() {
  44 + return allRate;
  45 + }
  46 +
  47 + public void setAllRate(Double allRate) {
  48 + this.allRate = allRate;
  49 + }
  50 +
  51 + public Double getSchoolRate() {
  52 + return schoolRate;
  53 + }
  54 +
  55 + public void setSchoolRate(Double schoolRate) {
  56 + this.schoolRate = schoolRate;
  57 + }
  58 +
  59 + public Double getLeagueRate() {
  60 + return leagueRate;
  61 + }
  62 +
  63 + public void setLeagueRate(Double leagueRate) {
  64 + this.leagueRate = leagueRate;
  65 + }
  66 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Form8RepVO.java 0 → 100644
... ... @@ -0,0 +1,25 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +import io.swagger.annotations.ApiModel;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/22 0022 10:47
  12 + */
  13 +@ApiModel
  14 +public class Form8RepVO extends BaseVo {
  15 +
  16 + private List<Form8> data ;
  17 +
  18 + public List<Form8> getData() {
  19 + return data;
  20 + }
  21 +
  22 + public void setData(List<Form8> data) {
  23 + this.data = data;
  24 + }
  25 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/SuggestRepVo.java 0 → 100644
... ... @@ -0,0 +1,135 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/23 0023 9:04
  12 + */
  13 +@ApiModel
  14 +public class SuggestRepVo {
  15 + @ApiModelProperty(value = "总体情况")
  16 + private String assess ;
  17 + @ApiModelProperty(value = "难度系数")
  18 + private String difficultyDegree ;
  19 + @ApiModelProperty(value = "优秀率")
  20 + private String excellentRate ;
  21 + @ApiModelProperty(value = "知识点得分率不到50%的")
  22 + private List<String> lessKnowledgeList ;
  23 + @ApiModelProperty(value = "知识点得分率不到70%")
  24 + private List<String> midKnowledgeList ;
  25 + @ApiModelProperty(value = "学习能力得分率<69%")
  26 + private List<String> lessAbilityList ;
  27 + @ApiModelProperty(value = "学习能力得分率在70%≤η<80%")
  28 + private List<String> midAbilityList ;
  29 + @ApiModelProperty(value = "学习能力得分率≥80%")
  30 + private List<String> highAbilityList ;
  31 + @ApiModelProperty(value = "探究技能方面得分率<69%")
  32 + private List<String> lessSkillList ;
  33 + @ApiModelProperty(value = "探究技能方面得分率在70%≤η<80%")
  34 + private List<String> midSkillList ;
  35 + @ApiModelProperty(value = "探究技能方面得分率≥80%")
  36 + private List<String> highSkillList ;
  37 + @ApiModelProperty(value = "选择题错误率>15%")
  38 + private List<String> errorList ;
  39 +
  40 + public List<String> getErrorList() {
  41 + return errorList;
  42 + }
  43 +
  44 + public void setErrorList(List<String> errorList) {
  45 + this.errorList = errorList;
  46 + }
  47 +
  48 + public String getAssess() {
  49 + return assess;
  50 + }
  51 +
  52 + public void setAssess(String assess) {
  53 + this.assess = assess;
  54 + }
  55 +
  56 + public String getDifficultyDegree() {
  57 + return difficultyDegree;
  58 + }
  59 +
  60 + public void setDifficultyDegree(String difficultyDegree) {
  61 + this.difficultyDegree = difficultyDegree;
  62 + }
  63 +
  64 + public String getExcellentRate() {
  65 + return excellentRate;
  66 + }
  67 +
  68 + public void setExcellentRate(String excellentRate) {
  69 + this.excellentRate = excellentRate;
  70 + }
  71 +
  72 + public List<String> getLessKnowledgeList() {
  73 + return lessKnowledgeList;
  74 + }
  75 +
  76 + public void setLessKnowledgeList(List<String> lessKnowledgeList) {
  77 + this.lessKnowledgeList = lessKnowledgeList;
  78 + }
  79 +
  80 + public List<String> getMidKnowledgeList() {
  81 + return midKnowledgeList;
  82 + }
  83 +
  84 + public void setMidKnowledgeList(List<String> midKnowledgeList) {
  85 + this.midKnowledgeList = midKnowledgeList;
  86 + }
  87 +
  88 + public List<String> getLessAbilityList() {
  89 + return lessAbilityList;
  90 + }
  91 +
  92 + public void setLessAbilityList(List<String> lessAbilityList) {
  93 + this.lessAbilityList = lessAbilityList;
  94 + }
  95 +
  96 + public List<String> getMidAbilityList() {
  97 + return midAbilityList;
  98 + }
  99 +
  100 + public void setMidAbilityList(List<String> midAbilityList) {
  101 + this.midAbilityList = midAbilityList;
  102 + }
  103 +
  104 + public List<String> getHighAbilityList() {
  105 + return highAbilityList;
  106 + }
  107 +
  108 + public void setHighAbilityList(List<String> highAbilityList) {
  109 + this.highAbilityList = highAbilityList;
  110 + }
  111 +
  112 + public List<String> getLessSkillList() {
  113 + return lessSkillList;
  114 + }
  115 +
  116 + public void setLessSkillList(List<String> lessSkillList) {
  117 + this.lessSkillList = lessSkillList;
  118 + }
  119 +
  120 + public List<String> getMidSkillList() {
  121 + return midSkillList;
  122 + }
  123 +
  124 + public void setMidSkillList(List<String> midSkillList) {
  125 + this.midSkillList = midSkillList;
  126 + }
  127 +
  128 + public List<String> getHighSkillList() {
  129 + return highSkillList;
  130 + }
  131 +
  132 + public void setHighSkillList(List<String> highSkillList) {
  133 + this.highSkillList = highSkillList;
  134 + }
  135 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Table1.java 0 → 100644
... ... @@ -0,0 +1,35 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/10/21 0021 8:34
  12 + */
  13 +@ApiModel
  14 +public class Table1 implements Serializable {
  15 + @ApiModelProperty(value="分数段")
  16 + private String score ;
  17 + @ApiModelProperty(value="人数")
  18 + private int number ;
  19 +
  20 + public String getScore() {
  21 + return score;
  22 + }
  23 +
  24 + public void setScore(String score) {
  25 + this.score = score;
  26 + }
  27 +
  28 + public int getNumber() {
  29 + return number;
  30 + }
  31 +
  32 + public void setNumber(int number) {
  33 + this.number = number;
  34 + }
  35 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Table2.java 0 → 100644
... ... @@ -0,0 +1,55 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +/**
  9 + * @author chen
  10 + * @version 1.0
  11 + * @date 2019/11/5 0005 8:27
  12 + */
  13 +@ApiModel
  14 +public class Table2 implements Serializable {
  15 + @ApiModelProperty(value = "知识点")
  16 + private String knowledge ;
  17 + @ApiModelProperty(value = "得分率")
  18 + private Double schoolRate ;
  19 + @ApiModelProperty(value = "考频")
  20 + private String rate ;
  21 + @ApiModelProperty(value = "平均分")
  22 + private String avg ;
  23 +
  24 + public String getKnowledge() {
  25 + return knowledge;
  26 + }
  27 +
  28 + public void setKnowledge(String knowledge) {
  29 + this.knowledge = knowledge;
  30 + }
  31 +
  32 + public Double getSchoolRate() {
  33 + return schoolRate;
  34 + }
  35 +
  36 + public void setSchoolRate(Double schoolRate) {
  37 + this.schoolRate = schoolRate;
  38 + }
  39 +
  40 + public String getRate() {
  41 + return rate;
  42 + }
  43 +
  44 + public void setRate(String rate) {
  45 + this.rate = rate;
  46 + }
  47 +
  48 + public String getAvg() {
  49 + return avg;
  50 + }
  51 +
  52 + public void setAvg(String avg) {
  53 + this.avg = avg;
  54 + }
  55 +}
... ...
cloud/common/src/main/java/com/sincere/common/vo/independence/school/Table2RepVO.java 0 → 100644
... ... @@ -0,0 +1,23 @@
  1 +package com.sincere.common.vo.independence.school;
  2 +
  3 +import com.sincere.common.vo.BaseVo;
  4 +
  5 +import java.util.List;
  6 +
  7 +/**
  8 + * @author chen
  9 + * @version 1.0
  10 + * @date 2019/11/5 0005 8:39
  11 + */
  12 +public class Table2RepVO extends BaseVo {
  13 +
  14 + private List<Table2> data ;
  15 +
  16 + public List<Table2> getData() {
  17 + return data;
  18 + }
  19 +
  20 + public void setData(List<Table2> data) {
  21 + this.data = data;
  22 + }
  23 +}
... ...
cloud/common/src/main/resources/application.properties
No preview for this file type
cloud/common/src/main/resources/conf.properties 0 → 100644
... ... @@ -0,0 +1,4 @@
  1 +#redis
  2 +redis.host=121.40.109.21
  3 +redis.port=6379
  4 +redis.password=123456
0 5 \ No newline at end of file
... ...
cloud/config.txt