Sfoglia il codice sorgente

1、完善订单Execl按时间导出功能
2、新增日志功能
3、解决公告功能异常问题

binguoc 4 anni fa
parent
commit
06ffaed0d7
35 ha cambiato i file con 16202 aggiunte e 286 eliminazioni
  1. 7590 0
      logs/all/all.log
  2. 7590 0
      logs/debugger/debugger.log
  3. 85 0
      logs/error.log
  4. 0 0
      logs/error/error.log
  5. 79 0
      logs/info.log
  6. 353 0
      logs/info.log.2022-03-29
  7. 54 0
      logs/info/info.log
  8. 6 0
      logs/warn.log
  9. 103 0
      logs/warn.log.2022-03-29
  10. 4 0
      logs/warn/warn.log
  11. 28 0
      pom.xml
  12. 0 41
      src/main/java/com/chuanghai/repair/auth/LoginConfig.java
  13. 0 70
      src/main/java/com/chuanghai/repair/auth/LoginInterceptor.java
  14. 0 67
      src/main/java/com/chuanghai/repair/auth/TokenAuthorFilter.java
  15. 14 12
      src/main/java/com/chuanghai/repair/controller/NoticeController.java
  16. 23 21
      src/main/java/com/chuanghai/repair/controller/OrderController.java
  17. 15 1
      src/main/java/com/chuanghai/repair/entity/BackOrderExecl.java
  18. 14 0
      src/main/java/com/chuanghai/repair/entity/QueryOrderExecl.java
  19. 1 1
      src/main/java/com/chuanghai/repair/entity/RepairsFault.java
  20. 1 1
      src/main/java/com/chuanghai/repair/entity/RepairsNotice.java
  21. 6 6
      src/main/java/com/chuanghai/repair/entity/RepairsOrder.java
  22. 0 1
      src/main/java/com/chuanghai/repair/entity/RepairsStudent.java
  23. 0 1
      src/main/java/com/chuanghai/repair/entity/RepairsWork.java
  24. 17 0
      src/main/java/com/chuanghai/repair/entity/SendOrderExecl.java
  25. 1 1
      src/main/java/com/chuanghai/repair/mapper/RepairsNoticeMapper.java
  26. 4 0
      src/main/java/com/chuanghai/repair/mapper/RepairsOrderMapper.java
  27. 1 1
      src/main/java/com/chuanghai/repair/service/RepairsNoticeService.java
  28. 22 1
      src/main/java/com/chuanghai/repair/service/RepairsOrderService.java
  29. 2 2
      src/main/java/com/chuanghai/repair/service/ServiceImpl/RepairsNoticeServiceImpl.java
  30. 34 3
      src/main/java/com/chuanghai/repair/service/ServiceImpl/RepairsOrderServiceImpl.java
  31. 31 26
      src/main/java/com/chuanghai/repair/utils/CreateTokenUtil.java
  32. 5 2
      src/main/resources/application.yml
  33. 59 7
      src/main/resources/log4j.properties
  34. 31 13
      src/main/resources/mapper/RepairsNoticeMapper.xml
  35. 29 8
      src/main/resources/mapper/RepairsOrderMapper.xml

File diff suppressed because it is too large
+ 7590 - 0
logs/all/all.log


File diff suppressed because it is too large
+ 7590 - 0
logs/debugger/debugger.log


+ 85 - 0
logs/error.log

@@ -0,0 +1,85 @@
+2022-03-29 20:01:42  [ restartedMain:5627970 ] - [ ERROR ]  HikariPool-3 - Exception during pool initialization.
+com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
+
+Last packet sent to the server was 0 ms ago.
+	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
+	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
+	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
+	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
+	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
+	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
+	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2103)
+	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:718)
+	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
+	at sun.reflect.GeneratedConstructorAccessor71.newInstance(Unknown Source)
+	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
+	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
+	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
+	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
+	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
+	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
+	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364)
+	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
+	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476)
+	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561)
+	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
+	at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
+	at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158)
+	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116)
+	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
+	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:330)
+	at org.springframework.boot.jdbc.EmbeddedDatabaseConnection.isEmbedded(EmbeddedDatabaseConnection.java:184)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateDefaultDdlAutoProvider.getDefaultDdlAuto(HibernateDefaultDdlAutoProvider.java:42)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration.lambda$getVendorProperties$1(HibernateJpaConfiguration.java:130)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings.getDdlAuto(HibernateSettings.java:41)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties.determineDdlAuto(HibernateProperties.java:143)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties.getAdditionalProperties(HibernateProperties.java:103)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties.determineHibernateProperties(HibernateProperties.java:95)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration.getVendorProperties(HibernateJpaConfiguration.java:132)
+	at org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.entityManagerFactory(JpaBaseConfiguration.java:132)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+	at java.lang.reflect.Method.invoke(Method.java:498)
+	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
+	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
+	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524)
+	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
+	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
+	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
+	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
+	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154)
+	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908)
+	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
+	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
+	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
+	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
+	at org.springframework.boot.SpringApplication.run(SpringApplication.java:338)
+	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343)
+	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1332)
+	at com.chuanghai.repair.RepairsApplication.main(RepairsApplication.java:23)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+	at java.lang.reflect.Method.invoke(Method.java:498)
+	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
+Caused by: java.net.ConnectException: Connection timed out: connect
+	at java.net.DualStackPlainSocketImpl.connect0(Native Method)
+	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
+	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
+	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
+	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
+	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
+	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
+	at java.net.Socket.connect(Socket.java:589)
+	at java.net.Socket.connect(Socket.java:538)
+	at java.net.Socket.<init>(Socket.java:434)
+	at java.net.Socket.<init>(Socket.java:244)
+	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)
+	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
+	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2026)
+	... 58 more

+ 0 - 0
logs/error/error.log


+ 79 - 0
logs/info.log

