Преглед изворни кода

操作日志

tags/正式3.13.0
王宁 пре 1 година
родитељ
комит
3e9fda2534
100 измењених фајлова са 1155 додато и 223 уклоњено
  1. 3
    2
      README.md
  2. 8
    0
      gateway/src/main/resources/application.properties
  3. 1
    0
      gateway/src/test/java/com/xhkjedu/gateway/GatewayApplicationTests.java
  4. 6
    0
      pom.xml
  5. 0
    6
      sapi/pom.xml
  6. 3
    1
      sapi/src/main/java/com/xhkjedu/sapi/mapper/system/UserMapper.java
  7. 2
    2
      sapi/src/main/resources/application.properties
  8. 5
    0
      sapi/src/main/resources/mapper/system/UserMapper.xml
  9. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/SclassApplication.java
  10. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/config/ConfigKey.java
  11. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/config/ScheduledConfig.java
  12. 11
    11
      sclass/src/main/java/com/xhkjedu/slog/controller/classroom/ClassroomController.java
  13. 3
    3
      sclass/src/main/java/com/xhkjedu/slog/controller/classroom/ClassroomVideoController.java
  14. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/controller/status/StatusController.java
  15. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/interceptors/HttpServletFilter.java
  16. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/interceptors/RequestInterceptor.java
  17. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/interceptors/RequestWrapper.java
  18. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/interceptors/WebMvcConfg.java
  19. 3
    3
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomActivestudentMapper.java
  20. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomAskstudentMapper.java
  21. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomAskteacherMapper.java
  22. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomFileMapper.java
  23. 10
    10
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomMapper.java
  24. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperFileMapper.java
  25. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperMapper.java
  26. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperQtypeMapper.java
  27. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperScantronMapper.java
  28. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperStudentMapper.java
  29. 3
    3
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperStudentScantronMapper.java
  30. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomSignMapper.java
  31. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomVideoMapper.java
  32. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroom.java
  33. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomActivestudent.java
  34. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomAskstudent.java
  35. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomAskteacher.java
  36. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomFile.java
  37. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaper.java
  38. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperFile.java
  39. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperQtype.java
  40. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperScantron.java
  41. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperStudent.java
  42. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperStudentScantron.java
  43. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomSign.java
  44. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomVideo.java
  45. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/paperstudent/TPaperStudent.java
  46. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/model/paperstudent/TPaperStudentScantron.java
  47. 15
    15
      sclass/src/main/java/com/xhkjedu/slog/service/classroom/ClassroomPaperService.java
  48. 7
    7
      sclass/src/main/java/com/xhkjedu/slog/service/classroom/ClassroomService.java
  49. 3
    3
      sclass/src/main/java/com/xhkjedu/slog/service/classroom/ClassroomVideoService.java
  50. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/task/UriMapTask.java
  51. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/utils/ArithUtil.java
  52. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/utils/ClassUtil.java
  53. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ObjectiveAnswerVo.java
  54. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ObjectiveVo.java
  55. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ReportEQuestionVo.java
  56. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ReportExamVo.java
  57. 2
    2
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ReportRoomVo.java
  58. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomAskTeacherVo.java
  59. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomCorrectCallVo.java
  60. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomCorrectExamVo.java
  61. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomCorrectVo.java
  62. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomVo.java
  63. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/classroom/SubjectiveVo.java
  64. 3
    3
      sclass/src/main/java/com/xhkjedu/slog/vo/paper/CheckClassVo.java
  65. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/paper/PaperVo.java
  66. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/paperstudent/StudentVo.java
  67. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/room/RoomPVo.java
  68. 1
    1
      sclass/src/main/java/com/xhkjedu/slog/vo/room/RoomParamVo.java
  69. 3
    3
      sclass/src/main/resources/application.properties
  70. 1
    1
      sclass/src/main/resources/mapper/classroom/ClassroomActivestudentMapper.xml
  71. 19
    19
      sclass/src/main/resources/mapper/classroom/ClassroomMapper.xml
  72. 2
    2
      sclass/src/main/resources/mapper/classroom/ClassroomPaperFileMapper.xml
  73. 1
    1
      sclass/src/main/resources/mapper/classroom/ClassroomPaperScantronMapper.xml
  74. 1
    1
      sclass/src/main/resources/mapper/classroom/ClassroomPaperStudentMapper.xml
  75. 1
    1
      sclass/src/test/java/com/xhkjedu/slog/SclassApplicationTests.java
  76. 13
    0
      scommons/pom.xml
  77. 19
    0
      scommons/src/main/java/com/xhkjedu/annotation/Action.java
  78. 43
    0
      scommons/src/main/java/com/xhkjedu/annotation/ScalaParam.java
  79. 28
    0
      scommons/src/main/java/com/xhkjedu/constant/PlatformConstant.java
  80. 19
    0
      scommons/src/main/java/com/xhkjedu/exception/ServiceException.java
  81. 72
    0
      scommons/src/main/java/com/xhkjedu/model/slog/THandleLog.java
  82. 15
    0
      scommons/src/main/java/com/xhkjedu/utils/DatesUtil.java
  83. 52
    0
      scommons/src/main/java/com/xhkjedu/utils/IpRegionUtil.java
  84. 36
    0
      scommons/src/main/java/com/xhkjedu/utils/N_Utils.java
  85. 0
    5
      sexam/pom.xml
  86. 2
    2
      sexam/src/main/resources/application.properties
  87. 1
    12
      slive/pom.xml
  88. 4
    4
      slive/src/main/java/com/xhkjedu/slive/service/liveplay/CourseSectionStudentService.java
  89. 0
    36
      slive/src/main/java/com/xhkjedu/slive/utils/LiveUtil.java
  90. 2
    2
      slive/src/main/resources/application.properties
  91. 33
    0
      slog/.gitignore
  92. BIN
      slog/.mvn/wrapper/maven-wrapper.jar
  93. 2
    0
      slog/.mvn/wrapper/maven-wrapper.properties
  94. 316
    0
      slog/mvnw
  95. 188
    0
      slog/mvnw.cmd
  96. 62
    0
      slog/pom.xml
  97. 17
    0
      slog/src/main/java/com/xhkjedu/slog/SlogApplication.java
  98. 28
    0
      slog/src/main/java/com/xhkjedu/slog/config/ConfigKey.java
  99. 24
    0
      slog/src/main/java/com/xhkjedu/slog/config/RabbitConfig.java
  100. 0
    0
      slog/src/main/java/com/xhkjedu/slog/config/ScheduledConfig.java

+ 3
- 2
README.md Прегледај датотеку

@@ -7,8 +7,9 @@ sexam考试
7 7
 slive直播  
8 8
 sstudy作业相  
9 9
 suser用户  
10
-sapi分析及其他  
11
-scommons公共   
10
+sapi分析及其他
11
+slog操作日志
12
+scommons公共
12 13
 
13 14
 资源说明   version 版本  
14 15
 subject 科目  

+ 8
- 0
gateway/src/main/resources/application.properties Прегледај датотеку

@@ -50,6 +50,14 @@ spring.cloud.gateway.routes[5].filters[1].name=CircuitBreaker
50 50
 spring.cloud.gateway.routes[5].filters[1].args.name=fallbackcmd
51 51
 spring.cloud.gateway.routes[5].filters[1].args.fallbackUri=forward:/fallback
52 52
 
