From 6053fd45212cea57bf4ce79d08fabe9e6228fab4 Mon Sep 17 00:00:00 2001 From: tuyp Date: Tue, 21 Feb 2023 18:22:52 +0800 Subject: [PATCH] start... --- logs/springboot-logback-error.log | 4 ++++ logs/springboot-logback-info.log | 221 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ logs/springboot-logback/error/2023-02-14-0.log.gz | Bin 0 -> 20 bytes src/main/java/com/laowu/controller/JobDictController.java | 2 +- src/main/java/com/laowu/dto/job/JobDTO.java | 4 ++++ src/main/java/com/laowu/mapper/JobDictMapper.java | 2 +- src/main/java/com/laowu/service/impl/JobDictServiceImpl.java | 5 ++--- src/main/java/com/laowu/vo/job/JobVO.java | 16 ++++++++++++++++ src/main/resources/mapper/JobDictMapper.xml | 18 ++++++++++++++++-- 9 files changed, 265 insertions(+), 7 deletions(-) create mode 100644 logs/springboot-logback/error/2023-02-14-0.log.gz diff --git a/logs/springboot-logback-error.log b/logs/springboot-logback-error.log index e69de29..2702803 100644 --- a/logs/springboot-logback-error.log +++ b/logs/springboot-logback-error.log @@ -0,0 +1,4 @@ +2023-02-21 17:40:33,790 [http-nio-34567-exec-6] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token + at [Source: (PushbackInputStream); line: 1, column: 78] (through reference chain: com.laowu.dto.job.JobDTO["positions"]->java.util.ArrayList[0]) +2023-02-21 17:49:44,584 [http-nio-34567-exec-6] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token + at [Source: (PushbackInputStream); line: 1, column: 78] (through reference chain: com.laowu.dto.job.JobDTO["positions"]->java.util.ArrayList[0]) diff --git a/logs/springboot-logback-info.log b/logs/springboot-logback-info.log index 9726bb0..b1ba280 100644 --- a/logs/springboot-logback-info.log +++ b/logs/springboot-logback-info.log @@ -39,3 +39,224 @@ 2023-02-21 10:51:48,136 [http-nio-34567-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' 2023-02-21 10:51:48,137 [http-nio-34567-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' 2023-02-21 10:51:48,141 [http-nio-34567-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 4 ms +2023-02-21 17:05:07,334 [Thread-9] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 17:05:07,340 [Thread-9] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 17:05:07,343 [Thread-9] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 17:05:13,384 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$42153210] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 17:05:13,569 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 17:05:13,579 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 17:05:13,585 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 17:05:13,585 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 17:05:13,672 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 17:05:13,672 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1184 ms +2023-02-21 17:05:13,750 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 17:05:14,873 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 17:05:15,809 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 17:05:15,890 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 17:05:16,039 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 17:05:16,053 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 17:05:16,078 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 17:05:16,238 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 17:05:16,257 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 17:09:04,989 [Thread-10] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 17:09:04,991 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 17:09:04,994 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 17:09:09,610 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$3dddb546] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 17:09:09,782 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 17:09:09,791 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 17:09:09,797 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 17:09:09,797 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 17:09:09,871 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 17:09:09,871 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1042 ms +2023-02-21 17:09:09,938 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 17:09:10,989 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 17:09:11,897 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 17:09:11,978 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 17:09:12,118 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 17:09:12,130 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 17:09:12,154 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 17:09:12,312 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 17:09:12,330 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 17:09:43,870 [http-nio-34567-exec-5] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2023-02-21 17:09:43,870 [http-nio-34567-exec-5] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2023-02-21 17:09:43,875 [http-nio-34567-exec-5] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 5 ms +2023-02-21 17:14:08,961 [Thread-10] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 17:14:08,963 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 17:14:08,965 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 17:14:12,196 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$c7e91c36] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 17:14:12,366 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 17:14:12,376 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 17:14:12,381 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 17:14:12,382 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 17:14:12,458 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 17:14:12,458 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1055 ms +2023-02-21 17:14:12,532 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 17:14:13,616 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 17:14:14,528 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 17:14:14,604 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 17:14:14,736 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 17:14:14,747 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 17:14:14,769 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 17:14:14,915 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 17:14:14,932 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 17:14:26,733 [http-nio-34567-exec-2] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2023-02-21 17:14:26,733 [http-nio-34567-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2023-02-21 17:14:26,737 [http-nio-34567-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 4 ms +2023-02-21 17:16:25,280 [Thread-9] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 17:16:25,282 [Thread-9] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 17:16:25,285 [Thread-9] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 17:16:28,547 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$c854bc99] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 17:16:28,716 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 17:16:28,725 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 17:16:28,731 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 17:16:28,731 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 17:16:28,804 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 17:16:28,804 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1032 ms +2023-02-21 17:16:28,872 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 17:16:29,968 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 17:16:30,880 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 17:16:30,959 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 17:16:31,091 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 17:16:31,103 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 17:16:31,126 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 17:16:31,275 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 17:16:31,296 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 17:16:41,561 [http-nio-34567-exec-5] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2023-02-21 17:16:41,562 [http-nio-34567-exec-5] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2023-02-21 17:16:41,569 [http-nio-34567-exec-5] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 7 ms +2023-02-21 17:19:01,056 [Thread-10] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 17:19:01,058 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 17:19:01,060 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 17:19:05,460 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$559e7296] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 17:19:05,626 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 17:19:05,635 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 17:19:05,640 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 17:19:05,640 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 17:19:05,718 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 17:19:05,718 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1043 ms +2023-02-21 17:19:05,789 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 17:19:06,833 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 17:19:07,730 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 17:19:07,808 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 17:19:07,944 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 17:19:07,956 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 17:19:07,979 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 17:19:08,128 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 17:19:08,146 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 17:19:52,989 [http-nio-34567-exec-5] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2023-02-21 17:19:52,990 [http-nio-34567-exec-5] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2023-02-21 17:19:52,994 [http-nio-34567-exec-5] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 4 ms +2023-02-21 17:22:48,300 [Thread-10] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 17:22:48,302 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 17:22:48,304 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 17:22:52,816 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$22ecdd56] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 17:22:52,982 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 17:22:52,990 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 17:22:52,996 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 17:22:52,996 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 17:22:53,069 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 17:22:53,069 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1056 ms +2023-02-21 17:22:53,138 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 17:22:54,198 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 17:22:55,087 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 17:22:55,165 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 17:22:55,297 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 17:22:55,309 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 17:22:55,331 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 17:22:55,478 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 17:22:55,496 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 17:23:10,833 [http-nio-34567-exec-2] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2023-02-21 17:23:10,833 [http-nio-34567-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2023-02-21 17:23:10,838 [http-nio-34567-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 5 ms +2023-02-21 17:23:35,340 [Thread-10] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 17:23:35,342 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 17:23:35,344 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 17:23:38,635 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$e4c3b2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 17:23:38,804 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 17:23:38,813 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 17:23:38,819 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 17:23:38,819 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 17:23:38,891 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 17:23:38,892 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1051 ms +2023-02-21 17:23:38,961 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 17:23:40,114 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 17:23:40,999 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 17:23:41,078 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 17:23:41,218 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 17:23:41,230 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 17:23:41,253 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 17:23:41,404 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 17:23:41,423 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 17:24:01,371 [http-nio-34567-exec-3] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2023-02-21 17:24:01,371 [http-nio-34567-exec-3] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2023-02-21 17:24:01,376 [http-nio-34567-exec-3] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 5 ms +2023-02-21 17:40:33,790 [http-nio-34567-exec-6] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token + at [Source: (PushbackInputStream); line: 1, column: 78] (through reference chain: com.laowu.dto.job.JobDTO["positions"]->java.util.ArrayList[0]) +2023-02-21 17:49:44,584 [http-nio-34567-exec-6] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token + at [Source: (PushbackInputStream); line: 1, column: 78] (through reference chain: com.laowu.dto.job.JobDTO["positions"]->java.util.ArrayList[0]) +2023-02-21 18:10:16,086 [Thread-10] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 18:10:16,087 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 18:10:16,089 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 18:10:20,418 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$2340077c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 18:10:20,582 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 18:10:20,590 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 18:10:20,596 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 18:10:20,596 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 18:10:20,668 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 18:10:20,668 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1010 ms +2023-02-21 18:10:20,736 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 18:10:21,854 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 18:10:22,716 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 18:10:22,793 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 18:10:22,921 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 18:10:22,932 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 18:10:22,954 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 18:10:23,096 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 18:10:23,113 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 18:10:49,702 [http-nio-34567-exec-2] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2023-02-21 18:10:49,702 [http-nio-34567-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2023-02-21 18:10:49,707 [http-nio-34567-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 5 ms +2023-02-21 18:13:29,176 [Thread-10] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 18:13:29,179 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 18:13:29,181 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 18:13:33,565 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$d55b608] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 18:13:33,733 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 18:13:33,742 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 18:13:33,747 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 18:13:33,747 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 18:13:33,821 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 18:13:33,821 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1043 ms +2023-02-21 18:13:33,891 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 18:13:34,996 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 18:13:35,893 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 18:13:35,968 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 18:13:36,100 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 18:13:36,112 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 18:13:36,134 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 18:13:36,281 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 18:13:36,298 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 18:14:02,285 [http-nio-34567-exec-5] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2023-02-21 18:14:02,285 [http-nio-34567-exec-5] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2023-02-21 18:14:02,290 [http-nio-34567-exec-5] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 5 ms +2023-02-21 18:18:37,523 [Thread-10] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2023-02-21 18:18:37,525 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2023-02-21 18:18:37,528 [Thread-10] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2023-02-21 18:18:41,962 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$a0557c80] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2023-02-21 18:18:42,136 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 34567 (http) +2023-02-21 18:18:42,146 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-34567"] +2023-02-21 18:18:42,152 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2023-02-21 18:18:42,152 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2023-02-21 18:18:42,226 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2023-02-21 18:18:42,226 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1040 ms +2023-02-21 18:18:42,298 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2023-02-21 18:18:43,443 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2023-02-21 18:18:44,335 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2023-02-21 18:18:44,417 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2023-02-21 18:18:44,550 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2023-02-21 18:18:44,562 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2023-02-21 18:18:44,585 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2023-02-21 18:18:44,732 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-34567"] +2023-02-21 18:18:44,749 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 34567 (http) with context path '' +2023-02-21 18:18:46,399 [http-nio-34567-exec-4] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2023-02-21 18:18:46,399 [http-nio-34567-exec-4] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2023-02-21 18:18:46,406 [http-nio-34567-exec-4] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 7 ms diff --git a/logs/springboot-logback/error/2023-02-14-0.log.gz b/logs/springboot-logback/error/2023-02-14-0.log.gz new file mode 100644 index 0000000..001322f Binary files /dev/null and b/logs/springboot-logback/error/2023-02-14-0.log.gz differ diff --git a/src/main/java/com/laowu/controller/JobDictController.java b/src/main/java/com/laowu/controller/JobDictController.java index 72dd69f..db00247 100644 --- a/src/main/java/com/laowu/controller/JobDictController.java +++ b/src/main/java/com/laowu/controller/JobDictController.java @@ -30,7 +30,7 @@ public class JobDictController { private JobDictService jobDictService; @PostMapping("jobs") - @ApiOperation("所有工作 pageSize pageNum jobType 0:一村一技,1:工学一体,2:对外劳务 recruitId cityId positions[] ") + @ApiOperation("所有工作 pageSize pageNum jobType 0:一村一技,1:工学一体,2:对外劳务 recruitStatus recruitId cityId positions[] jobName ") public ResponseVO jobs(@RequestBody JobDTO jobDTO){ return ResponseData.generateCreatedResponse(0,jobDictService.jobs(jobDTO)); } diff --git a/src/main/java/com/laowu/dto/job/JobDTO.java b/src/main/java/com/laowu/dto/job/JobDTO.java index e2e79ca..b4cd3ac 100644 --- a/src/main/java/com/laowu/dto/job/JobDTO.java +++ b/src/main/java/com/laowu/dto/job/JobDTO.java @@ -19,4 +19,8 @@ public class JobDTO { private List positions; + private String jobName; + + private String recruitStatus; + } diff --git a/src/main/java/com/laowu/mapper/JobDictMapper.java b/src/main/java/com/laowu/mapper/JobDictMapper.java index b7eea0e..82859a3 100644 --- a/src/main/java/com/laowu/mapper/JobDictMapper.java +++ b/src/main/java/com/laowu/mapper/JobDictMapper.java @@ -24,7 +24,7 @@ public interface JobDictMapper extends BaseMapper { /** * 查询工作 分页 */ - IPage jobs(IPage page, Long recruitId, Long cityId, List positions,Integer jobType); + IPage jobs(IPage page, Long recruitId, Long cityId, List positions,Integer jobType,String jobName,String recruitStatus); /** * 查询 一个工作 diff --git a/src/main/java/com/laowu/service/impl/JobDictServiceImpl.java b/src/main/java/com/laowu/service/impl/JobDictServiceImpl.java index 7c100a7..5e6ebdd 100644 --- a/src/main/java/com/laowu/service/impl/JobDictServiceImpl.java +++ b/src/main/java/com/laowu/service/impl/JobDictServiceImpl.java @@ -46,7 +46,7 @@ public class JobDictServiceImpl extends ServiceImpl im public IPage jobs(JobDTO jobDTO) { Page pager = new Page(jobDTO.getPageNum(), jobDTO.getPageSize()); - return this.baseMapper.jobs(pager, jobDTO.getRecruitId(), jobDTO.getCityId(), jobDTO.getPositions(), jobDTO.getJobType()); + return this.baseMapper.jobs(pager, jobDTO.getRecruitId(), jobDTO.getCityId(), jobDTO.getPositions(), jobDTO.getJobType(), jobDTO.getJobName(),jobDTO.getRecruitStatus()); } public OneJobVO oneJob(JobDictDO jobDictDO) { @@ -99,7 +99,7 @@ public class JobDictServiceImpl extends ServiceImpl im } @Transactional(rollbackFor = Exception.class) - public String batchAddJob(Integer jobType, MultipartFile multipartFile){ + public String batchAddJob(Integer jobType, MultipartFile multipartFile) { try { ExcelUtil.readExcelWithoutTitle(null, BatchAddJobDTO.class, multipartFile).forEach(s -> { @@ -116,7 +116,6 @@ public class JobDictServiceImpl extends ServiceImpl im } - public static void main(String[] args) { String abc = "AB100001"; Integer a = Integer.parseInt(abc.substring(2)) + 1; diff --git a/src/main/java/com/laowu/vo/job/JobVO.java b/src/main/java/com/laowu/vo/job/JobVO.java index 7db29e0..d887736 100644 --- a/src/main/java/com/laowu/vo/job/JobVO.java +++ b/src/main/java/com/laowu/vo/job/JobVO.java @@ -9,8 +9,14 @@ public class JobVO { private String jobName; + private Long companyId; + private String companyName; + private String companyLogo; + + private String recruitStatus; + private String startSalary; private String endSalary; @@ -19,6 +25,10 @@ public class JobVO { private String city; + private Long cityId; + + private Long recruitId; + private String recruitType; private String parentType; @@ -27,4 +37,10 @@ public class JobVO { private String jobId; + private String jobDesc; + + private String jobRequirement; + + private Long positionId; + } diff --git a/src/main/resources/mapper/JobDictMapper.xml b/src/main/resources/mapper/JobDictMapper.xml index e5bfad1..12466f1 100644 --- a/src/main/resources/mapper/JobDictMapper.xml +++ b/src/main/resources/mapper/JobDictMapper.xml @@ -15,12 +15,20 @@ t.id, t.job_id, t.job_name, - t.company_name, + t.company_id, + t7.company_name, + t7.company_logo, + t.recruit_status, t.start_salary, t.end_salary, t4.province, t3.city, + t.city_id, + t.recruit_id, + t.job_desc, + t.job_requirement, t2.recruit_type, + t5.id as position_id, t6.position_type AS parentType, t5.position_type AS sonType, CONCAT( t6.position_code, t5.position_code, t.job_id ) AS jobId @@ -46,12 +54,18 @@ AND t.city_id = #{cityId} - + AND t.position_id IN #{id} + + AND ( t.`job_name` LIKE concat('%', #{jobName}, '%') or t.enterprise_name like concat('%', #{jobName}, '%')) + + + and t.recruit_status = #{recruitStatus} +