@@ -0,0 +1,79 @@
+2022-03-30 09:53:40  [ restartedMain:1339 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 9264 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-30 09:53:40  [ restartedMain:1342 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-30 09:53:40  [ restartedMain:1429 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-30 09:53:40  [ restartedMain:1430 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-30 09:53:42  [ restartedMain:3338 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-30 09:53:42  [ restartedMain:3381 ] - [ INFO ]  Finished Spring Data repository scanning in 17 ms. Found 0 JPA repository interfaces.
+2022-03-30 09:53:43  [ restartedMain:4362 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-30 09:53:43  [ restartedMain:4516 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 3086 ms
+2022-03-30 09:53:44  [ restartedMain:4710 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-30 09:53:44  [ restartedMain:5020 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-30 09:53:44  [ restartedMain:5025 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-30 09:53:44  [ restartedMain:5270 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-30 09:53:44  [ restartedMain:5517 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-30 09:53:45  [ restartedMain:5665 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-30 09:53:45  [ restartedMain:5875 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-30 09:53:45  [ restartedMain:5889 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-30 09:53:46  [ restartedMain:6667 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-30 09:53:46  [ restartedMain:6841 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-30 09:53:46  [ restartedMain:7070 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-30 09:53:46  [ restartedMain:7173 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-30 09:53:46  [ restartedMain:7624 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-30 09:53:47  [ restartedMain:7873 ] - [ INFO ]  Context refreshed
+2022-03-30 09:53:47  [ restartedMain:7898 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-30 09:53:47  [ restartedMain:7936 ] - [ INFO ]  Scanning for api listing references
+2022-03-30 09:53:48  [ restartedMain:9325 ] - [ INFO ]  Started RepairsApplication in 9.291 seconds (JVM running for 11.465)
+2022-03-30 09:54:10  [ http-nio-8084-exec-1:31268 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-30 09:54:10  [ http-nio-8084-exec-1:31270 ] - [ INFO ]  Completed initialization in 2 ms
+2022-03-30 15:41:43  [ restartedMain:1334 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 4368 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-30 15:41:43  [ restartedMain:1339 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-30 15:41:43  [ restartedMain:1413 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-30 15:41:43  [ restartedMain:1413 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-30 15:41:44  [ restartedMain:2685 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-30 15:41:44  [ restartedMain:2757 ] - [ INFO ]  Finished Spring Data repository scanning in 21 ms. Found 0 JPA repository interfaces.
+2022-03-30 15:41:45  [ restartedMain:3763 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-30 15:41:46  [ restartedMain:3915 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 2501 ms
+2022-03-30 15:41:46  [ restartedMain:4083 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-30 15:41:46  [ restartedMain:4448 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-30 15:41:46  [ restartedMain:4452 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-30 15:41:46  [ restartedMain:4702 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-30 15:41:46  [ restartedMain:4846 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-30 15:41:47  [ restartedMain:5015 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-30 15:41:47  [ restartedMain:5285 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-30 15:41:47  [ restartedMain:5302 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-30 15:41:48  [ restartedMain:6072 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-30 15:41:48  [ restartedMain:6332 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-30 15:41:48  [ restartedMain:6629 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-30 15:41:48  [ restartedMain:6742 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-30 15:41:49  [ restartedMain:7304 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-30 15:41:49  [ restartedMain:7629 ] - [ INFO ]  Context refreshed
+2022-03-30 15:41:49  [ restartedMain:7650 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-30 15:41:49  [ restartedMain:7691 ] - [ INFO ]  Scanning for api listing references
+2022-03-30 15:41:51  [ restartedMain:8922 ] - [ INFO ]  Started RepairsApplication in 8.782 seconds (JVM running for 11.025)
+2022-03-30 15:42:07  [ http-nio-8084-exec-1:25752 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-30 15:42:07  [ http-nio-8084-exec-1:25754 ] - [ INFO ]  Completed initialization in 2 ms
+2022-03-30 16:23:10  [ restartedMain:1224 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 5696 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-30 16:23:10  [ restartedMain:1225 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-30 16:23:11  [ restartedMain:1320 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-30 16:23:11  [ restartedMain:1320 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-30 16:23:12  [ restartedMain:2614 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-30 16:23:12  [ restartedMain:2651 ] - [ INFO ]  Finished Spring Data repository scanning in 23 ms. Found 0 JPA repository interfaces.
+2022-03-30 16:23:13  [ restartedMain:3657 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-30 16:23:13  [ restartedMain:3835 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 2514 ms
+2022-03-30 16:23:13  [ restartedMain:4030 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-30 16:23:14  [ restartedMain:4395 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-30 16:23:14  [ restartedMain:4420 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-30 16:23:14  [ restartedMain:4601 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-30 16:23:14  [ restartedMain:4870 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-30 16:23:14  [ restartedMain:5053 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-30 16:23:15  [ restartedMain:5269 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-30 16:23:15  [ restartedMain:5295 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-30 16:23:15  [ restartedMain:6112 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-30 16:23:16  [ restartedMain:6369 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-30 16:23:16  [ restartedMain:6673 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-30 16:23:16  [ restartedMain:6800 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-30 16:23:17  [ restartedMain:7503 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-30 16:23:17  [ restartedMain:7858 ] - [ INFO ]  Context refreshed
+2022-03-30 16:23:17  [ restartedMain:7881 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-30 16:23:17  [ restartedMain:7930 ] - [ INFO ]  Scanning for api listing references
+2022-03-30 16:23:19  [ restartedMain:9411 ] - [ INFO ]  Started RepairsApplication in 9.366 seconds (JVM running for 11.309)

+ 353 - 0
logs/info.log.2022-03-29

@@ -0,0 +1,353 @@
+2022-03-29 17:12:06  [ restartedMain:869 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 14356 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 17:12:06  [ restartedMain:870 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 17:12:06  [ restartedMain:923 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 17:12:06  [ restartedMain:923 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 17:12:07  [ restartedMain:1951 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 17:12:07  [ restartedMain:1978 ] - [ INFO ]  Finished Spring Data repository scanning in 15 ms. Found 0 JPA repository interfaces.
+2022-03-29 17:12:08  [ restartedMain:2758 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 17:12:08  [ restartedMain:2902 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 1975 ms
+2022-03-29 17:12:08  [ restartedMain:3046 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-29 17:12:08  [ restartedMain:3363 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 17:12:08  [ restartedMain:3367 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-29 17:12:08  [ restartedMain:3531 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-29 17:12:09  [ restartedMain:3650 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-29 17:12:09  [ restartedMain:3774 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 17:12:09  [ restartedMain:3938 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 17:12:09  [ restartedMain:3951 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 17:12:09  [ restartedMain:4527 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:12:10  [ restartedMain:4691 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 17:12:10  [ restartedMain:4899 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 17:12:10  [ restartedMain:5005 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 17:12:10  [ restartedMain:5454 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 17:12:11  [ restartedMain:5704 ] - [ INFO ]  Context refreshed
+2022-03-29 17:12:11  [ restartedMain:5722 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 17:12:11  [ restartedMain:5759 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 17:12:12  [ restartedMain:7194 ] - [ INFO ]  Started RepairsApplication in 7.168 seconds (JVM running for 8.538)
+2022-03-29 17:12:55  [ http-nio-8084-exec-1:49947 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-29 17:12:55  [ http-nio-8084-exec-1:49949 ] - [ INFO ]  Completed initialization in 2 ms
+2022-03-29 17:18:49  [ restartedMain:1119 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 13280 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 17:18:49  [ restartedMain:1120 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 17:18:49  [ restartedMain:1188 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 17:18:49  [ restartedMain:1189 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 17:18:50  [ restartedMain:2350 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 17:18:50  [ restartedMain:2381 ] - [ INFO ]  Finished Spring Data repository scanning in 17 ms. Found 0 JPA repository interfaces.
+2022-03-29 17:18:51  [ restartedMain:3236 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 17:18:52  [ restartedMain:3411 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 2221 ms
+2022-03-29 17:18:52  [ restartedMain:3568 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-29 17:18:52  [ restartedMain:3926 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 17:18:52  [ restartedMain:3931 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-29 17:18:52  [ restartedMain:4094 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-29 17:18:52  [ restartedMain:4219 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-29 17:18:52  [ restartedMain:4389 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 17:18:53  [ restartedMain:4560 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 17:18:53  [ restartedMain:4574 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 17:18:53  [ restartedMain:5155 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:18:53  [ restartedMain:5343 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 17:18:54  [ restartedMain:5574 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 17:18:54  [ restartedMain:5677 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 17:18:54  [ restartedMain:6186 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 17:18:55  [ restartedMain:6458 ] - [ INFO ]  Context refreshed
+2022-03-29 17:18:55  [ restartedMain:6476 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 17:18:55  [ restartedMain:6513 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 17:18:56  [ restartedMain:7799 ] - [ INFO ]  Started RepairsApplication in 7.77 seconds (JVM running for 9.407)
+2022-03-29 17:19:43  [ http-nio-8084-exec-2:54925 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-29 17:19:43  [ http-nio-8084-exec-2:54927 ] - [ INFO ]  Completed initialization in 2 ms
+2022-03-29 17:22:39  [ restartedMain:1118 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 16148 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 17:22:39  [ restartedMain:1119 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 17:22:39  [ restartedMain:1180 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 17:22:39  [ restartedMain:1180 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 17:22:40  [ restartedMain:2236 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 17:22:40  [ restartedMain:2262 ] - [ INFO ]  Finished Spring Data repository scanning in 15 ms. Found 0 JPA repository interfaces.
+2022-03-29 17:22:41  [ restartedMain:3060 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 17:22:41  [ restartedMain:3175 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 1995 ms
+2022-03-29 17:22:41  [ restartedMain:3290 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-29 17:22:41  [ restartedMain:3600 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 17:22:41  [ restartedMain:3603 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-29 17:22:41  [ restartedMain:3764 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-29 17:22:42  [ restartedMain:3878 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-29 17:22:42  [ restartedMain:3990 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 17:22:42  [ restartedMain:4186 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 17:22:42  [ restartedMain:4198 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 17:22:42  [ restartedMain:4772 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:22:43  [ restartedMain:4917 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 17:22:43  [ restartedMain:5104 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 17:22:43  [ restartedMain:5196 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 17:22:43  [ restartedMain:5700 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 17:22:44  [ restartedMain:6024 ] - [ INFO ]  Context refreshed
+2022-03-29 17:22:44  [ restartedMain:6068 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 17:22:44  [ restartedMain:6105 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 17:22:45  [ restartedMain:7358 ] - [ INFO ]  Started RepairsApplication in 7.33 seconds (JVM running for 8.846)
+2022-03-29 17:24:00  [ http-nio-8084-exec-2:82568 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-29 17:24:00  [ http-nio-8084-exec-2:82570 ] - [ INFO ]  Completed initialization in 2 ms
+2022-03-29 17:24:16  [ restartedMain:1019 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 15540 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 17:24:16  [ restartedMain:1020 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 17:24:16  [ restartedMain:1071 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 17:24:16  [ restartedMain:1071 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 17:24:17  [ restartedMain:2075 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 17:24:17  [ restartedMain:2101 ] - [ INFO ]  Finished Spring Data repository scanning in 15 ms. Found 0 JPA repository interfaces.
+2022-03-29 17:24:18  [ restartedMain:2873 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 17:24:18  [ restartedMain:3014 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 1942 ms
+2022-03-29 17:24:18  [ restartedMain:3160 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-29 17:24:18  [ restartedMain:3477 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 17:24:18  [ restartedMain:3481 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-29 17:24:19  [ restartedMain:3671 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-29 17:24:19  [ restartedMain:3789 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-29 17:24:19  [ restartedMain:3911 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 17:24:19  [ restartedMain:4067 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 17:24:19  [ restartedMain:4080 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 17:24:20  [ restartedMain:4658 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:24:20  [ restartedMain:4822 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 17:24:20  [ restartedMain:5037 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 17:24:20  [ restartedMain:5152 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 17:24:21  [ restartedMain:5593 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 17:24:21  [ restartedMain:5840 ] - [ INFO ]  Context refreshed
+2022-03-29 17:24:21  [ restartedMain:5857 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 17:24:21  [ restartedMain:5891 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 17:24:22  [ restartedMain:7221 ] - [ INFO ]  Started RepairsApplication in 7.175 seconds (JVM running for 8.698)
+2022-03-29 17:24:30  [ http-nio-8084-exec-4:15517 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-29 17:24:30  [ http-nio-8084-exec-4:15519 ] - [ INFO ]  Completed initialization in 2 ms
+2022-03-29 17:56:55  [ restartedMain:1117 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 7872 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 17:56:55  [ restartedMain:1118 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 17:56:55  [ restartedMain:1178 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 17:56:55  [ restartedMain:1178 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 17:56:56  [ restartedMain:2192 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 17:56:56  [ restartedMain:2220 ] - [ INFO ]  Finished Spring Data repository scanning in 17 ms. Found 0 JPA repository interfaces.
+2022-03-29 17:56:57  [ restartedMain:3184 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 17:56:57  [ restartedMain:3346 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 2167 ms
+2022-03-29 17:56:57  [ restartedMain:3497 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-29 17:56:57  [ restartedMain:3829 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 17:56:57  [ restartedMain:3844 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-29 17:56:57  [ restartedMain:3993 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-29 17:56:58  [ restartedMain:4141 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-29 17:56:58  [ restartedMain:4306 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 17:56:58  [ restartedMain:4499 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 17:56:58  [ restartedMain:4513 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 17:56:59  [ restartedMain:5079 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:56:59  [ restartedMain:5241 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 17:56:59  [ restartedMain:5435 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 17:56:59  [ restartedMain:5534 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 17:56:59  [ restartedMain:5990 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 17:57:00  [ restartedMain:6261 ] - [ INFO ]  Context refreshed
+2022-03-29 17:57:00  [ restartedMain:6280 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 17:57:00  [ restartedMain:6317 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 17:57:01  [ restartedMain:7773 ] - [ INFO ]  Started RepairsApplication in 7.754 seconds (JVM running for 9.07)
+2022-03-29 17:57:04  [ http-nio-8084-exec-1:10336 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-29 17:57:04  [ http-nio-8084-exec-1:10338 ] - [ INFO ]  Completed initialization in 2 ms
+2022-03-29 18:26:15  [ Thread-17:1761149 ] - [ INFO ]  Closing JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 18:26:15  [ Thread-17:1761156 ] - [ INFO ]  HikariPool-1 - Shutdown initiated...
+2022-03-29 18:26:15  [ Thread-17:1761160 ] - [ INFO ]  HikariPool-1 - Shutdown completed.
+2022-03-29 18:26:16  [ restartedMain:1762314 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 18:26:16  [ restartedMain:1762314 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 18:26:16  [ restartedMain:1762322 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 7872 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 18:26:16  [ restartedMain:1762322 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 18:26:17  [ restartedMain:1763077 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 18:26:17  [ restartedMain:1763090 ] - [ INFO ]  Finished Spring Data repository scanning in 11 ms. Found 0 JPA repository interfaces.
+2022-03-29 18:26:17  [ restartedMain:1763316 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 18:26:17  [ restartedMain:1763348 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 1022 ms
+2022-03-29 18:26:17  [ restartedMain:1763395 ] - [ INFO ]  HikariPool-2 - Starting...
+2022-03-29 18:26:17  [ restartedMain:1763398 ] - [ INFO ]  HikariPool-2 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 18:26:17  [ restartedMain:1763690 ] - [ INFO ]  HikariPool-2 - Start completed.
+2022-03-29 18:26:17  [ restartedMain:1763715 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 18:26:17  [ restartedMain:1763729 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 18:26:17  [ restartedMain:1763730 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 18:26:18  [ restartedMain:1764272 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 18:26:18  [ restartedMain:1764343 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 18:26:18  [ restartedMain:1764466 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 18:26:18  [ restartedMain:1764534 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 18:26:19  [ restartedMain:1766002 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 18:26:20  [ restartedMain:1766276 ] - [ INFO ]  Context refreshed
+2022-03-29 18:26:20  [ restartedMain:1766277 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 18:26:20  [ restartedMain:1766291 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 18:26:21  [ restartedMain:1767091 ] - [ INFO ]  Started RepairsApplication in 5.591 seconds (JVM running for 1768.388)
+2022-03-29 18:26:21  [ restartedMain:1767094 ] - [ INFO ]  Condition evaluation unchanged
+2022-03-29 18:27:30  [ Thread-32:1836131 ] - [ INFO ]  Closing JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 18:27:30  [ Thread-32:1836209 ] - [ INFO ]  HikariPool-2 - Shutdown initiated...
+2022-03-29 18:27:30  [ Thread-32:1836353 ] - [ INFO ]  HikariPool-2 - Shutdown completed.
+2022-03-29 18:27:32  [ restartedMain:1838161 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 18:27:32  [ restartedMain:1838162 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 18:27:32  [ restartedMain:1838168 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 7872 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 18:27:32  [ restartedMain:1838168 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 18:27:34  [ restartedMain:1840808 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 18:27:34  [ restartedMain:1840821 ] - [ INFO ]  Finished Spring Data repository scanning in 11 ms. Found 0 JPA repository interfaces.
+2022-03-29 18:27:35  [ restartedMain:1841459 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 18:27:35  [ restartedMain:1841486 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 3315 ms
+2022-03-29 18:27:35  [ restartedMain:1841587 ] - [ INFO ]  HikariPool-3 - Starting...
+2022-03-29 18:27:55  [ restartedMain:1103 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 14068 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 18:27:55  [ restartedMain:1104 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 18:27:55  [ restartedMain:1155 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 18:27:55  [ restartedMain:1155 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 18:27:56  [ restartedMain:2312 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 18:27:56  [ restartedMain:2341 ] - [ INFO ]  Finished Spring Data repository scanning in 16 ms. Found 0 JPA repository interfaces.
+2022-03-29 18:27:57  [ restartedMain:3134 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 18:27:57  [ restartedMain:3341 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 2185 ms
+2022-03-29 18:27:58  [ restartedMain:3526 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-29 18:27:58  [ restartedMain:3871 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 18:27:58  [ restartedMain:3876 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-29 18:27:58  [ restartedMain:4090 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-29 18:27:58  [ restartedMain:4215 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-29 18:27:58  [ restartedMain:4356 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 18:27:59  [ restartedMain:4522 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 18:27:59  [ restartedMain:4539 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 18:27:59  [ restartedMain:5161 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 18:27:59  [ restartedMain:5365 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 18:28:00  [ restartedMain:5601 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 18:28:00  [ restartedMain:5700 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 18:28:00  [ restartedMain:6295 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 18:28:01  [ restartedMain:6660 ] - [ INFO ]  Context refreshed
+2022-03-29 18:28:01  [ restartedMain:6690 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 18:28:01  [ restartedMain:6744 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 18:28:02  [ restartedMain:7929 ] - [ INFO ]  Started RepairsApplication in 7.912 seconds (JVM running for 9.515)
+2022-03-29 18:39:34  [ http-nio-8084-exec-1:699690 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-29 18:39:34  [ http-nio-8084-exec-1:699693 ] - [ INFO ]  Completed initialization in 3 ms
+2022-03-29 19:49:48  [ Thread-17:4913649 ] - [ INFO ]  Closing JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 19:49:48  [ Thread-17:4913689 ] - [ INFO ]  HikariPool-1 - Shutdown initiated...
+2022-03-29 19:49:48  [ Thread-17:4913882 ] - [ INFO ]  HikariPool-1 - Shutdown completed.
+2022-03-29 19:49:51  [ restartedMain:4916663 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 19:49:51  [ restartedMain:4916663 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 19:49:51  [ restartedMain:4916671 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 14068 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 19:49:51  [ restartedMain:4916672 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 19:49:52  [ restartedMain:4918152 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 19:49:52  [ restartedMain:4918165 ] - [ INFO ]  Finished Spring Data repository scanning in 12 ms. Found 0 JPA repository interfaces.
+2022-03-29 19:49:53  [ restartedMain:4918543 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 19:49:53  [ restartedMain:4918592 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 1917 ms
+2022-03-29 19:49:53  [ restartedMain:4918736 ] - [ INFO ]  HikariPool-2 - Starting...
+2022-03-29 19:49:53  [ restartedMain:4918745 ] - [ INFO ]  HikariPool-2 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 19:49:53  [ restartedMain:4918746 ] - [ INFO ]  HikariPool-2 - Start completed.
+2022-03-29 19:49:53  [ restartedMain:4918771 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 19:49:53  [ restartedMain:4918786 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 19:49:53  [ restartedMain:4918787 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 19:49:53  [ restartedMain:4919294 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 19:49:53  [ restartedMain:4919453 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 19:49:54  [ restartedMain:4919573 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 19:49:54  [ restartedMain:4919686 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 19:49:56  [ restartedMain:4922187 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 19:49:57  [ restartedMain:4923345 ] - [ INFO ]  Context refreshed
+2022-03-29 19:49:57  [ restartedMain:4923346 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 19:49:57  [ restartedMain:4923353 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 19:49:58  [ restartedMain:4923952 ] - [ INFO ]  Started RepairsApplication in 9.554 seconds (JVM running for 4925.538)
+2022-03-29 19:49:58  [ restartedMain:4923954 ] - [ INFO ]  Condition evaluation unchanged
+2022-03-29 20:01:11  [ Thread-34:5597318 ] - [ INFO ]  Closing JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 20:01:11  [ Thread-34:5597322 ] - [ INFO ]  HikariPool-2 - Shutdown initiated...
+2022-03-29 20:01:11  [ Thread-34:5597340 ] - [ INFO ]  HikariPool-2 - Shutdown completed.
+2022-03-29 20:01:15  [ restartedMain:5601087 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 20:01:15  [ restartedMain:5601088 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 20:01:15  [ restartedMain:5601095 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 14068 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 20:01:15  [ restartedMain:5601095 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 20:01:19  [ restartedMain:5605084 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 20:01:19  [ restartedMain:5605095 ] - [ INFO ]  Finished Spring Data repository scanning in 11 ms. Found 0 JPA repository interfaces.
+2022-03-29 20:01:20  [ restartedMain:5605517 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 20:01:20  [ restartedMain:5605557 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 4459 ms
+2022-03-29 20:01:20  [ restartedMain:5605715 ] - [ INFO ]  HikariPool-3 - Starting...
+2022-03-29 20:01:42  [ restartedMain:5627970 ] - [ ERROR ]  HikariPool-3 - Exception during pool initialization.
+com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
+
+Last packet sent to the server was 0 ms ago.
+	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
+	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
+	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
+	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
+	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
+	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
+	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2103)
+	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:718)
+	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
+	at sun.reflect.GeneratedConstructorAccessor71.newInstance(Unknown Source)
+	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
+	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
+	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
+	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
+	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
+	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
+	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364)
+	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
+	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476)
+	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561)
+	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
+	at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
+	at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158)
+	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116)
+	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
+	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:330)
+	at org.springframework.boot.jdbc.EmbeddedDatabaseConnection.isEmbedded(EmbeddedDatabaseConnection.java:184)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateDefaultDdlAutoProvider.getDefaultDdlAuto(HibernateDefaultDdlAutoProvider.java:42)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration.lambda$getVendorProperties$1(HibernateJpaConfiguration.java:130)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings.getDdlAuto(HibernateSettings.java:41)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties.determineDdlAuto(HibernateProperties.java:143)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties.getAdditionalProperties(HibernateProperties.java:103)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties.determineHibernateProperties(HibernateProperties.java:95)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration.getVendorProperties(HibernateJpaConfiguration.java:132)
+	at org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.entityManagerFactory(JpaBaseConfiguration.java:132)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+	at java.lang.reflect.Method.invoke(Method.java:498)
+	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
+	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
+	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524)
+	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
+	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
+	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
+	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
+	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154)
+	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908)
+	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
+	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
+	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
+	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
+	at org.springframework.boot.SpringApplication.run(SpringApplication.java:338)
+	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343)
+	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1332)
+	at com.chuanghai.repair.RepairsApplication.main(RepairsApplication.java:23)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+	at java.lang.reflect.Method.invoke(Method.java:498)
+	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
+Caused by: java.net.ConnectException: Connection timed out: connect
+	at java.net.DualStackPlainSocketImpl.connect0(Native Method)
+	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
+	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
+	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
+	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
+	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
+	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
+	at java.net.Socket.connect(Socket.java:589)
+	at java.net.Socket.connect(Socket.java:538)
+	at java.net.Socket.<init>(Socket.java:434)
+	at java.net.Socket.<init>(Socket.java:244)
+	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)
+	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
+	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2026)
+	... 58 more
+2022-03-29 20:01:42  [ restartedMain:5628140 ] - [ INFO ]  HikariPool-3 - Starting...
+2022-03-29 20:12:09  [ restartedMain:1318 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 6736 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 20:12:09  [ restartedMain:1319 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 20:12:10  [ restartedMain:1379 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 20:12:10  [ restartedMain:1379 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 20:12:11  [ restartedMain:2611 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 20:12:11  [ restartedMain:2642 ] - [ INFO ]  Finished Spring Data repository scanning in 17 ms. Found 0 JPA repository interfaces.
+2022-03-29 20:12:12  [ restartedMain:3550 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 20:12:12  [ restartedMain:3674 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 2294 ms
+2022-03-29 20:12:12  [ restartedMain:3822 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-29 20:12:12  [ restartedMain:4163 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 20:12:12  [ restartedMain:4169 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-29 20:12:13  [ restartedMain:4374 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-29 20:12:13  [ restartedMain:4493 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-29 20:12:13  [ restartedMain:4620 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 20:12:13  [ restartedMain:4781 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 20:12:13  [ restartedMain:4794 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 20:12:14  [ restartedMain:5377 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 20:12:14  [ restartedMain:5579 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 20:12:14  [ restartedMain:5778 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 20:12:14  [ restartedMain:5872 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 20:12:15  [ restartedMain:6375 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 20:12:15  [ restartedMain:6670 ] - [ INFO ]  Context refreshed
+2022-03-29 20:12:15  [ restartedMain:6691 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 20:12:15  [ restartedMain:6735 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 20:12:17  [ restartedMain:8721 ] - [ INFO ]  Started RepairsApplication in 8.701 seconds (JVM running for 10.376)
+2022-03-29 20:12:57  [ http-nio-8084-exec-1:49297 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-29 20:12:57  [ http-nio-8084-exec-1:49299 ] - [ INFO ]  Completed initialization in 2 ms

+ 54 - 0
logs/info/info.log

@@ -0,0 +1,54 @@
+2022-03-29 16:32:44  [ restartedMain:1061 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 2512 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 16:32:44  [ restartedMain:1062 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 16:32:44  [ restartedMain:1132 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 16:32:44  [ restartedMain:1133 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 16:32:46  [ restartedMain:2759 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 16:32:46  [ restartedMain:2786 ] - [ INFO ]  Finished Spring Data repository scanning in 15 ms. Found 0 JPA repository interfaces.
+2022-03-29 16:32:47  [ restartedMain:3585 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 16:32:47  [ restartedMain:3702 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 2568 ms
+2022-03-29 16:32:47  [ restartedMain:3841 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-29 16:32:47  [ restartedMain:4155 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 16:32:47  [ restartedMain:4159 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-29 16:32:47  [ restartedMain:4331 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-29 16:32:47  [ restartedMain:4451 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-29 16:32:48  [ restartedMain:4583 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 16:32:48  [ restartedMain:4754 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 16:32:48  [ restartedMain:4767 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 16:32:48  [ restartedMain:5376 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 16:32:49  [ restartedMain:5568 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 16:32:49  [ restartedMain:5765 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 16:32:49  [ restartedMain:5866 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 16:32:49  [ restartedMain:6300 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 16:32:49  [ restartedMain:6545 ] - [ INFO ]  Context refreshed
+2022-03-29 16:32:50  [ restartedMain:6562 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 16:32:50  [ restartedMain:6597 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 16:32:51  [ restartedMain:7975 ] - [ INFO ]  Started RepairsApplication in 7.937 seconds (JVM running for 9.708)
+2022-03-29 16:33:10  [ http-nio-8084-exec-1:27108 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-29 16:33:10  [ http-nio-8084-exec-1:27110 ] - [ INFO ]  Completed initialization in 2 ms
+2022-03-29 16:48:16  [ restartedMain:887 ] - [ INFO ]  Starting RepairsApplication using Java 1.8.0_181 on bingo with PID 15952 (C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api\target\classes started by Administrator in C:\Users\Administrator\Desktop\学校报修系统\code\repair_reporting_system_api)
+2022-03-29 16:48:16  [ restartedMain:889 ] - [ INFO ]  No active profile set, falling back to default profiles: default
+2022-03-29 16:48:16  [ restartedMain:944 ] - [ INFO ]  Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
+2022-03-29 16:48:16  [ restartedMain:944 ] - [ INFO ]  For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
+2022-03-29 16:48:17  [ restartedMain:1996 ] - [ INFO ]  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
+2022-03-29 16:48:17  [ restartedMain:2025 ] - [ INFO ]  Finished Spring Data repository scanning in 18 ms. Found 0 JPA repository interfaces.
+2022-03-29 16:48:18  [ restartedMain:2821 ] - [ INFO ]  Tomcat initialized with port(s): 8084 (http)
+2022-03-29 16:48:18  [ restartedMain:2964 ] - [ INFO ]  Root WebApplicationContext: initialization completed in 2018 ms
+2022-03-29 16:48:18  [ restartedMain:3132 ] - [ INFO ]  HikariPool-1 - Starting...
+2022-03-29 16:48:18  [ restartedMain:3449 ] - [ INFO ]  HikariPool-1 - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
+2022-03-29 16:48:18  [ restartedMain:3466 ] - [ INFO ]  HikariPool-1 - Start completed.
+2022-03-29 16:48:18  [ restartedMain:3615 ] - [ INFO ]  HHH000412: Hibernate ORM core version 5.4.32.Final
+2022-03-29 16:48:19  [ restartedMain:3744 ] - [ INFO ]  HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
+2022-03-29 16:48:19  [ restartedMain:3871 ] - [ INFO ]  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
+2022-03-29 16:48:19  [ restartedMain:4038 ] - [ INFO ]  HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
+2022-03-29 16:48:19  [ restartedMain:4051 ] - [ INFO ]  Initialized JPA EntityManagerFactory for persistence unit 'default'
+2022-03-29 16:48:19  [ restartedMain:4605 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 16:48:20  [ restartedMain:4776 ] - [ INFO ]  Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
+2022-03-29 16:48:20  [ restartedMain:4978 ] - [ INFO ]  LiveReload server is running on port 35729
+2022-03-29 16:48:20  [ restartedMain:5074 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 16:48:20  [ restartedMain:5551 ] - [ INFO ]  Tomcat started on port(s): 8084 (http) with context path ''
+2022-03-29 16:48:21  [ restartedMain:5807 ] - [ INFO ]  Context refreshed
+2022-03-29 16:48:21  [ restartedMain:5827 ] - [ INFO ]  Found 1 custom documentation plugin(s)
+2022-03-29 16:48:21  [ restartedMain:5865 ] - [ INFO ]  Scanning for api listing references
+2022-03-29 16:48:22  [ restartedMain:7298 ] - [ INFO ]  Started RepairsApplication in 7.271 seconds (JVM running for 8.46)
+2022-03-29 16:48:31  [ http-nio-8084-exec-1:16217 ] - [ INFO ]  Initializing Servlet 'dispatcherServlet'
+2022-03-29 16:48:31  [ http-nio-8084-exec-1:16220 ] - [ INFO ]  Completed initialization in 2 ms

+ 6 - 0
logs/warn.log

@@ -0,0 +1,6 @@
+2022-03-30 09:53:46  [ restartedMain:6667 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-30 09:53:46  [ restartedMain:7173 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-30 15:41:48  [ restartedMain:6072 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-30 15:41:48  [ restartedMain:6742 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-30 16:23:15  [ restartedMain:6112 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-30 16:23:16  [ restartedMain:6800 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)

+ 103 - 0
logs/warn.log.2022-03-29

@@ -0,0 +1,103 @@
+2022-03-29 17:12:09  [ restartedMain:4527 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:12:10  [ restartedMain:5005 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 17:18:53  [ restartedMain:5155 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:18:54  [ restartedMain:5677 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 17:22:42  [ restartedMain:4772 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:22:43  [ restartedMain:5196 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 17:24:20  [ restartedMain:4658 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:24:20  [ restartedMain:5152 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 17:56:59  [ restartedMain:5079 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 17:56:59  [ restartedMain:5534 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 18:26:18  [ restartedMain:1764272 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 18:26:18  [ restartedMain:1764534 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 18:27:59  [ restartedMain:5161 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 18:28:00  [ restartedMain:5700 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 19:49:53  [ restartedMain:4919294 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 19:49:54  [ restartedMain:4919686 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 20:01:42  [ restartedMain:5627970 ] - [ ERROR ]  HikariPool-3 - Exception during pool initialization.
+com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
+
+Last packet sent to the server was 0 ms ago.
+	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
+	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
+	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
+	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
+	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
+	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
+	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2103)
+	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:718)
+	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
+	at sun.reflect.GeneratedConstructorAccessor71.newInstance(Unknown Source)
+	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
+	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
+	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
+	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
+	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
+	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
+	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364)
+	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
+	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476)
+	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561)
+	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
+	at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
+	at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158)
+	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116)
+	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
+	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:330)
+	at org.springframework.boot.jdbc.EmbeddedDatabaseConnection.isEmbedded(EmbeddedDatabaseConnection.java:184)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateDefaultDdlAutoProvider.getDefaultDdlAuto(HibernateDefaultDdlAutoProvider.java:42)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration.lambda$getVendorProperties$1(HibernateJpaConfiguration.java:130)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings.getDdlAuto(HibernateSettings.java:41)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties.determineDdlAuto(HibernateProperties.java:143)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties.getAdditionalProperties(HibernateProperties.java:103)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties.determineHibernateProperties(HibernateProperties.java:95)
+	at org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration.getVendorProperties(HibernateJpaConfiguration.java:132)
+	at org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.entityManagerFactory(JpaBaseConfiguration.java:132)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+	at java.lang.reflect.Method.invoke(Method.java:498)
+	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
+	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
+	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564)
+	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524)
+	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
+	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
+	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
+	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
+	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154)
+	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908)
+	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
+	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
+	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
+	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
+	at org.springframework.boot.SpringApplication.run(SpringApplication.java:338)
+	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343)
+	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1332)
+	at com.chuanghai.repair.RepairsApplication.main(RepairsApplication.java:23)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+	at java.lang.reflect.Method.invoke(Method.java:498)
+	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
+Caused by: java.net.ConnectException: Connection timed out: connect
+	at java.net.DualStackPlainSocketImpl.connect0(Native Method)
+	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
+	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
+	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
+	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
+	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
+	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
+	at java.net.Socket.connect(Socket.java:589)
+	at java.net.Socket.connect(Socket.java:538)
+	at java.net.Socket.<init>(Socket.java:434)
+	at java.net.Socket.<init>(Socket.java:244)
+	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)
+	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
+	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2026)
+	... 58 more
+2022-03-29 20:12:14  [ restartedMain:5377 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 20:12:14  [ restartedMain:5872 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)

+ 4 - 0
logs/warn/warn.log

@@ -0,0 +1,4 @@
+2022-03-29 16:32:48  [ restartedMain:5376 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 16:32:49  [ restartedMain:5866 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
+2022-03-29 16:48:19  [ restartedMain:4605 ] - [ WARN ]  spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
+2022-03-29 16:48:20  [ restartedMain:5074 ] - [ WARN ]  Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)

+ 28 - 0
pom.xml

@@ -226,6 +226,34 @@
             <groupId>com.fasterxml.jackson.core</groupId>
             <artifactId>jackson-databind</artifactId>
         </dependency>
+<!-- log4j-->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.springframework.boot</groupId>
+                    <artifactId>spring-boot-starter-logging</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.springframework.boot</groupId>
+                    <artifactId>spring-boot-starter-logging</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-log4j</artifactId>
+            <version>1.3.8.RELEASE</version>
+        </dependency>
+
 
     </dependencies>
 

+ 0 - 41
src/main/java/com/chuanghai/repair/auth/LoginConfig.java

@@ -1,41 +0,0 @@
-//package com.chuanghai.repair.auth;
-//
-//import com.chuanghai.repair.config.WeixiaoConfig;
-//import org.springframework.beans.factory.annotation.Autowired;
-//import org.springframework.context.annotation.Configuration;
-//import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
-//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
-//
-//import javax.annotation.Resource;
-//
-///**
-// * @Author: bingo
-// * @Date: 2022/3/26 星期六 15:13
-// * @Description: com.chuanghai.repair.auth
-// * @version: 1.0
-// */
-//@Configuration
-//public class LoginConfig implements WebMvcConfigurer {
-//
-//    @Resource
-//    private LoginInterceptor loginInterceptor;
-//
-//    @Override
-//    public void addInterceptors(InterceptorRegistry registry) {
-//        //注册TestInterceptor拦截器
-//        InterceptorRegistration registration = registry.addInterceptor(loginInterceptor);
-//        registration.addPathPatterns(
-//                "/index/**"
-//
-//        );                      //所有路径都被拦截
-//        registration.excludePathPatterns(                         //添加不拦截路径
-//                "/login/**",              //登录
-//                "/**/*.html",            //html静态资源
-//                "/**/*.js",              //js静态资源
-//                "/**/*.css",             //css静态资源
-//                "/**/*.woff",
-//                "/**/*.ttf"
-//        );
-//    }
-//}

+ 0 - 70
src/main/java/com/chuanghai/repair/auth/LoginInterceptor.java

@@ -1,70 +0,0 @@
-//package com.chuanghai.repair.auth;
-//
-//import com.chuanghai.repair.config.WeixiaoConfig;
-//import com.chuanghai.repair.utils.CreateTokenUtil;
-//import org.slf4j.Logger;
-//import org.slf4j.LoggerFactory;
-//import org.springframework.beans.factory.annotation.Autowired;
-//import org.springframework.stereotype.Component;
-//import org.springframework.web.servlet.HandlerInterceptor;
-//import org.springframework.web.servlet.ModelAndView;
-//
-//import javax.servlet.http.HttpServletRequest;
-//import javax.servlet.http.HttpServletResponse;
-//import java.io.IOException;
-//
-///**
-// * @Author: bingo
-// * @Date: 2022/3/26 星期六 14:56
-// * @Description: com.chuanghai.repair.auth
-// * @version: 1.0
-// */
-//@Component
-//public class LoginInterceptor implements HandlerInterceptor {
-//    @Autowired
-//    private WeixiaoConfig weixiaoConfig;
-//
-//    private static final Logger LOG = LoggerFactory.getLogger(LoginInterceptor.class);
-//    /**
-//     * 在请求处理之前进行调用(Controller方法调用之前)
-//     */
-//    @Override
-//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {
-//
-//        LOG.info("统一拦截(通过获取请求头中的access_token信息,为null则需跳转登录)");
-//        try {
-//            //统一拦截(通过获取请求头中的access_token信息,为null则需跳转登录)
-//            String access_token = request.getHeader("access_token");
-//            LOG.info(access_token);
-//            if(access_token==null){
-//                response.sendRedirect(request.getContextPath()+weixiaoConfig.getRequestUrl());
-//                return false;
-//            }
-//
-//
-//
-//        } catch (IOException e) {
-//            e.printStackTrace();
-//        }
-//        return true;//如果设置为false时,被请求时,拦截器执行到此处将不会继续操作
-//        //如果设置为true时,请求将会继续执行后面的操作
-//    }
-//
-//    /**
-//     * 请求处理之后进行调用,但是在视图被渲染之前(Controller方法调用之后)
-//     */
-//    @Override
-//    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) {
-////         System.out.println("执行了TestInterceptor的postHandle方法");
-//    }
-//
-//    /**
-//     * 在整个请求结束之后被调用,也就是在DispatcherServlet 渲染了对应的视图之后执行(主要是用于进行资源清理工作)
-//     */
-//    @Override
-//    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) {
-////        System.out.println("执行了TestInterceptor的afterCompletion方法");
-//    }
-//
-//
-//}

+ 0 - 67
src/main/java/com/chuanghai/repair/auth/TokenAuthorFilter.java

@@ -1,67 +0,0 @@
-//package com.chuanghai.repair.auth;
-//
-//import com.alibaba.fastjson.JSON;
-//import com.chuanghai.repair.utils.ReturnValueUtil;
-//import org.mybatis.logging.Logger;
-//import org.mybatis.logging.LoggerFactory;
-//import org.springframework.stereotype.Component;
-//
-//import javax.servlet.*;
-//import javax.servlet.http.HttpServletRequest;
-//import javax.servlet.http.HttpServletResponse;
-//import java.io.IOException;
-//import java.io.OutputStreamWriter;
-//import java.io.PrintWriter;
-//import java.io.UnsupportedEncodingException;
-//
-///**
-// * @Author: bingo
-// * @Date: 2022/3/27 星期日 13:42
-// * @Description: com.chuanghai.repair.auth
-// * @version: 1.0
-// */
-//@Component
-//public class TokenAuthorFilter implements Filter {
-//
-//    private static Logger logger = LoggerFactory
-//            .getLogger(TokenAuthorFilter.class);
-//
-//    @Override
-//    public void destroy() {
-//
-//    }
-//
-//    @Override
-//    public void doFilter(ServletRequest request, ServletResponse response,
-//                         FilterChain chain) throws IOException, ServletException {
-//        HttpServletRequest req = (HttpServletRequest) request;
-//        HttpServletResponse rep = (HttpServletResponse) response;
-//
-//        response.setCharacterEncoding("UTF-8");
-//        response.setContentType("application/json; charset=utf-8");
-//
-//
-//        String uri = req.getRequestURI();
-//        String access_token = req.getHeader("access_token");//header方式
-//        if(access_token != null){
-//            chain.doFilter(request, response);
-//        } else {
-//            if((uri.contains("login") || uri.contains("tetsapi"))) {//登录与UserServlet放行
-//                chain.doFilter(request, response);//放行方法){
-//            }
-//
-//
-//        }
-//
-//
-//
-//
-//
-//    }
-//
-//    @Override
-//    public void init(FilterConfig arg0) throws ServletException {
-//
-//    }
-//
-//}

+ 14 - 12
src/main/java/com/chuanghai/repair/controller/NoticeController.java

@@ -11,6 +11,7 @@ import com.github.pagehelper.PageInfo;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
+import lombok.extern.log4j.Log4j;
 import org.springframework.web.bind.annotation.CrossOrigin;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -31,6 +32,7 @@ import java.util.List;
  * @Description: com.chuanghai.repair.controller
  * @version: 1.0
  */
+
 @Api(tags = "公告管理")
 @RestController
 @RequestMapping("/notice")
@@ -48,7 +50,9 @@ public class NoticeController {
         try {
             Integer adminId = Integer.parseInt(CreateTokenUtil.getHeadersInfo(request));
             if (adminId != null) {
-                Date noticeTime = Calendar.getInstance().getTime();
+                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+                String time = sdf.format(new Date());
+                Date noticeTime = sdf.parse(time);
                 RepairsAdmin repairsAdmin = new RepairsAdmin();
                 repairsAdmin.setAdminId(adminId);
                 RepairsNotice repairsNotice = new RepairsNotice(null,noticeContent, noticeTime, "1",repairsAdmin);
@@ -78,19 +82,17 @@ public class NoticeController {
     @ApiOperation("删除公告")
     @PostMapping(value = "/updateNotice")
     public ReturnValueUtil updateNotice(HttpServletRequest request,
-                                        @ApiParam(name = "公告Id", required = true) Integer noticeId) {
+                                        @ApiParam(name = "公告Id", required = true) String noticeId) {
         Boolean flag = Boolean.FALSE;
         try {
             Integer adminId = Integer.parseInt(CreateTokenUtil.getHeadersInfo(request));
-
-            RepairsAdmin repairsAdmin = new RepairsAdmin();
-            repairsAdmin.setAdminId(adminId);
-            RepairsNotice repairsNotice = new RepairsNotice(noticeId,null,null,"0",repairsAdmin);
-            ArrayList<RepairsNotice> noticeList = new ArrayList<>();
-            noticeList.add(repairsNotice);
-            repairsNoticeService.updateNotice(noticeList);
-            flag = Boolean.TRUE;
-
+            if(adminId != null && noticeId != null){
+                RepairsAdmin repairsAdmin = new RepairsAdmin();
+                repairsAdmin.setAdminId(adminId);
+                RepairsNotice repairsNotice = new RepairsNotice(Integer.parseInt(noticeId),null,null,"0",repairsAdmin);
+                repairsNoticeService.updateNotice(repairsNotice);
+                flag = Boolean.TRUE;
+            }
         } catch (Exception e) {
             e.printStackTrace();
         }
@@ -117,7 +119,7 @@ public class NoticeController {
                 RepairsNotice repairsNotice = new RepairsNotice(noticeId,noticeContent,noticeTime,null,repairsAdmin);
                 ArrayList<RepairsNotice> noticeList = new ArrayList<>();
                 noticeList.add(repairsNotice);
-                repairsNoticeService.updateNotice(noticeList);
+                repairsNoticeService.updateNotice(repairsNotice);
 
                 flag = Boolean.TRUE;
             }

+ 23 - 21
src/main/java/com/chuanghai/repair/controller/OrderController.java

@@ -67,7 +67,7 @@ public class OrderController {
     @ApiOperation("PC端:查询订单")
     @PostMapping(value = "/queryAllOrderByDate")
     public ReturnValueUtil queryAllOrderByDate(@ApiParam(name = "查询日期") String time,
-                                               @ApiParam(name = "订单状态 0(派单查询)1(待接单查询) 2(已接单查询) 3(已完成查询)4(已退单查询) 23(订单查询)", required = true) String orderStatus,
+                                               @ApiParam(name = "订单状态 0(派单查询)1(待接单查询) 2(已接单查询) 3(已完成查询)4(已退单查询)123(订单查询)", required = true) String orderStatus,
                                                @ApiParam(name = "当前页码") Integer pageNum,
                                                @ApiParam(name = "每页记录数") Integer pageSize) {
         pageNum = pageNum == null ? 1 : pageNum;
@@ -77,7 +77,12 @@ public class OrderController {
             //通过传入的时间参数 获取当天-明天 时间
             DateUtils dateUtils = new DateUtils();
             dateUtils.addOneDay(time);
-            pageInfoOrder = repairsOrderService.queryAllOrderByDate(pageNum, pageSize, dateUtils.getTody(), dateUtils.getTomorrow(), orderStatus);
+            if(orderStatus.equals("0") || orderStatus.equals("4")){  //查询新订单
+                pageInfoOrder = repairsOrderService.queryAllNewBackOrder(pageNum, pageSize, dateUtils.getTody(), dateUtils.getTomorrow(), orderStatus);
+
+            }else{ //查询 1 2 3 4 状态的订单
+                pageInfoOrder = repairsOrderService.queryAllOrderByDate(pageNum, pageSize, dateUtils.getTody(), dateUtils.getTomorrow(), orderStatus);
+            }
 
         } catch (Exception e) {
             e.printStackTrace();
@@ -572,13 +577,15 @@ public class OrderController {
             DateUtils dateUtils = new DateUtils();
             dateUtils.addOneDay(time);
             List<SendOrderExecl> execlList = new ArrayList<>();
-            List<RepairsOrder> orderList = repairsOrderService.queryAllOrderExcel(dateUtils.getTody(), dateUtils.getTomorrow(), "0");
+            List<RepairsOrder> orderList = repairsOrderService.queryAllNewBackOrderExcel(dateUtils.getTody(), dateUtils.getTomorrow(), "0");
             orderList.forEach(RepairsOrder -> {
                 SendOrderExecl sendOrderExecl = new SendOrderExecl();
                 sendOrderExecl.setOrderId(RepairsOrder.getOrderId());
                 sendOrderExecl.setFaultName(RepairsOrder.getRepairsFault().getFaultName());
                 sendOrderExecl.setDormNumber(RepairsOrder.getRepairsStudent().getDormNumber());
                 sendOrderExecl.setOrderExpectedTime(RepairsOrder.getOrderExpectedTime());
+                sendOrderExecl.setStudentPhone(RepairsOrder.getRepairsStudent().getStudentPhone());
+                sendOrderExecl.setStudentOtherPhone(RepairsOrder.getRepairsStudent().getStudentOtherPhone());
                 execlList.add(sendOrderExecl);
             });
 
@@ -603,7 +610,7 @@ public class OrderController {
             dateUtils.addOneDay(time);
             List<BackOrderExecl> execlList = new ArrayList<>();
 
-            List<RepairsOrder> orderList = repairsOrderService.queryAllOrderExcel(dateUtils.getTody(), dateUtils.getTomorrow(), "4");
+            List<RepairsOrder> orderList = repairsOrderService.queryAllNewBackOrderExcel(dateUtils.getTody(), dateUtils.getTomorrow(), "4");
             orderList.forEach(RepairsOrder -> {
                 BackOrderExecl backOrderExecl = new BackOrderExecl();
                 backOrderExecl.setOrderId(RepairsOrder.getOrderId());
@@ -614,6 +621,8 @@ public class OrderController {
                     RepairsOrder.setOrderStatus("已退回");
                 }
                 backOrderExecl.setOrderStatus(RepairsOrder.getOrderStatus());
+                backOrderExecl.setStudentPhone(RepairsOrder.getRepairsStudent().getStudentPhone());
+                backOrderExecl.setStudentOtherPhone(RepairsOrder.getRepairsStudent().getStudentOtherPhone());
                 execlList.add(backOrderExecl);
             });
             //生成Execl表
@@ -631,7 +640,7 @@ public class OrderController {
     @ApiOperation("导出查询订单Excel")
     @PostMapping(value = "/queryOrderExecl")
     public void queryOrderExecl(HttpServletResponse response,
-                                @ApiParam(name = "订单类型1(待接单)2(已接单)3(已完成)", required = true) String orderType,
+                                @ApiParam(name = "订单类型1(待接单)2(已接单)3(已完成)123(全部状态订单)", required = true) String orderType,
                                 @ApiParam(name = "查询时间段", required = true) String time) {
         try {
             DateUtils dateUtils = new DateUtils();
@@ -656,6 +665,8 @@ public class OrderController {
                     RepairsOrder.setOrderStatus("已完成");
                 }
                 queryOrderExecl.setOrderStatus(RepairsOrder.getOrderStatus());
+                queryOrderExecl.setStudentPhone(RepairsOrder.getRepairsStudent().getStudentPhone());
+                queryOrderExecl.setStudentOtherPhone(RepairsOrder.getRepairsStudent().getStudentOtherPhone());
                 execlList.add(queryOrderExecl);
             });
             Workbook workbook = null;
@@ -669,6 +680,10 @@ public class OrderController {
             if(orderType.equals("3")){
                 workbook = ExcelExportUtil.exportExcel(new ExportParams("完成订单信息表", "已完成订单"), QueryOrderExecl.class, execlList);
             }
+            if(orderType.equals("123")){
+                workbook = ExcelExportUtil.exportExcel(new ExportParams("订单信息表", "订单信息"), QueryOrderExecl.class, execlList);
+
+            }
 
             response.setHeader("content-disposition", "attachment;fileName=" + URLEncoder.encode("订单信息.xls", "UTF-8"));
             ServletOutputStream outputStream = response.getOutputStream();
@@ -681,23 +696,8 @@ public class OrderController {
     }
 
 
-//    @ApiOperation("queryAllOrderExcel")
-//    @RequestMapping(value = "/queryAllOrderExcel")
-//    public List<RepairsOrder> queryAllOrderExcel() {
-//        List<RepairsOrder> orderList = null;
-//        try {
-//            String orderStatus = "0";
-//            orderList = repairsOrderService.queryAllOrderExcel(null, null, orderStatus);
-//        } catch (Exception e) {
-//            e.printStackTrace();
-//        }
-//
-//        return orderList;
-//    }
-
-
     @ApiIgnore
-    @PostMapping(value = "/exportSsTj")
+    @PostMapping (value = "/exportSsTj")
     public void exportSsTj(HttpServletResponse response) throws Exception {
         //退回订单信息
         final List<RepairsOrder> backOrder = repairsOrderService.queryAllOrderExcel(null, null, "4");
@@ -735,6 +735,8 @@ public class OrderController {
             sendOrderExecl.setFaultName(RepairsOrder.getRepairsFault().getFaultName());
             sendOrderExecl.setDormNumber(RepairsOrder.getRepairsStudent().getDormNumber());
             sendOrderExecl.setOrderExpectedTime(RepairsOrder.getOrderExpectedTime());
+            sendOrderExecl.setStudentPhone(RepairsOrder.getRepairsStudent().getStudentPhone());
+            sendOrderExecl.setStudentOtherPhone(RepairsOrder.getRepairsStudent().getStudentOtherPhone());
             sendExeclList.add(sendOrderExecl);
         });
         // 创建sheet2使用得map

+ 15 - 1
src/main/java/com/chuanghai/repair/entity/BackOrderExecl.java

@@ -51,7 +51,7 @@ public class BackOrderExecl {
     /**
      * 退单理由
      */
-    @Excel(name="退回理由",width = 15)
+    @Excel(name="退回理由",width = 35)
     @ApiModelProperty(value = "退单理由")
     @Column(name = "order_back")
     private String orderBack;
@@ -66,5 +66,19 @@ public class BackOrderExecl {
     private String orderStatus;
 
 
+    /**
+     * 手机号码
+     */
+    @Excel(name="学生手机号码", width = 25)
+    @ApiModelProperty(value = "学生手机号码")
+    @Column(name = "student_phone")
+    private String studentPhone;
 
+    /**
+     * 备选手机号码
+     */
+    @Excel(name="备选手机号码", width = 25)
+    @ApiModelProperty(value = "备选手机号码")
+    @Column(name = "student_other_phone")
+    private String studentOtherPhone;
 }

+ 14 - 0
src/main/java/com/chuanghai/repair/entity/QueryOrderExecl.java

@@ -80,7 +80,21 @@ public class QueryOrderExecl {
 
 
 
+    /**
+     * 手机号码
+     */
+    @Excel(name="学生手机号码", width = 25)
+    @ApiModelProperty(value = "学生手机号码")
+    @Column(name = "student_phone")
+    private String studentPhone;
 
+    /**
+     * 备选手机号码
+     */
+    @Excel(name="备选手机号码", width = 25)
+    @ApiModelProperty(value = "备选手机号码")
+    @Column(name = "student_other_phone")
+    private String studentOtherPhone;
 
 
 

+ 1 - 1
src/main/java/com/chuanghai/repair/entity/RepairsFault.java

@@ -25,7 +25,7 @@ public class RepairsFault {
     /**
      * 故障类型名称
      */
-    @Excel(name="故障类型")
+
     @ApiModelProperty(value = "故障名称")
     @Column(name = "fault_name")
     private String faultName;

+ 1 - 1
src/main/java/com/chuanghai/repair/entity/RepairsNotice.java

@@ -32,7 +32,7 @@ public class RepairsNotice {
     /**
      * 发布时间
      */
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
     @ApiModelProperty(value = "添加公告时间")
     @Column(name = "notice_time")
     private Date noticeTime;

+ 6 - 6
src/main/java/com/chuanghai/repair/entity/RepairsOrder.java

@@ -44,7 +44,7 @@ public class RepairsOrder {
     /**
      * 订单预期维修时间
      */
-    @Excel(name="订单预期维修时间", width = 20 ,format ="yyyy-MM-dd HH:mm:ss")
+
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
     @ApiModelProperty(value = "订单预期维修时间")
     @Column(name = "order_expected_time")
@@ -53,8 +53,8 @@ public class RepairsOrder {
     /**
      * 订单完成维修时间
      */
-    @Excel(name="订单维修时间",width = 20)
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
     @ApiModelProperty(value = "订单完成维修时间")
     @Column(name = "order_complete_time")
     private Date orderCompleteTime;
@@ -62,7 +62,7 @@ public class RepairsOrder {
     /**
      * 订单提交时间
      */
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
     @ApiModelProperty(value = "订单提交时间")
     @Column(name = "order_commit_time")
     private Date orderCommitTime;
@@ -77,7 +77,7 @@ public class RepairsOrder {
     /**
      * 订单状态 0(待接单)1(已接单)2(维修完成)3(退单)
      */
-    @Excel(name="维修状态",width = 15)
+
     @ApiModelProperty(value = "订单状态 0(新订单)1(待接单)2(已接单)3(维修完成)4(退单)")
     @Column(name = "order_status")
     private String orderStatus;
@@ -100,7 +100,7 @@ public class RepairsOrder {
     /**
      * 退单理由
      */
-    @Excel(name="退回理由",width = 15)
+
     @ApiModelProperty(value = "退单理由")
     @Column(name = "order_back")
     private String orderBack;

+ 0 - 1
src/main/java/com/chuanghai/repair/entity/RepairsStudent.java

@@ -62,7 +62,6 @@ public class RepairsStudent {
     /**
      * 学生宿舍
      */
-    @Excel(name="学生宿舍")
     @ApiModelProperty(value = "学生宿舍")    // key:dorm_number,value:15栋413
     @Column(name = "dorm_number")
     private String dormNumber;

+ 0 - 1
src/main/java/com/chuanghai/repair/entity/RepairsWork.java

@@ -30,7 +30,6 @@ public class RepairsWork {
     /**
      * 维修工名称
      */
-    @Excel(name="维修人员",width = 15)
     @NotEmpty
     @ApiModelProperty(value = "维修工名称")
     @Column(name = "work_name")

+ 17 - 0
src/main/java/com/chuanghai/repair/entity/SendOrderExecl.java

@@ -8,6 +8,7 @@ import lombok.*;
 import javax.persistence.Column;
 import javax.persistence.Id;
 import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.Pattern;
 import java.util.Date;
 
 /**
@@ -57,4 +58,20 @@ public class SendOrderExecl {
     @Column(name = "order_expected_time")
     private String orderExpectedTime;
 
+    /**
+     * 手机号码
+     */
+    @Excel(name="学生手机号码", width = 25)
+    @ApiModelProperty(value = "学生手机号码")
+    @Column(name = "student_phone")
+    private String studentPhone;
+
+    /**
+     * 备选手机号码
+     */
+    @Excel(name="备选手机号码", width = 25)
+    @ApiModelProperty(value = "备选手机号码")
+    @Column(name = "student_other_phone")
+    private String studentOtherPhone;
+
 }

+ 1 - 1
src/main/java/com/chuanghai/repair/mapper/RepairsNoticeMapper.java

@@ -31,7 +31,7 @@ public interface RepairsNoticeMapper  {
      * @return
      * @throws Exception
      */
-    void updateNotice(List<RepairsNotice> noticeList) throws Exception;
+    void updateNotice(RepairsNotice repairsNotice) throws Exception;
 
     /**
      * 修改公告

+ 4 - 0
src/main/java/com/chuanghai/repair/mapper/RepairsOrderMapper.java

@@ -15,8 +15,12 @@ public interface RepairsOrderMapper  {
      * @return
      * @throws Exception
      */
+
     List<RepairsOrder> queryAllOrderByDate( String tody, String tomorrow,String orderStatus);
 
+    List<RepairsOrder> queryAllNewBackOrder( String tody, String tomorrow,String orderStatus);
+
+
 
     /**
      * 通过订单ID修改订单评价

+ 1 - 1
src/main/java/com/chuanghai/repair/service/RepairsNoticeService.java

@@ -39,7 +39,7 @@ public interface RepairsNoticeService {
      * @return
      * @throws Exception
      */
-    void updateNotice(List<RepairsNotice> noticeList) throws Exception;
+    void updateNotice(RepairsNotice repairsNotice) throws Exception;
 
     /**
      * 修改公告

+ 22 - 1
src/main/java/com/chuanghai/repair/service/RepairsOrderService.java

@@ -22,6 +22,27 @@ public interface RepairsOrderService {
      */
     PageInfo<RepairsOrder> queryAllOrderByDate(Integer pageNum, Integer pageSize, String tody, String tomorrow,String orderStatus) throws Exception;
 
+    PageInfo<RepairsOrder> queryAllNewBackOrder(Integer pageNum, Integer pageSize, String tody, String tomorrow,String orderStatus)throws Exception;
+    /**
+     * 查询 1 2 3 4 状态的订单
+     * @param tody
+     * @param tomorrow
+     * @param orderStatus
+     * @return
+     * @throws Exception
+     */
+    List<RepairsOrder> queryAllOrderExcel(String tody, String tomorrow,String orderStatus) throws Exception;
+
+    /**
+     * 查询 0 4状态的订单
+     * @param tody
+     * @param tomorrow
+     * @param orderStatus
+     * @return
+     * @throws Exception
+     */
+
+    List<RepairsOrder> queryAllNewBackOrderExcel(String tody, String tomorrow,String orderStatus) throws Exception;
     /**
      * 通过订单ID修改订单评价
      * @param orderId
@@ -112,6 +133,6 @@ public interface RepairsOrderService {
     PageInfo<RepairsOrder> queryAllOrderByAdvice(String tody, String tomorrow,String workID, Integer pageNum, Integer pageSize)throws Exception;
 
 
-    List<RepairsOrder> queryAllOrderExcel(String tody, String tomorrow,String orderStatus) throws Exception;
+
 
 }

+ 2 - 2
src/main/java/com/chuanghai/repair/service/ServiceImpl/RepairsNoticeServiceImpl.java

@@ -57,8 +57,8 @@ public class RepairsNoticeServiceImpl implements RepairsNoticeService {
      * @throws Exception
      */
     @Override
-    public void updateNotice(List<RepairsNotice> noticeList) throws Exception {
-         repairsNoticeMapper.updateNotice(noticeList);
+    public void updateNotice(RepairsNotice repairsNotice) throws Exception {
+         repairsNoticeMapper.updateNotice(repairsNotice);
     }
 
     /**

+ 34 - 3
src/main/java/com/chuanghai/repair/service/ServiceImpl/RepairsOrderServiceImpl.java

@@ -23,7 +23,7 @@ public class RepairsOrderServiceImpl implements RepairsOrderService {
     private RepairsOrderMapper repairsOrderMapper;
 
     /**
-     * 通过学生ID查询订单
+     * 通过查询订单  1  2 3 4
      *
      * @param
      * @return
@@ -36,14 +36,45 @@ public class RepairsOrderServiceImpl implements RepairsOrderService {
         PageInfo<RepairsOrder> pageInfo = new PageInfo<>(orderList);
         return pageInfo;
     }
+    /**
+     * 通过查询订单  0 4
+     *
+     * @param
+     * @return
+     * @throws Exception
+     */
+    @Override
+    public PageInfo<RepairsOrder> queryAllNewBackOrder(Integer pageNum, Integer pageSize, String tody, String tomorrow,String orderStatus) throws Exception {
+        PageHelper.startPage(pageNum, pageSize);//分页插件,专门用于myBatis分页
+        List<RepairsOrder> orderList = repairsOrderMapper.queryAllNewBackOrder(tody, tomorrow,orderStatus);
+        PageInfo<RepairsOrder> pageInfo = new PageInfo<>(orderList);
+        return pageInfo;
+    }
 
+    /**
+     * 通过查询订单  1  2 3 4
+     *
+     * @param
+     * @return
+     * @throws Exception
+     */
     @Override
     public List<RepairsOrder> queryAllOrderExcel( String tody, String tomorrow,String orderStatus) throws Exception{
         List<RepairsOrder> orderList = repairsOrderMapper.queryAllOrderByDate(tody, tomorrow,orderStatus);
         return orderList;
     }
-
-
+    /**
+     * 通过查询订单  0 4
+     *
+     * @param
+     * @return
+     * @throws Exception
+     */
+    @Override
+    public List<RepairsOrder> queryAllNewBackOrderExcel( String tody, String tomorrow,String orderStatus) throws Exception{
+        List<RepairsOrder> orderList = repairsOrderMapper.queryAllNewBackOrder(tody, tomorrow,orderStatus);
+        return orderList;
+    }
     /**
      * 通过订单ID修改订单评价
      *

+ 31 - 26
src/main/java/com/chuanghai/repair/utils/CreateTokenUtil.java

@@ -17,6 +17,7 @@ import org.springframework.util.MultiValueMap;
 import org.springframework.web.client.RestTemplate;
 
 import javax.servlet.http.HttpServletRequest;
+import java.io.PrintStream;
 import java.net.URI;
 import java.net.URLEncoder;
 import java.util.Date;
@@ -83,6 +84,7 @@ public class CreateTokenUtil {
      */
 
     public static String verify(String token, String userId) {
+
         return JWT.decode(token).getClaim(userId).asString();
     }
 
@@ -97,10 +99,10 @@ public class CreateTokenUtil {
      * @return
      */
     public static String getAccessToken(String wxcode) {
-        String access_token = "";
+        String token = "";
         try {
             String grant_type = "authorization_code";
-            String redirect_uri = serverUrl+"/login/getAccessToken";
+            String redirect_uri = serverUrl + "/login/getAccessToken";
             String url = "https://open.wecard.qq.com/connect/oauth2/token"; //用于用户 获取基础的access_token
             MultiValueMap<String, Object> param = new LinkedMultiValueMap<>();
             param.add("wxcode", wxcode);
@@ -118,15 +120,15 @@ public class CreateTokenUtil {
             for (Map.Entry<String, Object> entry : objParam.entrySet()) {
                 Object o = entry.getValue();
                 if (o instanceof String) {
-                    if (entry.getKey().equals("access_token")) {
-                        access_token = (String) entry.getValue();
+                    if (entry.getKey().equals("token")) {
+                        token = (String) entry.getValue();
                     }
                 }
             }
         } catch (Exception e) {
             e.printStackTrace();
         }
-        return access_token;
+        return token;
     }
 
     /**
@@ -136,16 +138,16 @@ public class CreateTokenUtil {
      */
 
 
-public String getAccessTokenGlobalA(String appKey, String appSecret, String oCode, String url){
-    app_key = appKey;
-    app_secret = appSecret;
-    ocode = oCode;
-    serverUrl = url;
+    public String getAccessTokenGlobalA(String appKey, String appSecret, String oCode, String url) {
+        app_key = appKey;
+        app_secret = appSecret;
+        ocode = oCode;
+        serverUrl = url;
 
-    String accessTokenGlobal = getAccessTokenGlobal();
+        String accessTokenGlobal = getAccessTokenGlobal();
 
-    return accessTokenGlobal;
-}
+        return accessTokenGlobal;
+    }
 
 
     @Scheduled(cron = "0 59 0/1 * * ?") //    每隔 1hour59minutes 执行一次刷新access_token
@@ -172,7 +174,7 @@ public String getAccessTokenGlobalA(String appKey, String appSecret, String oCod
             for (Map.Entry<String, Object> entry : objParam.entrySet()) {
                 Object o = entry.getValue();
                 if (o instanceof String) {
-                    if (entry.getKey().equals("access_token")) {
+                    if (entry.getKey().equals("token")) {
                         access_token_global = (String) entry.getValue();
                     }
                 }
@@ -231,20 +233,23 @@ public String getAccessTokenGlobalA(String appKey, String appSecret, String oCod
      * @return
      */
     public static String getHeadersInfo(HttpServletRequest request) {
-        String access_token = "";
-        Map<String, String> map = new HashMap<String, String>();
-        Enumeration headerNames = request.getHeaderNames();
-        while (headerNames.hasMoreElements()) {
-            String key = (String) headerNames.nextElement();
-            String value = request.getHeader(key);
-            map.put(key, value);
-        }
-        for (Map.Entry<String, String> entry : map.entrySet()) {
-                if (entry.getKey().equals("access_token")) {
-                access_token = entry.getValue();
+        String token = "";
+
+        if (request != null) {
+            Map<String, String> map = new HashMap<String, String>();
+            Enumeration headerNames = request.getHeaderNames();
+            while (headerNames.hasMoreElements()) {
+                String key = (String) headerNames.nextElement();
+                String value = request.getHeader(key);
+                map.put(key, value);
+            }
+            for (Map.Entry<String, String> entry : map.entrySet()) {
+                if (entry.getKey().equals("token")) {
+                    token = entry.getValue();
+                }
             }
         }
-        return verify(access_token,"userId");
+        return verify(token, "userId");
     }
 
 

+ 5 - 2
src/main/resources/application.yml

@@ -17,8 +17,11 @@ spring:
     username: root
     password: root
 
-
-
+  logging:
+    # 设置logback.xml位置
+    #  config: classpath:logs/logback.xml
+    # 设置log4j.properties位置
+    config: classpath:log4j.properties
 #数据库方言
   jpa:
     database-platform: org.hibernate.dialect.MySQLDialect

+ 59 - 7
src/main/resources/log4j.properties

@@ -1,8 +1,60 @@
-log4j.rootLogger=INFO,console
-# log4j.logger.org.mybatis = INFO
-log4j.logger.com.imago.mapper=INFO
 
-log4j.appender.console=org.apache.log4j.ConsoleAppender
-log4j.appender.console.encoding=UTF-8
-log4j.appender.console.layout=org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss,SSS} [%t] [%l] - [%p] %m%n
+#log4j \u914D\u7F6E
+#log4j\u5B9A\u4E49\u4E868\u4E2A\u7EA7\u522B\u7684log\u4F18\u5148\u7EA7\u4ECE\u9AD8\u5230\u4F4E\u4F9D\u6B21\u4E3A\uFF1AOFF\u3001FATAL\u3001ERROR\u3001WARN\u3001INFO\u3001DEBUG\u3001TRACE\u3001 ALL\u3002
+#CONSOLE\u524D\u9762\u7684DEBUG\u662F\u63A7\u5236\u53F0\u9700\u8981\u6253\u5370\u4EC0\u4E48DEBUG\u7EA7\u522B\u4EE5\u4E0A\u7684\u65E5\u5FD7\u7684\u4FE1\u606F
+#log4j.rootLogger=DEBUG, CONSOLE, ERROR, WARN, INFO, DEBUG, ALL
+log4j.rootLogger= DEBUG, CONSOLE, ERROR, WARN, INFO
+#-----------------------------------------------------------------------------------------------------
+#\u8F93\u51FA\u4FE1\u606F\u5230\u63A7\u5236\u53F0CONSOLE
+log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.Target = System.out
+log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n
+#-----------------------------------------------------------------------------------------------------
+#\u8F93\u51FAERROR \u7EA7\u522B\u4EE5\u4E0A\u7684\u65E5\u5FD7\u5230error.logs
+log4j.logger.ERROR=ERROR
+log4j.appender.ERROR = org.apache.log4j.DailyRollingFileAppender
+log4j.appender.ERROR.File =logs/error.log
+log4j.appender.ERROR.Threshold = ERROR
+log4j.appender.ERROR.Append = true
+log4j.appender.ERROR.layout = org.apache.log4j.PatternLayout
+log4j.appender.ERROR.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss}  [ %t:%r ] - [ %p ]  %m%n
+#-----------------------------------------------------------------------------------------------------
+#\u8F93\u51FAWARN \u7EA7\u522B\u4EE5\u4E0A\u7684\u65E5\u5FD7\u5230warn.logs
+log4j.logger.WARN=WARN
+log4j.appender.WARN = org.apache.log4j.DailyRollingFileAppender
+log4j.appender.WARN.File =logs/warn.log
+log4j.appender.WARN.Threshold = WARN
+log4j.appender.WARN.Append = true
+log4j.appender.WARN.layout = org.apache.log4j.PatternLayout
+log4j.appender.WARN.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss}  [ %t:%r ] - [ %p ]  %m%n
+#-----------------------------------------------------------------------------------------------------
+#\u8F93\u51FAINFO\u7EA7\u522B\u4EE5\u4E0A\u7684\u5185\u5BB9\u5230info.log\u4E2D
+log4j.logger.INFO=INFO
+log4j.appender.INFO = org.apache.log4j.DailyRollingFileAppender
+log4j.appender.INFO.File = logs/info.log
+log4j.appender.INFO.Threshold = INFO
+log4j.appender.INFO.Append = true
+log4j.appender.INFO.layout = org.apache.log4j.PatternLayout
+log4j.appender.INFO.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss}  [ %t:%r ] - [ %p ]  %m%n
+#-----------------------------------------------------------------------------------------------------
+#\u8F93\u51FADEBUG \u7EA7\u522B\u4EE5\u4E0A\u7684\u65E5\u5FD7\u5230debugger.logs
+log4j.logger.DEBUG=DEBUG
+log4j.appender.DEBUG = org.apache.log4j.DailyRollingFileAppender
+log4j.appender.DEBUG.File = logs/debug.log
+log4j.appender.DEBUG.Threshold = DEBUG
+log4j.appender.DEBUG.Append = true
+log4j.appender.DEBUG.layout = org.apache.log4j.PatternLayout
+log4j.appender.DEBUG.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss}  [ %t:%r ] - [ %p ]  %m%n
+#-----------------------------------------------------------------------------------------------------
+#\u8F93\u51FAALL\u7EA7\u522B\u7684\u65E5\u5FD7\u5230all.logs
+log4j.logger.ALL=ALL
+log4j.appender.ALL = org.apache.log4j.DailyRollingFileAppender
+log4j.appender.ALL.File = logs/all.log
+log4j.appender.file.DatePattern ='.'yyyy-MM-dd
+log4j.appender.ALL.Threshold = ALL
+log4j.appender.ALL.Append = true
+log4j.appender.ALL.layout = org.apache.log4j.PatternLayout
+log4j.appender.ALL.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss}  [ %t:%r ] - [ %p ]  %m%n
+
+

+ 31 - 13
src/main/resources/mapper/RepairsNoticeMapper.xml

@@ -10,17 +10,17 @@
         <result column="notice_time" property="noticeTime" jdbcType="TIMESTAMP"/>
         <result column="notice_status" property="noticeStatus" jdbcType="VARCHAR"/>
         <!--        公告与管理员之间是  N:1 关系-->
-        <association  property="repairsAdmin"  javaType="com.chuanghai.repair.entity.RepairsAdmin">
+        <association property="repairsAdmin" javaType="com.chuanghai.repair.entity.RepairsAdmin">
             <id column="admin_id" property="adminId"></id>
             <result column="admin_name" property="adminName" jdbcType="VARCHAR"/>
-        </association >
+        </association>
     </resultMap>
 
 
     <!--    添加公告-->
-    <select id="addNotice" parameterType="com.chuanghai.repair.entity.RepairsNotice" >
-        insert into repairs_notice(notice_content,notice_time,notice_status,admin_id)
-        values(#{noticeContent},#{noticeTime},#{noticeStatus},#{repairsAdmin.adminId})
+    <select id="addNotice" parameterType="com.chuanghai.repair.entity.RepairsNotice">
+        insert into repairs_notice(notice_id,notice_content,notice_time,notice_status,admin_id)
+        values(#{noticeId},#{noticeContent},#{noticeTime},#{noticeStatus},#{repairsAdmin.adminId})
     </select>
 
     <!--    发布公告-->
@@ -30,14 +30,13 @@
     </select>
 
 
-
-    <select id="updateNotice" parameterType="java.util.List" >
+    <select id="updateNotice11" parameterType="java.util.List">
         update repairs_notice
         <trim prefix="set" suffixOverrides=",">
             <trim prefix="notice_status=case" suffix="end,">
                 <foreach collection="list" item="item" index="index">
                     <if test="item.noticeStatus != null ">
-                         when notice_id = #{item.noticeId} then #{item.noticeStatus}
+                        when notice_id = #{item.noticeId} then #{item.noticeStatus}
                     </if>
                 </foreach>
             </trim>
@@ -47,10 +46,11 @@
                         when notice_id = #{item.noticeId} then #{item.noticeContent}
                     </if>
                 </foreach>
-            </trim><trim prefix="notice_time=case" suffix="end,">
+            </trim>
+            <trim prefix="notice_time=case" suffix="end,">
                 <foreach collection="list" item="item" index="index">
                     <if test="item.noticeTime != null ">
-                     when notice_id = #{item.noticeId} then #{item.noticeTime}
+                        when notice_id = #{item.noticeId} then #{item.noticeTime}
                     </if>
                 </foreach>
             </trim>
@@ -68,6 +68,25 @@
         </foreach>
     </select>
 
+    <select id="updateNotice" parameterType="com.chuanghai.repair.entity.RepairsNotice">
+        update repairs_notice
+        <trim prefix="set" suffixOverrides=",">
+            <if test="noticeStatus != null ">
+                notice_status = #{noticeStatus},
+            </if>
+            <if test="noticeContent != null ">
+                notice_content = #{noticeContent},
+            </if>
+            <if test="noticeTime != null ">
+                notice_time = #{noticeTime},
+            </if>
+            <if test="repairsAdmin.adminId != null">
+                admin_id = #{repairsAdmin.adminId}
+            </if>
+        </trim>
+        where notice_id = #{noticeId}
+    </select>
+
     <!--    修改公告-->
     <select id="alterNotice" parameterType="com.chuanghai.repair.entity.RepairsNotice"
             resultType="com.chuanghai.repair.entity.RepairsNotice">
@@ -83,8 +102,8 @@
     <select id="queryAllNotice" parameterType="java.lang.String" resultMap="BaseResultMap">
         select nt.* ,ad.admin_name from repairs_notice nt ,repairs_admin ad
         <trim prefix="where" prefixOverrides="and" suffix="" suffixOverrides="">
-             nt.admin_id = ad.admin_id
-             and notice_status = 1
+            nt.admin_id = ad.admin_id
+            and notice_status = 1
             <if test="tody!='' and tody!=null">
                 and notice_time BETWEEN #{tody} and #{tomorrow}
             </if>
@@ -93,5 +112,4 @@
     </select>
 
 
-
 </mapper>

+ 29 - 8
src/main/resources/mapper/RepairsOrderMapper.xml

@@ -35,6 +35,8 @@
         <association  property="repairsStudent"  javaType="com.chuanghai.repair.entity.RepairsStudent">
             <id column="student_id" property="studentId"></id>
             <result column="dorm_number" property="dormNumber" jdbcType="VARCHAR"/>
+            <result column="student_phone" property="studentPhone" jdbcType="VARCHAR"/>
+            <result column="student_other_phone" property="studentOtherPhone" jdbcType="VARCHAR"/>
         </association >
 <!--        订单与维修工之间是  N:1 关系-->
         <association  property="repairsWork"  javaType="com.chuanghai.repair.entity.RepairsWork">
@@ -53,7 +55,7 @@
         <select id="queryAllOrderByDate" parameterType="java.lang.String" resultMap="OrderFaultStudentMap">
 
             select od.order_id, od.order_status,od.order_commit_time, fa.fault_name,st.dorm_number,
-                od.order_complete_time,od.order_expected_time,wo.work_name,od.order_back
+                od.order_complete_time,od.order_expected_time,wo.work_name,od.order_back,st.student_phone,st.student_other_phone
             from
             repairs_order od left join repairs_student st on od.student_id = st.student_id
             left join repairs_fault fa on od.fault_id = fa.fault_id
@@ -62,9 +64,6 @@
                 <if test="tody!='' and tody!=null">
                     and od.order_complete_time BETWEEN #{tody} and #{tomorrow}
                 </if>
-                <if test = "orderStatus == '0'.toString()">
-                    and od.order_status = #{orderStatus}
-                </if>
                 <if test = "orderStatus == '1'.toString()">
                     and od.work_id = wo.work_id
                     and od.order_status =#{orderStatus}
@@ -77,17 +76,39 @@
                     and od.work_id = wo.work_id
                     and od.order_status =#{orderStatus}
                 </if>
-                <if test = "orderStatus == '4'.toString()">
-                    and od.order_status =#{orderStatus}
-                </if>
                 <if test = "orderStatus == '123'.toString()">
                     and od.order_status not in ("0","4")
                 </if>
 
             </trim>
-            order by od.order_commit_time desc, fa.fault_level desc
+            order by od.order_complete_time desc, fa.fault_level desc
         </select>
 
+    <!--    通过时间查询订单信息-->
+    <select id="queryAllNewBackOrder" parameterType="java.lang.String" resultMap="OrderFaultStudentMap">
+
+        select od.order_id, od.order_status,od.order_commit_time, fa.fault_name,st.dorm_number,
+            od.order_complete_time,od.order_expected_time,wo.work_name,od.order_back,st.student_phone,st.student_other_phone
+        from
+        repairs_order od left join repairs_student st on od.student_id = st.student_id
+        left join repairs_fault fa on od.fault_id = fa.fault_id
+        left join repairs_work wo on od.work_id = wo.work_id
+        <trim prefix="where" prefixOverrides="and" suffix="" suffixOverrides="">
+            <if test="tody!='' and tody!=null">
+                and od.order_expected_time BETWEEN #{tody} and #{tomorrow}
+            </if>
+            <if test = "orderStatus == '0'.toString()">
+                and od.order_status =#{orderStatus}
+            </if>
+            <if test = "orderStatus == '4'.toString()">
+                and od.order_status =#{orderStatus}
+            </if>
+
+        </trim>
+        order by od.order_expected_time desc, fa.fault_level desc
+    </select>
+
+
     <!--    通过ID查询订单信息-->
     <select id="queryAllOrderById" parameterType="java.lang.String" resultMap="OrderFaultStudentMap">
         select od.order_id, od.order_status,od.order_commit_time, fa.fault_name,st.dorm_number, od.order_expected_time, od.order_back