53
+spring.cloud.gateway.routes[6].id=path_slog
54
+spring.cloud.gateway.routes[6].uri=lb://slog
55
+spring.cloud.gateway.routes[6].predicates[0]=Path=/slog/**
56
+spring.cloud.gateway.routes[6].filters[0]=RewritePath=/slog/(?<segment>.*), /$\{segment}
57
+spring.cloud.gateway.routes[6].filters[1].name=CircuitBreaker
58
+spring.cloud.gateway.routes[6].filters[1].args.name=fallbackcmd
59
+spring.cloud.gateway.routes[6].filters[1].args.fallbackUri=forward:/fallback
60
+
53 61
 eureka.client.service-url.defaultZone=http://xhschool:Xhkjedud07@localhost:8081/eureka/
54 62
 eureka.client.register-with-eureka=true
55 63
 eureka.client.fetch-registry=true

+ 1
- 0
gateway/src/test/java/com/xhkjedu/gateway/GatewayApplicationTests.java Прегледај датотеку

@@ -8,6 +8,7 @@ class GatewayApplicationTests {
8 8
 
9 9
     @Test
10 10
     void contextLoads() {
11
+        System.out.println("网关打印");
11 12
     }
12 13
 
13 14
 }

+ 6
- 0
pom.xml Прегледај датотеку

@@ -21,6 +21,7 @@
21 21
         <module>sapi</module>
22 22
         <module>scommons</module>
23 23
         <module>sexam</module>
24
+        <module>slog</module>
24 25
     </modules>
25 26
 
26 27
     <parent>
@@ -87,6 +88,11 @@
87 88
                 <artifactId>sexam</artifactId>
88 89
                 <version>0.0.1-SNAPSHOT</version>
89 90
             </dependency>
91
+            <dependency>
92
+                <groupId>com.xhkjedu</groupId>
93
+                <artifactId>slog</artifactId>
94
+                <version>0.0.1-SNAPSHOT</version>
95
+            </dependency>
90 96
         </dependencies>
91 97
     </dependencyManagement>
92 98
 </project>

+ 0
- 6
sapi/pom.xml Прегледај датотеку

@@ -32,12 +32,6 @@
32 32
             <version>3.17</version>
33 33
         </dependency>
34 34
 
35
-        <!--amqp的起步依赖-->
36
-        <dependency>
37
-            <groupId>org.springframework.boot</groupId>
38
-            <artifactId>spring-boot-starter-amqp</artifactId>
39
-        </dependency>
40
-
41 35
     </dependencies>
42 36
     <dependencyManagement>
43 37
         <dependencies>

+ 3
- 1
sapi/src/main/java/com/xhkjedu/sapi/mapper/system/UserMapper.java Прегледај датотеку

@@ -1,7 +1,6 @@
1 1
 package com.xhkjedu.sapi.mapper.system;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sapi.model.gradeclass.TClassStudent;
5 4
 import com.xhkjedu.sapi.model.system.TUser;
6 5
 import com.xhkjedu.sapi.vo.system.UserVo;
7 6
 import org.apache.ibatis.annotations.Param;
@@ -40,4 +39,7 @@ public interface UserMapper extends TkMapper<TUser> {
40 39
 
41 40
     //删除学生绑定信息
42 41
     void delBindmac(@Param("schoolid") Integer schoolid);
42
+
43
+    //获取用户信息
44
+    TUser getUserTypeAndSchool(@Param("userid") Integer userid);
43 45
 }

+ 2
- 2
sapi/src/main/resources/application.properties Прегледај датотеку

@@ -46,8 +46,8 @@ spring.redis.jedis.pool.max-idle=300
46 46
 #最大等待时间:单位ms //高版本改为maxWaitMillis
47 47
 spring.redis.jedis.pool.max-wait=1000000
48 48
 spring.redis.jedis.pool.max-active=60000
49
-#缓存访问数据有效时长60*60*24*7
50
-redisdatatime=604800
49
+#缓存访问数据有效时长60*60*5
50
+redisdatatime=18000
51 51
 #secretKey必须为24位
52 52
 secretKey=nanhuakaizhangjianwangni
53 53
 #消费者mq

+ 5
- 0
sapi/src/main/resources/mapper/system/UserMapper.xml Прегледај датотеку

@@ -43,4 +43,9 @@
43 43
     <update id="delBindmac">
44 44
         update t_user set bindmac=0,mac=null where schoolid=#{schoolid}
45 45
     </update>
46
+
47
+    <!--获取用户信息-->
48
+    <select id="getUserTypeAndSchool" resultType="com.xhkjedu.sapi.model.system.TUser">
49
+        select usertype,schoolid from t_user where userid=#{userid}
50
+    </select>
46 51
 </mapper>

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/SclassApplication.java Прегледај датотеку

@@ -1,6 +1,6 @@
1
-package com.xhkjedu.sclass;
1
+package com.xhkjedu.slog;
2 2
 
3
-import com.xhkjedu.sclass.config.ConfigKey;
3
+import com.xhkjedu.slog.config.ConfigKey;
4 4
 import org.springframework.boot.SpringApplication;
5 5
 import org.springframework.boot.autoconfigure.SpringBootApplication;
6 6
 import tk.mybatis.spring.annotation.MapperScan;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/config/ConfigKey.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.config;
1
+package com.xhkjedu.slog.config;
2 2
 
3 3
 import org.springframework.beans.factory.annotation.Value;
4 4
 import org.springframework.stereotype.Component;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/config/ScheduledConfig.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.config;
1
+package com.xhkjedu.slog.config;
2 2
 
3 3
 import org.springframework.context.annotation.Bean;
4 4
 import org.springframework.context.annotation.Condition;

+ 11
- 11
sclass/src/main/java/com/xhkjedu/slog/controller/classroom/ClassroomController.java Прегледај датотеку

@@ -1,18 +1,18 @@
1
-package com.xhkjedu.sclass.controller.classroom;
1
+package com.xhkjedu.slog.controller.classroom;
2 2
 
3 3
 import com.alibaba.fastjson.JSON;
4 4
 import com.github.pagehelper.PageHelper;
5 5
 import com.github.pagehelper.PageInfo;
6
-import com.xhkjedu.sclass.model.classroom.*;
7
-import com.xhkjedu.sclass.model.paperstudent.TPaperStudent;
8
-import com.xhkjedu.sclass.model.paperstudent.TPaperStudentScantron;
9
-import com.xhkjedu.sclass.service.classroom.ClassroomPaperService;
10
-import com.xhkjedu.sclass.service.classroom.ClassroomService;
11
-import com.xhkjedu.sclass.vo.classroom.*;
12
-import com.xhkjedu.sclass.vo.paper.CheckClassVo;
13
-import com.xhkjedu.sclass.vo.paperstudent.StudentVo;
14
-import com.xhkjedu.sclass.vo.room.RoomPVo;
15
-import com.xhkjedu.sclass.vo.room.RoomParamVo;
6
+import com.xhkjedu.slog.model.classroom.*;
7
+import com.xhkjedu.slog.model.paperstudent.TPaperStudent;
8
+import com.xhkjedu.slog.model.paperstudent.TPaperStudentScantron;
9
+import com.xhkjedu.slog.service.classroom.ClassroomPaperService;
10
+import com.xhkjedu.slog.service.classroom.ClassroomService;
11
+import com.xhkjedu.slog.vo.classroom.*;
12
+import com.xhkjedu.slog.vo.paper.CheckClassVo;
13
+import com.xhkjedu.slog.vo.paperstudent.StudentVo;
14
+import com.xhkjedu.slog.vo.room.RoomPVo;
15
+import com.xhkjedu.slog.vo.room.RoomParamVo;
16 16
 import com.xhkjedu.utils.N_Utils;
17 17
 import com.xhkjedu.utils.PageUtil;
18 18
 import com.xhkjedu.vo.PageResult;

+ 3
- 3
sclass/src/main/java/com/xhkjedu/slog/controller/classroom/ClassroomVideoController.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.controller.classroom;
1
+package com.xhkjedu.slog.controller.classroom;
2 2
 
3
-import com.xhkjedu.sclass.model.classroom.TClassroomVideo;
4
-import com.xhkjedu.sclass.service.classroom.ClassroomVideoService;
3
+import com.xhkjedu.slog.model.classroom.TClassroomVideo;
4
+import com.xhkjedu.slog.service.classroom.ClassroomVideoService;
5 5
 import com.xhkjedu.utils.N_Utils;
6 6
 import com.xhkjedu.vo.ResultVo;
7 7
 import org.springframework.web.bind.annotation.PostMapping;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/controller/status/StatusController.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.controller.status;
1
+package com.xhkjedu.slog.controller.status;
2 2
 
3 3
 import com.xhkjedu.vo.ResultVo;
4 4
 import org.springframework.web.bind.annotation.GetMapping;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/interceptors/HttpServletFilter.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.interceptors;
1
+package com.xhkjedu.slog.interceptors;
2 2
 
3 3
 import org.springframework.stereotype.Component;
4 4
 

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/interceptors/RequestInterceptor.java Прегледај датотеку

@@ -1,8 +1,8 @@
1
-package com.xhkjedu.sclass.interceptors;
1
+package com.xhkjedu.slog.interceptors;
2 2
 
3 3
 import com.alibaba.fastjson.JSON;
4 4
 import com.xhkjedu.exception.MissingParametersException;
5
-import com.xhkjedu.sclass.utils.ClassUtil;
5
+import com.xhkjedu.slog.utils.ClassUtil;
6 6
 import com.xhkjedu.utils.JedisUtil;
7 7
 import com.xhkjedu.utils.N_Utils;
8 8
 import com.xhkjedu.vo.ResultVo;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/interceptors/RequestWrapper.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.interceptors;
1
+package com.xhkjedu.slog.interceptors;
2 2
 
3 3
 import lombok.extern.slf4j.Slf4j;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/interceptors/WebMvcConfg.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.interceptors;
1
+package com.xhkjedu.slog.interceptors;
2 2
 
3 3
 import org.springframework.beans.factory.annotation.Autowired;
4 4
 import org.springframework.boot.web.servlet.FilterRegistrationBean;

+ 3
- 3
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomActivestudentMapper.java Прегледај датотеку

@@ -1,8 +1,8 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroom;
5
-import com.xhkjedu.sclass.model.classroom.TClassroomActivestudent;
4
+import com.xhkjedu.slog.model.classroom.TClassroom;
5
+import com.xhkjedu.slog.model.classroom.TClassroomActivestudent;
6 6
 import org.apache.ibatis.annotations.Param;
7 7
 
8 8
 import java.util.List;

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomAskstudentMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomAskstudent;
4
+import com.xhkjedu.slog.model.classroom.TClassroomAskstudent;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 public interface ClassroomAskstudentMapper extends TkMapper<TClassroomAskstudent> {

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomAskteacherMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomAskteacher;
4
+import com.xhkjedu.slog.model.classroom.TClassroomAskteacher;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomFileMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomFile;
4
+import com.xhkjedu.slog.model.classroom.TClassroomFile;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 public interface ClassroomFileMapper extends TkMapper<TClassroomFile> {

+ 10
- 10
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomMapper.java Прегледај датотеку

@@ -1,15 +1,15 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroom;
5
-import com.xhkjedu.sclass.model.classroom.TClassroomFile;
6
-import com.xhkjedu.sclass.vo.classroom.ObjectiveVo;
7
-import com.xhkjedu.sclass.vo.classroom.ReportEQuestionVo;
8
-import com.xhkjedu.sclass.vo.classroom.ReportExamVo;
9
-import com.xhkjedu.sclass.vo.classroom.ReportRoomVo;
10
-import com.xhkjedu.sclass.vo.classroom.RoomCorrectVo;
11
-import com.xhkjedu.sclass.vo.classroom.SubjectiveVo;
12
-import com.xhkjedu.sclass.vo.paper.CheckClassVo;
4
+import com.xhkjedu.slog.model.classroom.TClassroom;
5
+import com.xhkjedu.slog.model.classroom.TClassroomFile;
6
+import com.xhkjedu.slog.vo.classroom.ObjectiveVo;
7
+import com.xhkjedu.slog.vo.classroom.ReportEQuestionVo;
8
+import com.xhkjedu.slog.vo.classroom.ReportExamVo;
9
+import com.xhkjedu.slog.vo.classroom.ReportRoomVo;
10
+import com.xhkjedu.slog.vo.classroom.RoomCorrectVo;
11
+import com.xhkjedu.slog.vo.classroom.SubjectiveVo;
12
+import com.xhkjedu.slog.vo.paper.CheckClassVo;
13 13
 import org.apache.ibatis.annotations.Param;
14 14
 
15 15
 import java.util.List;

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperFileMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperFile;
4
+import com.xhkjedu.slog.model.classroom.TClassroomPaperFile;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomPaper;
4
+import com.xhkjedu.slog.model.classroom.TClassroomPaper;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperQtypeMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperQtype;
4
+import com.xhkjedu.slog.model.classroom.TClassroomPaperQtype;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperScantronMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperScantron;
4
+import com.xhkjedu.slog.model.classroom.TClassroomPaperScantron;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperStudentMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperStudent;
4
+import com.xhkjedu.slog.model.classroom.TClassroomPaperStudent;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;

+ 3
- 3
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomPaperStudentScantronMapper.java Прегледај датотеку

@@ -1,8 +1,8 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperStudentScantron;
5
-import com.xhkjedu.sclass.model.paperstudent.TPaperStudentScantron;
4
+import com.xhkjedu.slog.model.classroom.TClassroomPaperStudentScantron;
5
+import com.xhkjedu.slog.model.paperstudent.TPaperStudentScantron;
6 6
 import org.apache.ibatis.annotations.Param;
7 7
 
8 8
 import java.util.List;

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomSignMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomSign;
4
+import com.xhkjedu.slog.model.classroom.TClassroomSign;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/mapper/classroom/ClassroomVideoMapper.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.mapper.classroom;
1
+package com.xhkjedu.slog.mapper.classroom;
2 2
 
3 3
 import com.xhkjedu.base.TkMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomVideo;
4
+import com.xhkjedu.slog.model.classroom.TClassroomVideo;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroom.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomActivestudent.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomAskstudent.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomAskteacher.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomFile.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaper.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperFile.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperQtype.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperScantron.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperStudent.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomPaperStudentScantron.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomSign.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/classroom/TClassroomVideo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.classroom;
1
+package com.xhkjedu.slog.model.classroom;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/paperstudent/TPaperStudent.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.paperstudent;
1
+package com.xhkjedu.slog.model.paperstudent;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/model/paperstudent/TPaperStudentScantron.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.model.paperstudent;
1
+package com.xhkjedu.slog.model.paperstudent;
2 2
 
3 3
 import com.xhkjedu.model.BaseBean;
4 4
 import lombok.Data;

+ 15
- 15
sclass/src/main/java/com/xhkjedu/slog/service/classroom/ClassroomPaperService.java Прегледај датотеку

@@ -1,20 +1,20 @@
1
-package com.xhkjedu.sclass.service.classroom;
1
+package com.xhkjedu.slog.service.classroom;
2 2
 
3 3
 import com.alibaba.fastjson.JSON;
4
-import com.xhkjedu.sclass.mapper.classroom.ClassroomPaperFileMapper;
5
-import com.xhkjedu.sclass.mapper.classroom.ClassroomPaperMapper;
6
-import com.xhkjedu.sclass.mapper.classroom.ClassroomPaperQtypeMapper;
7
-import com.xhkjedu.sclass.mapper.classroom.ClassroomPaperScantronMapper;
8
-import com.xhkjedu.sclass.mapper.classroom.ClassroomPaperStudentMapper;
9
-import com.xhkjedu.sclass.mapper.classroom.ClassroomPaperStudentScantronMapper;
10
-import com.xhkjedu.sclass.model.classroom.TClassroomPaper;
11
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperFile;
12
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperQtype;
13
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperScantron;
14
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperStudent;
15
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperStudentScantron;
16
-import com.xhkjedu.sclass.model.paperstudent.TPaperStudentScantron;
17
-import com.xhkjedu.sclass.utils.ArithUtil;
4
+import com.xhkjedu.slog.mapper.classroom.ClassroomPaperFileMapper;
5
+import com.xhkjedu.slog.mapper.classroom.ClassroomPaperMapper;
6
+import com.xhkjedu.slog.mapper.classroom.ClassroomPaperQtypeMapper;
7
+import com.xhkjedu.slog.mapper.classroom.ClassroomPaperScantronMapper;
8
+import com.xhkjedu.slog.mapper.classroom.ClassroomPaperStudentMapper;
9
+import com.xhkjedu.slog.mapper.classroom.ClassroomPaperStudentScantronMapper;
10
+import com.xhkjedu.slog.model.classroom.TClassroomPaper;
11
+import com.xhkjedu.slog.model.classroom.TClassroomPaperFile;
12
+import com.xhkjedu.slog.model.classroom.TClassroomPaperQtype;
13
+import com.xhkjedu.slog.model.classroom.TClassroomPaperScantron;
14
+import com.xhkjedu.slog.model.classroom.TClassroomPaperStudent;
15
+import com.xhkjedu.slog.model.classroom.TClassroomPaperStudentScantron;
16
+import com.xhkjedu.slog.model.paperstudent.TPaperStudentScantron;
17
+import com.xhkjedu.slog.utils.ArithUtil;
18 18
 import com.xhkjedu.utils.N_Utils;
19 19
 import lombok.extern.slf4j.Slf4j;
20 20
 import org.springframework.stereotype.Service;

+ 7
- 7
sclass/src/main/java/com/xhkjedu/slog/service/classroom/ClassroomService.java Прегледај датотеку

@@ -1,12 +1,12 @@
1
-package com.xhkjedu.sclass.service.classroom;
1
+package com.xhkjedu.slog.service.classroom;
2 2
 
3 3
 import com.alibaba.fastjson.JSON;
4
-import com.xhkjedu.sclass.mapper.classroom.*;
5
-import com.xhkjedu.sclass.model.classroom.*;
6
-import com.xhkjedu.sclass.utils.ArithUtil;
7
-import com.xhkjedu.sclass.vo.classroom.*;
8
-import com.xhkjedu.sclass.vo.paper.CheckClassVo;
9
-import com.xhkjedu.sclass.vo.room.RoomParamVo;
4
+import com.xhkjedu.slog.mapper.classroom.*;
5
+import com.xhkjedu.slog.model.classroom.*;
6
+import com.xhkjedu.slog.utils.ArithUtil;
7
+import com.xhkjedu.slog.vo.classroom.*;
8
+import com.xhkjedu.slog.vo.paper.CheckClassVo;
9
+import com.xhkjedu.slog.vo.room.RoomParamVo;
10 10
 import com.xhkjedu.utils.N_Utils;
11 11
 import com.xhkjedu.vo.ResultVo;
12 12
 import lombok.extern.slf4j.Slf4j;

+ 3
- 3
sclass/src/main/java/com/xhkjedu/slog/service/classroom/ClassroomVideoService.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.service.classroom;
1
+package com.xhkjedu.slog.service.classroom;
2 2
 
3
-import com.xhkjedu.sclass.mapper.classroom.ClassroomVideoMapper;
4
-import com.xhkjedu.sclass.model.classroom.TClassroomVideo;
3
+import com.xhkjedu.slog.mapper.classroom.ClassroomVideoMapper;
4
+import com.xhkjedu.slog.model.classroom.TClassroomVideo;
5 5
 import com.xhkjedu.utils.N_Utils;
6 6
 import org.springframework.stereotype.Service;
7 7
 

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/task/UriMapTask.java Прегледај датотеку

@@ -1,6 +1,6 @@
1
-package com.xhkjedu.sclass.task;
1
+package com.xhkjedu.slog.task;
2 2
 
3
-import com.xhkjedu.sclass.utils.ClassUtil;
3
+import com.xhkjedu.slog.utils.ClassUtil;
4 4
 import org.springframework.scheduling.annotation.Scheduled;
5 5
 import org.springframework.stereotype.Component;
6 6
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/utils/ArithUtil.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.utils;
1
+package com.xhkjedu.slog.utils;
2 2
 
3 3
 import java.math.BigDecimal;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/utils/ClassUtil.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.utils;
1
+package com.xhkjedu.slog.utils;
2 2
 
3 3
 import java.util.Map;
4 4
 import java.util.concurrent.ConcurrentHashMap;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ObjectiveAnswerVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ObjectiveVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ReportEQuestionVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ReportExamVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 2
- 2
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/ReportRoomVo.java Прегледај датотеку

@@ -1,6 +1,6 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3
-import com.xhkjedu.sclass.model.classroom.TClassroomFile;
3
+import com.xhkjedu.slog.model.classroom.TClassroomFile;
4 4
 import lombok.Data;
5 5
 
6 6
 import java.util.List;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomAskTeacherVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomCorrectCallVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomCorrectExamVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomCorrectVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/RoomVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/classroom/SubjectiveVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.classroom;
1
+package com.xhkjedu.slog.vo.classroom;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 3
- 3
sclass/src/main/java/com/xhkjedu/slog/vo/paper/CheckClassVo.java Прегледај датотеку

@@ -1,7 +1,7 @@
1
-package com.xhkjedu.sclass.vo.paper;
1
+package com.xhkjedu.slog.vo.paper;
2 2
 
3
-import com.xhkjedu.sclass.model.classroom.TClassroomPaperFile;
4
-import com.xhkjedu.sclass.vo.paperstudent.StudentVo;
3
+import com.xhkjedu.slog.model.classroom.TClassroomPaperFile;
4
+import com.xhkjedu.slog.vo.paperstudent.StudentVo;
5 5
 import lombok.Data;
6 6
 
7 7
 import java.util.List;

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/paper/PaperVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.paper;
1
+package com.xhkjedu.slog.vo.paper;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/paperstudent/StudentVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.paperstudent;
1
+package com.xhkjedu.slog.vo.paperstudent;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/room/RoomPVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.room;
1
+package com.xhkjedu.slog.vo.room;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 1
- 1
sclass/src/main/java/com/xhkjedu/slog/vo/room/RoomParamVo.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass.vo.room;
1
+package com.xhkjedu.slog.vo.room;
2 2
 
3 3
 import lombok.Data;
4 4
 

+ 3
- 3
sclass/src/main/resources/application.properties Прегледај датотеку

@@ -37,7 +37,7 @@ mapper.mappers=com.xhkjedu.base.TkMapper
37 37
 mybatis.configuration.call-setters-on-nulls=true
38 38
 mapper.identity=MYSQL
39 39
 #打印日志
40
-logging.level.com.xhkjedu.sclass.mapper=debug
40
+logging.level.com.xhkjedu.slog.mapper=debug
41 41
 #分页
42 42
 spring.pagehelper.helper-dialect=mysql
43 43
 
@@ -52,8 +52,8 @@ spring.redis.jedis.pool.max-idle=300
52 52
 #最大等待时间:单位ms //高版本改为maxWaitMillis
53 53
 spring.redis.jedis.pool.max-wait=1000000
54 54
 spring.redis.jedis.pool.max-active=60000
55
-#缓存访问数据有效时长60*60*24*7
56
-redisdatatime=604800
55
+#缓存访问数据有效时长60*60*5
56
+redisdatatime=18000
57 57
 #secretKey必须为24位
58 58
 secretKey=nanhuakaizhangjianwangni
59 59
 

+ 1
- 1
sclass/src/main/resources/mapper/classroom/ClassroomActivestudentMapper.xml Прегледај датотеку

@@ -48,7 +48,7 @@
48 48
         select group_concat(asktid) from t_classroom_askteacher where roomid=#{roomid}
49 49
     </select>
50 50
     <!--课堂学生-->
51
-    <select id="listRoomStu" resultType="com.xhkjedu.sclass.model.classroom.TClassroomActivestudent">
51
+    <select id="listRoomStu" resultType="com.xhkjedu.slog.model.classroom.TClassroomActivestudent">
52 52
         select cs.studentid,(
53 53
             (select count(distinct s.userid) from t_classroom_sign s where s.roomid=#{roomid} and s.userid=cs.studentid)
54 54
         <if test="asktids!=null and asktids!=''">

+ 19
- 19
sclass/src/main/resources/mapper/classroom/ClassroomMapper.xml Прегледај датотеку

@@ -16,7 +16,7 @@
16 16
         where r.roomid=#{roomid};
17 17
     </select>
18 18
     <!--获取批阅信息-->
19
-    <resultMap id="correctResult" type="com.xhkjedu.sclass.vo.classroom.RoomCorrectVo">
19
+    <resultMap id="correctResult" type="com.xhkjedu.slog.vo.classroom.RoomCorrectVo">
20 20
         <result property="roomid" column="roomid"></result>
21 21
         <result property="roomname" column="roomname"></result>
22 22
         <result property="createtime" column="createtime"></result>
@@ -24,21 +24,21 @@
24 24
         <result property="classname" column="classname"></result>
25 25
         <result property="gradeid" column="gradeid"></result>
26 26
         <result property="teachername" column="teachername"></result>
27
-        <collection property="calls" ofType="com.xhkjedu.sclass.vo.classroom.RoomCorrectCallVo"
27
+        <collection property="calls" ofType="com.xhkjedu.slog.vo.classroom.RoomCorrectCallVo"
28 28
                     select="listCall" column="{roomid=roomid,realstunum=realstunum}">
29 29
         </collection>
30
-        <collection property="exams" ofType="com.xhkjedu.sclass.vo.classroom.RoomCorrectExamVo"
30
+        <collection property="exams" ofType="com.xhkjedu.slog.vo.classroom.RoomCorrectExamVo"
31 31
                     select="listExam" column="{roomid=roomid,realstunum=realstunum}">
32 32
         </collection>
33 33
     </resultMap>
34
-    <select id="listCall" resultType="com.xhkjedu.sclass.vo.classroom.RoomCorrectCallVo">
34
+    <select id="listCall" resultType="com.xhkjedu.slog.vo.classroom.RoomCorrectCallVo">
35 35
         select s.asktid,count(*)commitnum,count(*) stunum
36 36
         ,sum(case when s.radiocorrect!=0 then 1 else 0 end)correctnum
37 37
         from t_classroom_askstudent s left join t_classroom_askteacher rt on s.asktid=rt.asktid
38 38
         where rt.roomid=#{roomid} and rt.asktype between 32 and 33
39 39
         group by s.asktid order by rt.createtime
40 40
     </select>
41
-    <select id="listExam" resultType="com.xhkjedu.sclass.vo.classroom.RoomCorrectExamVo">
41
+    <select id="listExam" resultType="com.xhkjedu.slog.vo.classroom.RoomCorrectExamVo">
42 42
         select s.paperid,p.papername,count(*)commitnum,count(*) stunum
43 43
         ,sum(case when s.pschecked!=0 then 1 else 0 end)correctnum
44 44
         from t_classroom_paper_student s left join t_classroom_paper p on s.paperid=p.paperid
@@ -55,13 +55,13 @@
55 55
     </select>
56 56
 
57 57
     <!--获取提问批改学生列表-->
58
-    <resultMap id="checkResult" type="com.xhkjedu.sclass.vo.paper.CheckClassVo">
58
+    <resultMap id="checkResult" type="com.xhkjedu.slog.vo.paper.CheckClassVo">
59 59
         <result property="classid" column="classid"></result>
60 60
         <result property="classnum" column="classnum"></result>
61 61
         <result property="ytjnum" column="ytjnum"></result>
62 62
         <result property="ypynum" column="ypynum"></result>
63 63
         <result property="teacherpic" column="teacherpic"></result>
64
-        <collection property="students" ofType="com.xhkjedu.sclass.vo.paperstudent.StudentVo">
64
+        <collection property="students" ofType="com.xhkjedu.slog.vo.paperstudent.StudentVo">
65 65
             <result property="psid" column="psid"></result>
66 66
             <result property="studentid" column="studentid"></result>
67 67
             <result property="studentname" column="studentname"></result>
@@ -90,7 +90,7 @@
90 90
         group by ps.psid order by ps.studentid
91 91
     </select>
92 92
 
93
-    <resultMap id="objectiveResult" type="com.xhkjedu.sclass.vo.classroom.ObjectiveVo">
93
+    <resultMap id="objectiveResult" type="com.xhkjedu.slog.vo.classroom.ObjectiveVo">
94 94
         <result property="typename" column="typename"></result>
95 95
         <result property="answer" column="answer"></result>
96 96
         <result property="correctrate" column="correctrate"></result>
@@ -98,7 +98,7 @@
98 98
         <result property="psscore" column="psscore"></result>
99 99
         <result property="avgscore" column="avgscore"></result>
100 100
         <result property="maxscore" column="maxscore"></result>
101
-        <collection property="answers" ofType="com.xhkjedu.sclass.vo.classroom.ObjectiveAnswerVo">
101
+        <collection property="answers" ofType="com.xhkjedu.slog.vo.classroom.ObjectiveAnswerVo">
102 102
             <result property="section" column="section"></result>
103 103
             <result property="stunum" column="stunum"></result>
104 104
             <result property="stuscore" column="stuscore"></result>
@@ -132,7 +132,7 @@
132 132
         group by pss.useranswer
133 133
     </select>
134 134
 
135
-    <resultMap id="subjectiveResult" type="com.xhkjedu.sclass.vo.classroom.SubjectiveVo">
135
+    <resultMap id="subjectiveResult" type="com.xhkjedu.slog.vo.classroom.SubjectiveVo">
136 136
         <result property="typename" column="typename"></result>
137 137
         <result property="correctrate" column="correctrate"></result>
138 138
         <result property="psorder" column="psorder"></result>
@@ -222,11 +222,11 @@
222 222
         <collection property="asks" ofType="java.util.Map"
223 223
                     select="listStuAsk" column="{roomid=roomid,studentid=studentid}">
224 224
         </collection>
225
-        <collection property="files" ofType="com.xhkjedu.sclass.model.classroom.TClassroomFile"
225
+        <collection property="files" ofType="com.xhkjedu.slog.model.classroom.TClassroomFile"
226 226
                     select="listFile" column="{roomid=roomid}">
227 227
         </collection>
228 228
     </resultMap>
229
-    <select id="listFile" resultType="com.xhkjedu.sclass.model.classroom.TClassroomFile">
229
+    <select id="listFile" resultType="com.xhkjedu.slog.model.classroom.TClassroomFile">
230 230
         select * from t_classroom_file where roomid=#{roomid}
231 231
     </select>
232 232
     <select id="getReportStu" resultMap="stuRoomResult">
@@ -324,7 +324,7 @@
324 324
         <result property="wpynum" column="wpynum"></result>
325 325
         <result property="classnum" column="classnum"></result>
326 326
         <result property="signstate" column="signstate"></result>
327
-        <collection property="hdlist" ofType="com.xhkjedu.sclass.vo.classroom.RoomAskTeacherVo"
327
+        <collection property="hdlist" ofType="com.xhkjedu.slog.vo.classroom.RoomAskTeacherVo"
328 328
                     select="listAskTeachersForRoom" column="{roomid=roomid}">
329 329
             <result property="asktid" column="asktid"></result>
330 330
             <result property="asktype" column="asktype"></result>
@@ -362,7 +362,7 @@
362 362
         </if>
363 363
         ORDER BY c.createtime DESC
364 364
     </select>
365
-    <select id="listAskTeachersForRoom" resultType="com.xhkjedu.sclass.vo.classroom.RoomAskTeacherVo">
365
+    <select id="listAskTeachersForRoom" resultType="com.xhkjedu.slog.vo.classroom.RoomAskTeacherVo">
366 366
         select asktid,asktype from t_classroom_askteacher where roomid=#{roomid}
367 367
     </select>
368 368
     <select id="listFilesForRoom" resultType="java.util.Map">
@@ -386,7 +386,7 @@
386 386
         </foreach>
387 387
     </update>
388 388
     <!--课堂回顾详情-->
389
-    <select id="getReport" resultType="com.xhkjedu.sclass.vo.classroom.ReportRoomVo">
389
+    <select id="getReport" resultType="com.xhkjedu.slog.vo.classroom.ReportRoomVo">
390 390
         select r.roomname,r.classnum,r.realstunum,r.createtime,r.endtime,c.classname,c.gradeid,u.username createname
391 391
         ,(select count(*) from t_classroom_askteacher ct where ct.roomid=r.roomid and ct.asktype=20)asknum
392 392
         ,(select count(*) from t_classroom_askteacher ct where ct.roomid=r.roomid and ct.asktype=21)callnum
@@ -426,11 +426,11 @@
426 426
         order by convert(u.username using gbk)
427 427
     </select>
428 428
     <!--课堂截图列表-->
429
-    <select id="listFileReport" resultType="com.xhkjedu.sclass.model.classroom.TClassroomFile">
429
+    <select id="listFileReport" resultType="com.xhkjedu.slog.model.classroom.TClassroomFile">
430 430
         select * from t_classroom_file f where f.roomid=#{roomid} order by f.createtime
431 431
     </select>
432 432
     <!--课堂考试列表-->
433
-    <select id="listExamReport" resultType="com.xhkjedu.sclass.vo.classroom.ReportEQuestionVo">
433
+    <select id="listExamReport" resultType="com.xhkjedu.slog.vo.classroom.ReportEQuestionVo">
434 434
         select ps.paperid,ps.psorder,ps.psanswer,ps.psscore,ps.ctypename,ps.ctype,ps.pscaid
435 435
         ,sum(case when q.answered=1 then 1 else 0 end)commitrate
436 436
         ,sum(case when q.stuscore=ps.psscore then 1 else 0 end)correctrate
@@ -443,7 +443,7 @@
443 443
         group by ps.pscaid order by ps.psorder
444 444
     </select>
445 445
     <!--获取课堂考试列表-->
446
-    <select id="listPaper" resultType="com.xhkjedu.sclass.vo.classroom.ReportExamVo">
446
+    <select id="listPaper" resultType="com.xhkjedu.slog.vo.classroom.ReportExamVo">
447 447
         SELECT p.paperid,p.papername,c.classid,ifnull(truncate(SUM(ps.stuscore)*100/(p.paperscore*COUNT(ps.psid)),2),0)scorerate
448 448
         ,ifnull(truncate(SUM(ps.stuscore)/COUNT(ps.psid),2),0)avgscore,ifnull(MAX(ps.stuscore),0)maxscore,COUNT(ps.psid)ytjnum
449 449
         FROM t_classroom_paper p
@@ -490,7 +490,7 @@
490 490
         </foreach>
491 491
     </update>
492 492
     <!--根据班级ids获取学生数量-->
493
-    <select id="listStudentNumByClassIds" resultType="com.xhkjedu.sclass.model.classroom.TClassroom">
493
+    <select id="listStudentNumByClassIds" resultType="com.xhkjedu.slog.model.classroom.TClassroom">
494 494
         SELECT classid,classnum FROM t_class WHERE classid in
495 495
         <foreach collection="classids" item="classid" open="(" close=")" separator=",">
496 496
             ${classid}

+ 2
- 2
sclass/src/main/resources/mapper/classroom/ClassroomPaperFileMapper.xml Прегледај датотеку

@@ -2,14 +2,14 @@
2 2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 3
 <mapper namespace="com.xhkjedu.sclass.mapper.classroom.ClassroomPaperFileMapper">
4 4
     <!-- 根据作业id获取作业附件 -->
5
-    <select id="listObjsByPaperid" resultType="com.xhkjedu.sclass.model.classroom.TClassroomPaperFile">
5
+    <select id="listObjsByPaperid" resultType="com.xhkjedu.slog.model.classroom.TClassroomPaperFile">
6 6
         SELECT pfid,paperid,filepath,fileclass,fileorder,createtime
7 7
         FROM
8 8
         <if test="qctype==2">t_paper_file</if>
9 9
         <if test="qctype==3">t_classroom_paper_file</if>
10 10
         WHERE paperid=#{paperid} ORDER BY fileorder asc
11 11
     </select>
12
-    <select id="listFilepath" resultType="com.xhkjedu.sclass.model.classroom.TClassroomPaperFile">
12
+    <select id="listFilepath" resultType="com.xhkjedu.slog.model.classroom.TClassroomPaperFile">
13 13
         SELECT paperid,filepath FROM t_classroom_paper_file
14 14
         WHERE paperid in
15 15
         <foreach collection="paperids" item="paperid" index="index" open="(" separator="," close=")">

+ 1
- 1
sclass/src/main/resources/mapper/classroom/ClassroomPaperScantronMapper.xml Прегледај датотеку

@@ -13,7 +13,7 @@
13 13
     </insert>
14 14
 
15 15
     <!--获取试题详情-->
16
-    <select id="listByIds" resultType="com.xhkjedu.sclass.model.classroom.TClassroomPaperScantron">
16
+    <select id="listByIds" resultType="com.xhkjedu.slog.model.classroom.TClassroomPaperScantron">
17 17
         select pscaid,psanswer,ctype from t_classroom_paper_scantron where pscaid in
18 18
         <foreach collection="pscaids" item="pscaid" index="index" open="(" separator="," close=")">
19 19
             ${pscaid}

+ 1
- 1
sclass/src/main/resources/mapper/classroom/ClassroomPaperStudentMapper.xml Прегледај датотеку

@@ -2,7 +2,7 @@
2 2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 3
 <mapper namespace="com.xhkjedu.sclass.mapper.classroom.ClassroomPaperStudentMapper">
4 4
     <!--获取考试学生信息-->
5
-    <select id="findById" resultType="com.xhkjedu.sclass.model.classroom.TClassroomPaperStudent">
5
+    <select id="findById" resultType="com.xhkjedu.slog.model.classroom.TClassroomPaperStudent">
6 6
         select s.*,p.subjectid,p.papername from t_classroom_paper_student s
7 7
         left join t_classroom_paper p on p.paperid=s.paperid
8 8
         where s.psid=#{psid} limit 1

+ 1
- 1
sclass/src/test/java/com/xhkjedu/slog/SclassApplicationTests.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.xhkjedu.sclass;
1
+package com.xhkjedu.slog;
2 2
 
3 3
 import org.junit.jupiter.api.Test;
4 4
 import org.springframework.boot.test.context.SpringBootTest;

+ 13
- 0
scommons/pom.xml Прегледај датотеку

@@ -73,12 +73,25 @@
73 73
             <version>2.0.2</version>
74 74
         </dependency>
75 75
 
76
+        <!--解析ip-->
77
+        <dependency>
78
+            <groupId>org.lionsoul</groupId>
79
+            <artifactId>ip2region</artifactId>
80
+            <version>2.6.6</version>
81
+        </dependency>
82
+
76 83
         <!--aop-->
77 84
         <dependency>
78 85
             <groupId>org.springframework.boot</groupId>
79 86
             <artifactId>spring-boot-starter-aop</artifactId>
80 87
         </dependency>
81 88
 
89
+        <!--amqp的起步依赖-->
90
+        <dependency>
91
+            <groupId>org.springframework.boot</groupId>
92
+            <artifactId>spring-boot-starter-amqp</artifactId>
93
+        </dependency>
94
+
82 95
     </dependencies>
83 96
 
84 97
     <build>

+ 19
- 0
scommons/src/main/java/com/xhkjedu/annotation/Action.java Прегледај датотеку

@@ -0,0 +1,19 @@
1
+package com.xhkjedu.annotation;
2
+
3
+import java.lang.annotation.*;
4
+
5
+/*
6
+ * @Description:自定义注解,主要作用在需要记录操作日志的接口
7
+ * @Author: WN
8
+ * @Date: 2023/11/15 14:41:48
9
+ **/
10
+@Target({ElementType.METHOD})
11
+@Retention(RetentionPolicy.RUNTIME)
12
+@Documented
13
+public @interface Action {
14
+
15
+    /**
16
+     * 操作名称
17
+     */
18
+    String value() default "";
19
+}

+ 43
- 0
scommons/src/main/java/com/xhkjedu/annotation/ScalaParam.java Прегледај датотеку

@@ -0,0 +1,43 @@
1
+package com.xhkjedu.annotation;
2
+
3
+import org.springframework.core.annotation.AliasFor;
4
+
5
+import java.lang.annotation.*;
6
+
7
+/*
8
+ * @Description:自定义注解,主要作用在需要记录操作日志的接口
9
+ * @Author: WN
10
+ * @Date: 2023/11/15 14:42:13
11
+ **/
12
+@Target({ElementType.PARAMETER, ElementType.METHOD, ElementType.FIELD})
13
+@Retention(RetentionPolicy.RUNTIME)
14
+@Documented
15
+public @interface ScalaParam {
16
+
17
+    /**
18
+     * 操作名称
19
+     */
20
+    @AliasFor("value")
21
+    String fileValue();
22
+
23
+    /**
24
+     * 操作名称
25
+     */
26
+    String name() default "";
27
+
28
+    ;
29
+
30
+    /**
31
+     * 输入类型
32
+     */
33
+    String type() default "";
34
+
35
+    /**
36
+     * 当类型是select时,此值不能为空,多个值以逗号隔开
37
+     *
38
+     * @return
39
+     */
40
+    String options() default "";
41
+
42
+
43
+}

+ 28
- 0
scommons/src/main/java/com/xhkjedu/constant/PlatformConstant.java Прегледај датотеку

@@ -0,0 +1,28 @@
1
+package com.xhkjedu.constant;
2
+
3
+/*
4
+ * @Description:项目常量
5
+ * @Author: WN
6
+ * @Date: 2023/11/15 15:24:44
7
+ **/
8
+public final class PlatformConstant {
9
+
10
+    //请求头内容——用户id
11
+    public static final String XH_USER_ID = "Xh-User-Id";
12
+
13
+    //请求头内容——是否加密
14
+    public static final String XH_ST = "Xh-St";
15
+
16
+    //请求头内容——tokenKey
17
+    public static final String XH_TOKEN_KEY = "Xh-Token-Key";
18
+
19
+    //请求头内容——tokenValue
20
+    public static final String XH_TOKEN_VALUE = "Xh-Token-Value";
21
+
22
+    //请求头内容——终端类型
23
+    public static final String XH_DEVICE = "Xh-Device";
24
+
25
+    //请求头内容——版本号
26
+    public static final String XH_VERSION = "Xh-Version";
27
+
28
+}

+ 19
- 0
scommons/src/main/java/com/xhkjedu/exception/ServiceException.java Прегледај датотеку

@@ -0,0 +1,19 @@
1
+package com.xhkjedu.exception;
2
+
3
+/**
4
+ * @Description:业务处理异常
5
+ * @Author: WN
6
+ * @Date: 2023/11/15 17:50:40
7
+ **/
8
+public class ServiceException extends RuntimeException {
9
+    public ServiceException() {
10
+    }
11
+
12
+    public ServiceException(String message) {
13
+        super(message);
14
+    }
15
+
16
+    public ServiceException(String message, Throwable cause) {
17
+        super(message, cause);
18
+    }
19
+}

+ 72
- 0
scommons/src/main/java/com/xhkjedu/model/slog/THandleLog.java Прегледај датотеку

@@ -0,0 +1,72 @@
1
+package com.xhkjedu.model.slog;
2
+
3
+import com.xhkjedu.model.BaseBean;
4
+import lombok.Data;
5
+
6
+import javax.persistence.Id;
7
+import javax.persistence.Table;
8
+import javax.persistence.Transient;
9
+
10
+/**
11
+ * @Description:操作日志
12
+ * @Author: WN
13
+ * @Date: 2023/11/15 10:24:46
14
+ **/
15
+@Table(name = "t_handle_log")
16
+@Data
17
+public class THandleLog extends BaseBean {
18
+    @Id
19
+    private Integer handleid;//操作日志ID
20
+
21
+    //用户id
22
+    private Integer userid;
23
+
24
+    //用户姓名
25
+    private String username;
26
+
27
+    //登录账户
28
+    private String loginname;
29
+
30
+    //用户类型
31
+    private Integer usertype;
32
+
33
+    //操作时间
34
+    private Integer handletime;
35
+
36
+    //操作地址
37
+    private String handleurl;
38
+
39
+    //操作所属模块
40
+    private String handlemodel;
41
+
42
+    //操作类型(登录/增加/修改/删除/上传 等)
43
+    private String handleaction;
44
+
45
+    //操作状态1成功2失败
46
+    private Integer handlestate;
47
+
48
+    //操作内容
49
+    private String handlecontent;
50
+
51
+    //操作参数
52
+    private String handleparas;
53
+
54
+    //IP
55
+    private String handleip;
56
+
57
+    //IP归属地
58
+    private String handleaddress;
59
+
60
+    //终端类型
61
+    private String devicetype;
62
+
63
+    //终端版本号
64
+    private String versionnum;
65
+
66
+    //学校id
67
+    private Integer schoolid;
68
+
69
+    //截止时间
70
+    @Transient
71
+    private Integer endtime;
72
+}

+ 15
- 0
scommons/src/main/java/com/xhkjedu/utils/DatesUtil.java Прегледај датотеку

@@ -2,6 +2,8 @@ package com.xhkjedu.utils;
2 2
 
3 3
 import java.text.ParseException;
4 4
 import java.text.SimpleDateFormat;
5
+import java.time.LocalDateTime;
6
+import java.time.format.DateTimeFormatter;
5 7
 import java.util.Calendar;
6 8
 import java.util.Date;
7 9
 import java.util.GregorianCalendar;
@@ -15,6 +17,19 @@ public class DatesUtil {
15 17
         return new SimpleDateFormat("yyyy-MM-dd");
16 18
     }
17 19
 
20
+    /*
21
+     * @Description 获取当前时间
22
+     * @Date 2023/11/15 10:45:16
23
+     * @Author WN
24
+     * @Return java.lang.String
25
+     **/
26
+    public static String getNowDateTime(){
27
+        //格式化
28
+        DateTimeFormatter fmDate = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
29
+        LocalDateTime today = LocalDateTime.now();
30
+        return today.format(fmDate);
31
+    }
32
+
18 33
     public static Integer getTimestamp(String time) {
19 34
         try {
20 35
             return Integer.valueOf(sdf().parse(time).getTime()/1000+"");

+ 52
- 0
scommons/src/main/java/com/xhkjedu/utils/IpRegionUtil.java Прегледај датотеку

@@ -0,0 +1,52 @@
1
+package com.xhkjedu.utils;
2
+
3
+import lombok.extern.slf4j.Slf4j;
4
+import org.lionsoul.ip2region.xdb.Searcher;
5
+
6
+import java.io.IOException;
7
+
8
+/**
9
+ * @Description 解析ip归属地
10
+ * @Author WN
11
+ * Date 2022/11/27 22:31
12
+ **/
13
+@Slf4j
14
+public class IpRegionUtil {
15
+
16
+    public String getIpForAddress(String ip,String dbPath){
17
+        String region = "";
18
+        // 1、创建 searcher 对象
19
+        // String dbPath = ConfigKey.ipregiondb;
20
+        Searcher searcher = null;
21
+        try {
22
+            searcher = Searcher.newWithFileOnly(dbPath);
23
+        } catch (IOException e) {
24
+//            System.out.printf("failed to create searcher with `%s`: %s\n", dbPath, e);
25
+            log.error("创建searcher失败:"+ e.getMessage());
26
+            return null;
27
+        }
28
+
29
+        // 2、查询
30
+        try {
31
+//            long sTime = System.nanoTime();
32
+            region = searcher.search(ip);
33
+//            long cost = TimeUnit.NANOSECONDS.toMicros((long) (System.nanoTime() - sTime));
34
+//            System.out.printf("{region: %s, ioCount: %d, took: %d μs}\n", region, searcher.getIOCount(), cost);
35
+            if(N_Utils.isNotEmpty(region)){
36
+                region = region.replace("0|","").replace("|"," ");
37
+            }
38
+        } catch (Exception e) {
39
+//            System.out.printf("failed to search(%s): %s\n", ip, e);
40
+            log.error("根据ip获取地址失败:"+ e.getMessage());
41
+            return null;
42
+        }
43
+
44
+        // 3、关闭资源
45
+        try {
46
+            searcher.close();
47
+        } catch (IOException e) {
48
+            e.printStackTrace();
49
+        }
50
+        return region;
51
+    }
52
+}

+ 36
- 0
scommons/src/main/java/com/xhkjedu/utils/N_Utils.java Прегледај датотеку

@@ -2,8 +2,10 @@ package com.xhkjedu.utils;
2 2
 
3 3
 import com.xhkjedu.exception.MissingParametersException;
4 4
 import lombok.extern.slf4j.Slf4j;
5
+import org.apache.commons.lang.StringUtils;
5 6
 import org.springframework.util.CollectionUtils;
6 7
 
8
+import javax.servlet.http.HttpServletRequest;
7 9
 import java.io.BufferedReader;
8 10
 import java.io.IOException;
9 11
 import java.io.InputStreamReader;
@@ -983,6 +985,40 @@ public class N_Utils {
983 985
         return returnStr.toString();
984 986
     }
985 987
 
988
+    /*
989
+     * @Description 获取登录IP
990
+     * @Date 2023/11/15 11:30:26
991
+     * @Author WN
992
+     * @Param [request]
993
+     * @Return java.lang.String
994
+     **/
995
+    public static String getIpAddress(HttpServletRequest request){
996
+        String ip = request.getHeader("x-forwarded-for");
997
+        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
998
+            ip = request.getHeader("Proxy-Client-IP");
999
+        }
1000
+        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
1001
+            ip = request.getHeader("WL-Proxy-Client-IP");
1002
+        }
1003
+        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
1004
+            ip = request.getHeader("HTTP_CLIENT_IP");
1005
+        }
1006
+        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
1007
+            ip = request.getHeader("HTTP_X_FORWARDED_FOR");
1008
+        }
1009
+        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
1010
+            ip = request.getRemoteAddr();
1011
+        }
1012
+
1013
+        if(StringUtils.isNotEmpty(ip)){
1014
+            String[] ipArr = ip.split(",");
1015
+            if(ipArr.length > 0){
1016
+                ip = ipArr[0];
1017
+            }
1018
+        }
1019
+        return ip;
1020
+    }
1021
+
986 1022
     /**
987 1023
      * 生成id
988 1024
      * @Param []

+ 0
- 5
sexam/pom.xml Прегледај датотеку

@@ -21,11 +21,6 @@
21 21
             <version>0.0.1-SNAPSHOT</version>
22 22
         </dependency>
23 23
 
24
-        <!--amqp的起步依赖-->
25
-        <dependency>
26
-            <groupId>org.springframework.boot</groupId>
27
-            <artifactId>spring-boot-starter-amqp</artifactId>
28
-        </dependency>
29 24
         <!--  导入和导出excel时需要的jar包 -->
30 25
         <dependency>
31 26
             <groupId>org.apache.poi</groupId>

+ 2
- 2
sexam/src/main/resources/application.properties Прегледај датотеку

@@ -48,8 +48,8 @@ spring.redis.jedis.pool.max-idle=300
48 48
 #最大等待时间:单位ms //高版本改为maxWaitMillis
49 49
 spring.redis.jedis.pool.max-wait=1000000
50 50
 spring.redis.jedis.pool.max-active=60000
51
-#缓存访问数据有效时长60*60*24*7
52
-redisdatatime=604800
51
+#缓存访问数据有效时长60*60*5
52
+redisdatatime=18000
53 53
 
54 54
 #消费者mq
55 55
 rabbitmq.examImgMergeHandleQueue=xhkjedutest.xhschool.examImgMergeHandleQueue_dev

+ 1
- 12
slive/pom.xml Прегледај датотеку

@@ -26,11 +26,7 @@
26 26
             <artifactId>httpclient</artifactId>
27 27
             <version>4.5.9</version>
28 28
         </dependency>
29
-        <!--amqp的起步依赖-->
30
-        <dependency>
31
-            <groupId>org.springframework.boot</groupId>
32
-            <artifactId>spring-boot-starter-amqp</artifactId>
33
-        </dependency>
29
+
34 30
         <!--  导入和导出excel时需要的jar包 -->
35 31
         <dependency>
36 32
             <groupId>org.apache.poi</groupId>
@@ -42,13 +38,6 @@
42 38
             <artifactId>poi</artifactId>
43 39
             <version>3.17</version>
44 40
         </dependency>
45
-
46
-        <!--解析ip-->
47
-        <dependency>
48
-            <groupId>org.lionsoul</groupId>
49
-            <artifactId>ip2region</artifactId>
50
-            <version>2.6.6</version>
51
-        </dependency>
52 41
     </dependencies>
53 42
     <dependencyManagement>
54 43
         <dependencies>

+ 4
- 4
slive/src/main/java/com/xhkjedu/slive/service/liveplay/CourseSectionStudentService.java Прегледај датотеку

@@ -1,13 +1,13 @@
1 1
 package com.xhkjedu.slive.service.liveplay;
2 2
 
3
+import com.xhkjedu.slive.config.ConfigKey;
3 4
 import com.xhkjedu.slive.mapper.liveplay.CourseSectionMapper;
4 5
 import com.xhkjedu.slive.mapper.liveplay.CourseSectionStudentMapper;
5 6
 import com.xhkjedu.slive.model.liveplay.LCourseSection;
6 7
 import com.xhkjedu.slive.model.liveplay.LCourseSectionStudent;
7
-import com.xhkjedu.slive.utils.IpRegionUtil;
8
-import com.xhkjedu.slive.utils.LiveUtil;
9 8
 import com.xhkjedu.slive.vo.liveplay.CSStudentVo;
10 9
 import com.xhkjedu.slive.vo.liveplay.CourseVo;
10
+import com.xhkjedu.utils.IpRegionUtil;
11 11
 import com.xhkjedu.utils.N_Utils;
12 12
 import com.xhkjedu.vo.ResultVo;
13 13
 import org.springframework.stereotype.Service;
@@ -36,11 +36,11 @@ public class CourseSectionStudentService {
36 36
             model.setTotaltime(0);
37 37
         }
38 38
 
39
-        String ip = LiveUtil.getIpAddress(request);
39
+        String ip = N_Utils.getIpAddress(request);
40 40
         String region = null;
41 41
         if(N_Utils.isNotEmpty(ip)){
42 42
             IpRegionUtil ipRegionUtil = new IpRegionUtil();
43
-            region = ipRegionUtil.getIpForAddress(ip);
43
+            region = ipRegionUtil.getIpForAddress(ip, ConfigKey.ipregiondb);
44 44
         }
45 45
         model.setLogip(ip);
46 46
         model.setLogaddress(region);

+ 0
- 36
slive/src/main/java/com/xhkjedu/slive/utils/LiveUtil.java Прегледај датотеку

@@ -1,9 +1,7 @@
1 1
 package com.xhkjedu.slive.utils;
2 2
 
3 3
 import lombok.extern.slf4j.Slf4j;
4
-import org.apache.commons.lang.StringUtils;
5 4
 
6
-import javax.servlet.http.HttpServletRequest;
7 5
 import java.time.DayOfWeek;
8 6
 import java.time.LocalDate;
9 7
 import java.time.format.DateTimeFormatter;
@@ -191,38 +189,4 @@ public class LiveUtil {
191 189
         return rtnlst;
192 190
     }
193 191
 
194
-    /**
195
-     * @Description 获取请求ip
196
-     * @Param [request]
197
-     * @Return java.lang.String
198
-     * @Author wn
199
-     * @Date 2022/11/27 22:26
200
-     **/
201
-    public static String getIpAddress(HttpServletRequest request){
202
-        String ip = request.getHeader("x-forwarded-for");
203
-        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
204
-            ip = request.getHeader("Proxy-Client-IP");
205
-        }
206
-        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
207
-            ip = request.getHeader("WL-Proxy-Client-IP");
208
-        }
209
-        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
210
-            ip = request.getHeader("HTTP_CLIENT_IP");
211
-        }
212
-        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
213
-            ip = request.getHeader("HTTP_X_FORWARDED_FOR");
214
-        }
215
-        if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
216
-            ip = request.getRemoteAddr();
217
-        }
218
-
219
-        if(StringUtils.isNotEmpty(ip)){
220
-            String[] ipArr = ip.split(",");
221
-            if(ipArr.length > 0){
222
-                ip = ipArr[0];
223
-            }
224
-        }
225
-        return ip;
226
-    }
227
-
228 192
 }

+ 2
- 2
slive/src/main/resources/application.properties Прегледај датотеку

@@ -53,8 +53,8 @@ spring.redis.jedis.pool.max-idle=300
53 53
 #最大等待时间:单位ms //高版本改为maxWaitMillis
54 54
 spring.redis.jedis.pool.max-wait=1000000
55 55
 spring.redis.jedis.pool.max-active=60000
56
-#缓存访问数据有效时长60*60*24*7
57
-redisdatatime=604800
56
+#缓存访问数据有效时长60*60*5
57
+redisdatatime=18000
58 58
 #secretKey必须为24位
59 59
 secretKey=nanhuakaizhangjianwangni
60 60
 

+ 33
- 0
slog/.gitignore Прегледај датотеку

@@ -0,0 +1,33 @@
1
+HELP.md
2
+target/
3
+!.mvn/wrapper/maven-wrapper.jar
4
+!**/src/main/**/target/
5
+!**/src/test/**/target/
6
+
7
+### STS ###
8
+.apt_generated
9
+.classpath
10
+.factorypath
11
+.project
12
+.settings
13
+.springBeans
14
+.sts4-cache
15
+
16
+### IntelliJ IDEA ###
17
+.idea
18
+*.iws
19
+*.iml
20
+*.ipr
21
+
22
+### NetBeans ###
23
+/nbproject/private/
24
+/nbbuild/
25
+/dist/
26
+/nbdist/
27
+/.nb-gradle/
28
+build/
29
+!**/src/main/**/build/
30
+!**/src/test/**/build/
31
+
32
+### VS Code ###
33
+.vscode/

BIN
slog/.mvn/wrapper/maven-wrapper.jar Прегледај датотеку


+ 2
- 0
slog/.mvn/wrapper/maven-wrapper.properties Прегледај датотеку

@@ -0,0 +1,2 @@
1
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
2
+wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar

+ 316
- 0
slog/mvnw Прегледај датотеку

@@ -0,0 +1,316 @@
1
+#!/bin/sh
2
+# ----------------------------------------------------------------------------
3
+# Licensed to the Apache Software Foundation (ASF) under one
4
+# or more contributor license agreements.  See the NOTICE file
5
+# distributed with this work for additional information
6
+# regarding copyright ownership.  The ASF licenses this file
7
+# to you under the Apache License, Version 2.0 (the
8
+# "License"); you may not use this file except in compliance
9
+# with the License.  You may obtain a copy of the License at
10
+#
11
+#    https://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+# Unless required by applicable law or agreed to in writing,
14
+# software distributed under the License is distributed on an
15
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+# KIND, either express or implied.  See the License for the
17
+# specific language governing permissions and limitations
18
+# under the License.
19
+# ----------------------------------------------------------------------------
20
+
21
+# ----------------------------------------------------------------------------
22
+# Maven Start Up Batch script
23
+#
24
+# Required ENV vars:
25
+# ------------------
26
+#   JAVA_HOME - location of a JDK home dir
27
+#
28
+# Optional ENV vars
29
+# -----------------
30
+#   M2_HOME - location of maven2's installed home dir
31
+#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
+#     e.g. to debug Maven itself, use
33
+#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
+#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35
+# ----------------------------------------------------------------------------
36
+
37
+if [ -z "$MAVEN_SKIP_RC" ] ; then
38
+
39
+  if [ -f /usr/local/etc/mavenrc ] ; then
40
+    . /usr/local/etc/mavenrc
41
+  fi
42
+
43
+  if [ -f /etc/mavenrc ] ; then
44
+    . /etc/mavenrc
45
+  fi
46
+
47
+  if [ -f "$HOME/.mavenrc" ] ; then
48
+    . "$HOME/.mavenrc"
49
+  fi
50
+
51
+fi
52
+
53
+# OS specific support.  $var _must_ be set to either true or false.
54
+cygwin=false;
55
+darwin=false;
56
+mingw=false
57
+case "`uname`" in
58
+  CYGWIN*) cygwin=true ;;
59
+  MINGW*) mingw=true;;
60
+  Darwin*) darwin=true
61
+    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
62
+    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
63
+    if [ -z "$JAVA_HOME" ]; then
64
+      if [ -x "/usr/libexec/java_home" ]; then
65
+        export JAVA_HOME="`/usr/libexec/java_home`"
66
+      else
67
+        export JAVA_HOME="/Library/Java/Home"
68
+      fi
69
+    fi
70
+    ;;
71
+esac
72
+
73
+if [ -z "$JAVA_HOME" ] ; then
74
+  if [ -r /etc/gentoo-release ] ; then
75
+    JAVA_HOME=`java-config --jre-home`
76
+  fi
77
+fi
78
+
79
+if [ -z "$M2_HOME" ] ; then
80
+  ## resolve links - $0 may be a link to maven's home
81
+  PRG="$0"
82
+
83
+  # need this for relative symlinks
84
+  while [ -h "$PRG" ] ; do
85
+    ls=`ls -ld "$PRG"`
86
+    link=`expr "$ls" : '.*-> \(.*\)$'`
87
+    if expr "$link" : '/.*' > /dev/null; then
88
+      PRG="$link"
89
+    else
90
+      PRG="`dirname "$PRG"`/$link"
91
+    fi
92
+  done
93
+
94
+  saveddir=`pwd`
95
+
96
+  M2_HOME=`dirname "$PRG"`/..
97
+
98
+  # make it fully qualified
99
+  M2_HOME=`cd "$M2_HOME" && pwd`
100
+
101
+  cd "$saveddir"
102
+  # echo Using m2 at $M2_HOME
103
+fi
104
+
105
+# For Cygwin, ensure paths are in UNIX format before anything is touched
106
+if $cygwin ; then
107
+  [ -n "$M2_HOME" ] &&
108
+    M2_HOME=`cygpath --unix "$M2_HOME"`
109
+  [ -n "$JAVA_HOME" ] &&
110
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
111
+  [ -n "$CLASSPATH" ] &&
112
+    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
113
+fi
114
+
115
+# For Mingw, ensure paths are in UNIX format before anything is touched
116
+if $mingw ; then
117
+  [ -n "$M2_HOME" ] &&
118
+    M2_HOME="`(cd "$M2_HOME"; pwd)`"
119
+  [ -n "$JAVA_HOME" ] &&
120
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
121
+fi
122
+
123
+if [ -z "$JAVA_HOME" ]; then
124
+  javaExecutable="`which javac`"
125
+  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
126
+    # readlink(1) is not available as standard on Solaris 10.
127
+    readLink=`which readlink`
128
+    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
129
+      if $darwin ; then
130
+        javaHome="`dirname \"$javaExecutable\"`"
131
+        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
132
+      else
133
+        javaExecutable="`readlink -f \"$javaExecutable\"`"
134
+      fi
135
+      javaHome="`dirname \"$javaExecutable\"`"
136
+      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
137
+      JAVA_HOME="$javaHome"
138
+      export JAVA_HOME
139
+    fi
140
+  fi
141
+fi
142
+
143
+if [ -z "$JAVACMD" ] ; then
144
+  if [ -n "$JAVA_HOME"  ] ; then
145
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
146
+      # IBM's JDK on AIX uses strange locations for the executables
147
+      JAVACMD="$JAVA_HOME/jre/sh/java"
148
+    else
149
+      JAVACMD="$JAVA_HOME/bin/java"
150
+    fi
151
+  else
152
+    JAVACMD="`\\unset -f command; \\command -v java`"
153
+  fi
154
+fi
155
+
156
+if [ ! -x "$JAVACMD" ] ; then
157
+  echo "Error: JAVA_HOME is not defined correctly." >&2
158
+  echo "  We cannot execute $JAVACMD" >&2
159
+  exit 1
160
+fi
161
+
162
+if [ -z "$JAVA_HOME" ] ; then
163
+  echo "Warning: JAVA_HOME environment variable is not set."
164
+fi
165
+
166
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
167
+
168
+# traverses directory structure from process work directory to filesystem root
169
+# first directory with .mvn subdirectory is considered project base directory
170
+find_maven_basedir() {
171
+
172
+  if [ -z "$1" ]
173
+  then
174
+    echo "Path not specified to find_maven_basedir"
175
+    return 1
176
+  fi
177
+
178
+  basedir="$1"
179
+  wdir="$1"
180
+  while [ "$wdir" != '/' ] ; do
181
+    if [ -d "$wdir"/.mvn ] ; then
182
+      basedir=$wdir
183
+      break
184
+    fi
185
+    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
186
+    if [ -d "${wdir}" ]; then
187
+      wdir=`cd "$wdir/.."; pwd`
188
+    fi
189
+    # end of workaround
190
+  done
191
+  echo "${basedir}"
192
+}
193
+
194
+# concatenates all lines of a file
195
+concat_lines() {
196
+  if [ -f "$1" ]; then
197
+    echo "$(tr -s '\n' ' ' < "$1")"
198
+  fi
199
+}
200
+
201
+BASE_DIR=`find_maven_basedir "$(pwd)"`
202
+if [ -z "$BASE_DIR" ]; then
203
+  exit 1;
204
+fi
205
+
206
+##########################################################################################
207
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
208
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
209
+##########################################################################################
210
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
211
+    if [ "$MVNW_VERBOSE" = true ]; then
212
+      echo "Found .mvn/wrapper/maven-wrapper.jar"
213
+    fi
214
+else
215
+    if [ "$MVNW_VERBOSE" = true ]; then
216
+      echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
217
+    fi
218
+    if [ -n "$MVNW_REPOURL" ]; then
219
+      jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
220
+    else
221
+      jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
222
+    fi
223
+    while IFS="=" read key value; do
224
+      case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
225
+      esac
226
+    done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
227
+    if [ "$MVNW_VERBOSE" = true ]; then
228
+      echo "Downloading from: $jarUrl"
229
+    fi
230
+    wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
231
+    if $cygwin; then
232
+      wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
233
+    fi
234
+
235
+    if command -v wget > /dev/null; then
236
+        if [ "$MVNW_VERBOSE" = true ]; then
237
+          echo "Found wget ... using wget"
238
+        fi
239
+        if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
240
+            wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
241
+        else
242
+            wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
243
+        fi
244
+    elif command -v curl > /dev/null; then
245
+        if [ "$MVNW_VERBOSE" = true ]; then
246
+          echo "Found curl ... using curl"
247
+        fi
248
+        if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
249
+            curl -o "$wrapperJarPath" "$jarUrl" -f
250
+        else
251
+            curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
252
+        fi
253
+
254
+    else
255
+        if [ "$MVNW_VERBOSE" = true ]; then
256
+          echo "Falling back to using Java to download"
257
+        fi
258
+        javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
259
+        # For Cygwin, switch paths to Windows format before running javac
260
+        if $cygwin; then
261
+          javaClass=`cygpath --path --windows "$javaClass"`
262
+        fi
263
+        if [ -e "$javaClass" ]; then
264
+            if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
265
+                if [ "$MVNW_VERBOSE" = true ]; then
266
+                  echo " - Compiling MavenWrapperDownloader.java ..."
267
+                fi
268
+                # Compiling the Java class
269
+                ("$JAVA_HOME/bin/javac" "$javaClass")
270
+            fi
271
+            if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
272
+                # Running the downloader
273
+                if [ "$MVNW_VERBOSE" = true ]; then
274
+                  echo " - Running MavenWrapperDownloader.java ..."
275
+                fi
276
+                ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
277
+            fi
278
+        fi
279
+    fi
280
+fi
281
+##########################################################################################
282
+# End of extension
283
+##########################################################################################
284
+
285
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
286
+if [ "$MVNW_VERBOSE" = true ]; then
287
+  echo $MAVEN_PROJECTBASEDIR
288
+fi
289
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
290
+
291
+# For Cygwin, switch paths to Windows format before running java
292
+if $cygwin; then
293
+  [ -n "$M2_HOME" ] &&
294
+    M2_HOME=`cygpath --path --windows "$M2_HOME"`
295
+  [ -n "$JAVA_HOME" ] &&
296
+    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
297
+  [ -n "$CLASSPATH" ] &&
298
+    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
299
+  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
300
+    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
301
+fi
302
+
303
+# Provide a "standardized" way to retrieve the CLI args that will
304
+# work with both Windows and non-Windows executions.
305
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
306
+export MAVEN_CMD_LINE_ARGS
307
+
308
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
309
+
310
+exec "$JAVACMD" \
311
+  $MAVEN_OPTS \
312
+  $MAVEN_DEBUG_OPTS \
313
+  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
314
+  "-Dmaven.home=${M2_HOME}" \
315
+  "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
316
+  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

+ 188
- 0
slog/mvnw.cmd Прегледај датотеку

@@ -0,0 +1,188 @@
1
+@REM ----------------------------------------------------------------------------
2
+@REM Licensed to the Apache Software Foundation (ASF) under one
3
+@REM or more contributor license agreements.  See the NOTICE file
4
+@REM distributed with this work for additional information
5
+@REM regarding copyright ownership.  The ASF licenses this file
6
+@REM to you under the Apache License, Version 2.0 (the
7
+@REM "License"); you may not use this file except in compliance
8
+@REM with the License.  You may obtain a copy of the License at
9
+@REM
10
+@REM    https://www.apache.org/licenses/LICENSE-2.0
11
+@REM
12
+@REM Unless required by applicable law or agreed to in writing,
13
+@REM software distributed under the License is distributed on an
14
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+@REM KIND, either express or implied.  See the License for the
16
+@REM specific language governing permissions and limitations
17
+@REM under the License.
18
+@REM ----------------------------------------------------------------------------
19
+
20
+@REM ----------------------------------------------------------------------------
21
+@REM Maven Start Up Batch script
22
+@REM
23
+@REM Required ENV vars:
24
+@REM JAVA_HOME - location of a JDK home dir
25
+@REM
26
+@REM Optional ENV vars
27
+@REM M2_HOME - location of maven2's installed home dir
28
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
30
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
+@REM     e.g. to debug Maven itself, use
32
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
+@REM ----------------------------------------------------------------------------
35
+
36
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
+@echo off
38
+@REM set title of command window
39
+title %0
40
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41
+@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
42
+
43
+@REM set %HOME% to equivalent of $HOME
44
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45
+
46
+@REM Execute a user defined script before this one
47
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
49
+if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
50
+if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
51
+:skipRcPre
52
+
53
+@setlocal
54
+
55
+set ERROR_CODE=0
56
+
57
+@REM To isolate internal variables from possible post scripts, we use another setlocal
58
+@setlocal
59
+
60
+@REM ==== START VALIDATION ====
61
+if not "%JAVA_HOME%" == "" goto OkJHome
62
+
63
+echo.
64
+echo Error: JAVA_HOME not found in your environment. >&2
65
+echo Please set the JAVA_HOME variable in your environment to match the >&2
66
+echo location of your Java installation. >&2
67
+echo.
68
+goto error
69
+
70
+:OkJHome
71
+if exist "%JAVA_HOME%\bin\java.exe" goto init
72
+
73
+echo.
74
+echo Error: JAVA_HOME is set to an invalid directory. >&2
75
+echo JAVA_HOME = "%JAVA_HOME%" >&2
76
+echo Please set the JAVA_HOME variable in your environment to match the >&2
77
+echo location of your Java installation. >&2
78
+echo.
79
+goto error
80
+
81
+@REM ==== END VALIDATION ====
82
+
83
+:init
84
+
85
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86
+@REM Fallback to current working directory if not found.
87
+
88
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90
+
91
+set EXEC_DIR=%CD%
92
+set WDIR=%EXEC_DIR%
93
+:findBaseDir
94
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
95
+cd ..
96
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
97
+set WDIR=%CD%
98
+goto findBaseDir
99
+
100
+:baseDirFound
101
+set MAVEN_PROJECTBASEDIR=%WDIR%
102
+cd "%EXEC_DIR%"
103
+goto endDetectBaseDir
104
+
105
+:baseDirNotFound
106
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107
+cd "%EXEC_DIR%"
108
+
109
+:endDetectBaseDir
110
+
111
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112
+
113
+@setlocal EnableExtensions EnableDelayedExpansion
114
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116
+
117
+:endReadAdditionalConfig
118
+
119
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122
+
123
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
124
+
125
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126
+    IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127
+)
128
+
129
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131
+if exist %WRAPPER_JAR% (
132
+    if "%MVNW_VERBOSE%" == "true" (
133
+        echo Found %WRAPPER_JAR%
134
+    )
135
+) else (
136
+    if not "%MVNW_REPOURL%" == "" (
137
+        SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
138
+    )
139
+    if "%MVNW_VERBOSE%" == "true" (
140
+        echo Couldn't find %WRAPPER_JAR%, downloading it ...
141
+        echo Downloading from: %DOWNLOAD_URL%
142
+    )
143
+
144
+    powershell -Command "&{"^
145
+		"$webclient = new-object System.Net.WebClient;"^
146
+		"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147
+		"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148
+		"}"^
149
+		"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150
+		"}"
151
+    if "%MVNW_VERBOSE%" == "true" (
152
+        echo Finished downloading %WRAPPER_JAR%
153
+    )
154
+)
155
+@REM End of extension
156
+
157
+@REM Provide a "standardized" way to retrieve the CLI args that will
158
+@REM work with both Windows and non-Windows executions.
159
+set MAVEN_CMD_LINE_ARGS=%*
160
+
161
+%MAVEN_JAVA_EXE% ^
162
+  %JVM_CONFIG_MAVEN_PROPS% ^
163
+  %MAVEN_OPTS% ^
164
+  %MAVEN_DEBUG_OPTS% ^
165
+  -classpath %WRAPPER_JAR% ^
166
+  "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
167
+  %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
168
+if ERRORLEVEL 1 goto error
169
+goto end
170
+
171
+:error
172
+set ERROR_CODE=1
173
+
174
+:end
175
+@endlocal & set ERROR_CODE=%ERROR_CODE%
176
+
177
+if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
178
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
179
+if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
180
+if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
181
+:skipRcPost
182
+
183
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
184
+if "%MAVEN_BATCH_PAUSE%"=="on" pause
185
+
186
+if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
187
+
188
+cmd /C exit /B %ERROR_CODE%

+ 62
- 0
slog/pom.xml Прегледај датотеку

@@ -0,0 +1,62 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4
+    <modelVersion>4.0.0</modelVersion>
5
+    <groupId>com.xhkjedu</groupId>
6
+    <artifactId>slog</artifactId>
7
+    <version>0.0.1-SNAPSHOT</version>
8
+    <name>slog</name>
9
+    <description>Demo project for Spring Boot</description>
10
+
11
+    <parent>
12
+        <groupId>com.xhkjedu</groupId>
13
+        <artifactId>cloud-schoolapi</artifactId>
14
+        <version>1.0-SNAPSHOT</version>
15
+    </parent>
16
+    <dependencies>
17
+        <dependency>
18
+            <groupId>com.xhkjedu</groupId>
19
+            <artifactId>scommons</artifactId>
20
+            <version>0.0.1-SNAPSHOT</version>
21
+        </dependency>
22
+
23
+    </dependencies>
24
+    <dependencyManagement>
25
+        <dependencies>
26
+            <dependency>
27
+                <groupId>org.springframework.cloud</groupId>
28
+                <artifactId>spring-cloud-dependencies</artifactId>
29
+                <version>${spring-cloud.version}</version>
30
+                <type>pom</type>
31
+                <scope>import</scope>
32
+            </dependency>
33
+        </dependencies>
34
+    </dependencyManagement>
35
+
36
+    <build>
37
+        <plugins>
38
+            <plugin>
39
+                <groupId>org.springframework.boot</groupId>
40
+                <artifactId>spring-boot-maven-plugin</artifactId>
41
+                <configuration>
42
+                    <excludes>
43
+                        <exclude>
44
+                            <groupId>org.projectlombok</groupId>
45
+                            <artifactId>lombok</artifactId>
46
+                        </exclude>
47
+                    </excludes>
48
+                </configuration>
49
+            </plugin>
50
+            <plugin>
51
+                <!--编译跳过测试文件检查的生命周期-->
52
+                <groupId>org.apache.maven.plugins</groupId>
53
+                <artifactId>maven-surefire-plugin</artifactId>
54
+                <version>2.22.2</version>
55
+                <configuration>
56
+                    <skip>true</skip>
57
+                </configuration>
58
+            </plugin>
59
+        </plugins>
60
+    </build>
61
+
62
+</project>

+ 17
- 0
slog/src/main/java/com/xhkjedu/slog/SlogApplication.java Прегледај датотеку

@@ -0,0 +1,17 @@
1
+package com.xhkjedu.slog;
2
+
3
+import com.xhkjedu.slog.config.ConfigKey;
4
+import org.springframework.boot.SpringApplication;
5
+import org.springframework.boot.autoconfigure.SpringBootApplication;
6
+import tk.mybatis.spring.annotation.MapperScan;
7
+
8
+@SpringBootApplication(scanBasePackages = "com.xhkjedu")
9
+@MapperScan("com.xhkjedu.slog.mapper")
10
+public class SlogApplication {
11
+
12
+    public static void main(String[] args) {
13
+        SpringApplication.run(SlogApplication.class, args);
14
+        System.out.println("构建号:" + ConfigKey.buildnum);
15
+    }
16
+
17
+}

+ 28
- 0
slog/src/main/java/com/xhkjedu/slog/config/ConfigKey.java Прегледај датотеку

@@ -0,0 +1,28 @@
1
+package com.xhkjedu.slog.config;
2
+
3
+import org.springframework.beans.factory.annotation.Value;
4
+import org.springframework.stereotype.Component;
5
+
6
+/**
7
+ * @author ywx
8
+ * @classname ConfigKey
9
+ * @description 读取配置文件类
10
+ * @date 2020/10/16 9:19
11
+ **/
12
+@Component
13
+public class ConfigKey {
14
+    public static Integer buildnum;//构建号
15
+
16
+    @Value("${buildnum}")
17
+    public void setBuildnum(Integer buildnum){
18
+        this.buildnum = buildnum;
19
+    }
20
+
21
+    public static String ipregiondb;//解析ip地址归属地
22
+
23
+    @Value("${ipregiondb}")
24
+    public void setIpregiondb(String ipregiondb){
25
+        ConfigKey.ipregiondb = ipregiondb;
26
+    }
27
+
28
+}

+ 24
- 0
slog/src/main/java/com/xhkjedu/slog/config/RabbitConfig.java Прегледај датотеку

@@ -0,0 +1,24 @@
1
+package com.xhkjedu.slog.config;
2
+
3
+import org.springframework.amqp.core.Queue;
4
+import org.springframework.beans.factory.annotation.Value;
5
+import org.springframework.context.annotation.Bean;
6
+import org.springframework.context.annotation.Configuration;
7
+
8
+/*
9
+ * @Description: mq
10
+ * @Author: WN
11
+ * @Date: 2023/11/15 14:32:28
12
+ **/
13
+@Configuration
14
+public class RabbitConfig {
15
+    //消费者mq-操作日志
16
+    @Value("${rabbitmq.handleLogQueue}")
17
+    private String handleLogQueue;
18
+
19
+    //消费者mq-操作日志
20
+    @Bean
21
+    public Queue handleLogQueue() {
22
+        return new Queue(handleLogQueue);
23
+    }
24
+}

+ 0
- 0
slog/src/main/java/com/xhkjedu/slog/config/ScheduledConfig.java Прегледај датотеку


Неке датотеке нису приказане због велике количине промена

Loading…
Откажи
Сачувај