Commit 101a8dab by 涂亚平

首页收集信息

1 parent 5276d3a2
Showing with 2209 additions and 287 deletions
# Created by .ignore support plugin (hsz.mobi)
2024-01-26 16:35:31,664 [main] ERROR org.springframework.boot.web.embedded.tomcat.TomcatStarter:61 - Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'webConfig': Unsatisfied dependency expressed through field 'authenticationInterceptor'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationInterceptor': Unsatisfied dependency expressed through field 'administerMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'administerMapper' defined in file [D:\code\subsidy-center\target\classes\com\subsidy\mapper\AdministerMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel 2024-11-10 03:56:17,682 [http-nio-23467-exec-4] ERROR com.subsidy.common.exception.GlobalExceptionHandler:89 - JSON parse error: Unexpected character (']' (code 93)): expected a value; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected character (']' (code 93)): expected a value
2024-01-26 16:35:31,710 [main] ERROR org.springframework.boot.SpringApplication:822 - Application run failed at [Source: (PushbackInputStream); line: 55, column: 5] (through reference chain: com.subsidy.vo.simulation.SimulationSeekerDTO["outPuts"])
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:743)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:390)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1214)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1203)
at com.subsidy.MeishuApplication.main(MeishuApplication.java:22)
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:124)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:416)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:180)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153)
... 8 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webConfig': Unsatisfied dependency expressed through field 'authenticationInterceptor'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationInterceptor': Unsatisfied dependency expressed through field 'administerMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'administerMapper' defined in file [D:\code\subsidy-center\target\classes\com\subsidy\mapper\AdministerMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:392)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:211)
at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:174)
at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:169)
at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:154)
at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:86)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:253)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:227)
at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5132)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:456)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:105)
... 13 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationInterceptor': Unsatisfied dependency expressed through field 'administerMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'administerMapper' defined in file [D:\code\subsidy-center\target\classes\com\subsidy\mapper\AdministerMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
... 65 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'administerMapper' defined in file [D:\code\subsidy-center\target\classes\com\subsidy\mapper\AdministerMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1515)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1395)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
... 78 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1500)
... 89 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
... 102 common frames omitted
Caused by: java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadFromParent(TomcatEmbeddedWebappClassLoader.java:110)
at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.doLoadClass(TomcatEmbeddedWebappClassLoader.java:83)
at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:66)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:186)
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89)
at org.apache.ibatis.io.Resources.classForName(Resources.java:261)
at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116)
at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149)
at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:262)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:253)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:245)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:118)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:94)
at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.buildSqlSessionFactory(MybatisSqlSessionFactoryBean.java:591)
at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.afterPropertiesSet(MybatisSqlSessionFactoryBean.java:429)
at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.getObject(MybatisSqlSessionFactoryBean.java:626)
at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.sqlSessionFactory(MybatisPlusAutoConfiguration.java:214)
at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$e8ee7ee5.CGLIB$sqlSessionFactory$0(<generated>)
at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$e8ee7ee5$$FastClassBySpringCGLIB$$9990fa15.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$e8ee7ee5.sqlSessionFactory(<generated>)
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)
... 103 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.subsidy.util.BaseModel
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 148 common frames omitted
2024-01-30 09:51:49,489 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:244 - Multiple Spring Data modules found, entering strict repository configuration mode! 2024-11-07 09:35:15,611 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:244 - Multiple Spring Data modules found, entering strict repository configuration mode!
2024-01-30 09:51:49,495 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:126 - Bootstrapping Spring Data repositories in DEFAULT mode. 2024-11-07 09:35:15,623 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:126 - Bootstrapping Spring Data repositories in DEFAULT mode.
2024-01-30 09:51:49,538 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:182 - Finished Spring Data repository scanning in 27ms. Found 0 repository interfaces. 2024-11-07 09:35:15,707 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:182 - Finished Spring Data repository scanning in 60ms. Found 0 repository interfaces.
2024-01-30 09:51:49,882 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$3469b665] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2024-11-07 09:35:16,323 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$5bb98bdc] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-01-30 09:51:49,982 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'redisConfig' of type [com.subsidy.common.configure.RedisConfig$$EnhancerBySpringCGLIB$$3431c16c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2024-11-07 09:35:16,459 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'redisConfig' of type [com.subsidy.common.configure.RedisConfig$$EnhancerBySpringCGLIB$$5b8196e3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-01-30 09:51:50,266 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 23467 (http) 2024-11-07 09:35:16,923 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 23467 (http)
2024-01-30 09:51:50,279 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-23467"] 2024-11-07 09:35:16,943 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-23467"]
2024-01-30 09:51:50,286 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] 2024-11-07 09:35:16,955 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat]
2024-01-30 09:51:50,286 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] 2024-11-07 09:35:16,955 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22]
2024-01-30 09:51:50,291 [main] INFO org.apache.catalina.core.AprLifecycleListener:173 - Loaded APR based Apache Tomcat Native library [1.2.37] using APR version [1.7.4]. 2024-11-07 09:35:17,107 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext
2024-01-30 09:51:50,292 [main] INFO org.apache.catalina.core.AprLifecycleListener:173 - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 2024-11-07 09:35:17,107 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 3434 ms
2024-01-30 09:51:50,292 [main] INFO org.apache.catalina.core.AprLifecycleListener:173 - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 2024-11-07 09:35:17,255 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource
2024-01-30 09:51:50,294 [main] INFO org.apache.catalina.core.AprLifecycleListener:173 - OpenSSL successfully initialized [OpenSSL 1.1.1u 30 May 2023] 2024-11-07 09:35:18,595 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited
2024-01-30 09:51:50,413 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext 2024-11-07 09:35:21,456 [main] INFO org.quartz.impl.StdSchedulerFactory:1208 - Using default implementation for ThreadExecutor
2024-01-30 09:51:50,413 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1792 ms 2024-11-07 09:35:21,468 [main] INFO org.quartz.core.SchedulerSignalerImpl:61 - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2024-01-30 09:51:50,518 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource 2024-11-07 09:35:21,468 [main] INFO org.quartz.core.QuartzScheduler:229 - Quartz Scheduler v.2.3.1 created.
2024-01-30 09:51:51,616 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited 2024-11-07 09:35:21,472 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:672 - Using db table-based data access locking (synchronization).
2024-01-30 09:51:54,215 [main] INFO org.quartz.impl.StdSchedulerFactory:1208 - Using default implementation for ThreadExecutor 2024-11-07 09:35:21,476 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:145 - JobStoreCMT initialized.
2024-01-30 09:51:54,228 [main] INFO org.quartz.core.SchedulerSignalerImpl:61 - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl 2024-11-07 09:35:21,476 [main] INFO org.quartz.core.QuartzScheduler:294 - Scheduler meta-data: Quartz Scheduler (v2.3.1) 'schedulerFactoryBean' with instanceId 'NON_CLUSTERED'
2024-01-30 09:51:54,229 [main] INFO org.quartz.core.QuartzScheduler:229 - Quartz Scheduler v.2.3.1 created.
2024-01-30 09:51:54,233 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:672 - Using db table-based data access locking (synchronization).
2024-01-30 09:51:54,237 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:145 - JobStoreCMT initialized.
2024-01-30 09:51:54,238 [main] INFO org.quartz.core.QuartzScheduler:294 - Scheduler meta-data: Quartz Scheduler (v2.3.1) 'schedulerFactoryBean' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED. NOT STARTED.
Currently in standby mode. Currently in standby mode.
...@@ -28,30 +24,97 @@ ...@@ -28,30 +24,97 @@
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered. Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered.
2024-01-30 09:51:54,238 [main] INFO org.quartz.impl.StdSchedulerFactory:1362 - Quartz scheduler 'schedulerFactoryBean' initialized from an externally provided properties instance. 2024-11-07 09:35:21,476 [main] INFO org.quartz.impl.StdSchedulerFactory:1362 - Quartz scheduler 'schedulerFactoryBean' initialized from an externally provided properties instance.
2024-01-30 09:51:54,238 [main] INFO org.quartz.impl.StdSchedulerFactory:1366 - Quartz scheduler version: 2.3.1 2024-11-07 09:35:21,476 [main] INFO org.quartz.impl.StdSchedulerFactory:1366 - Quartz scheduler version: 2.3.1
2024-01-30 09:51:54,239 [main] INFO org.quartz.core.QuartzScheduler:2293 - JobFactory set to: com.subsidy.common.configure.JobFactory@c4cceb 2024-11-07 09:35:21,476 [main] INFO org.quartz.core.QuartzScheduler:2293 - JobFactory set to: com.subsidy.common.configure.JobFactory@70c205bf
2024-01-30 09:51:55,003 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] 2024-11-07 09:35:22,437 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]
2024-01-30 09:51:55,209 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' 2024-11-07 09:35:22,776 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor'
2024-01-30 09:51:55,949 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:171 - Initializing ExecutorService 'taskScheduler' 2024-11-07 09:35:23,916 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:171 - Initializing ExecutorService 'taskScheduler'
2024-01-30 09:51:56,015 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed 2024-11-07 09:35:24,029 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed
2024-01-30 09:51:56,033 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) 2024-11-07 09:35:24,057 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s)
2024-01-30 09:51:56,064 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references 2024-11-07 09:35:24,101 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references
2024-01-30 09:51:56,194 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: deleteAdministerUsingPOST_1 2024-11-07 09:35:24,365 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: deleteAdministerUsingPOST_1
2024-01-30 09:51:56,199 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: operatorsUsingPOST_1 2024-11-07 09:35:24,373 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: operatorsUsingPOST_1
2024-01-30 09:51:56,201 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: updateAdministerUsingPOST_1 2024-11-07 09:35:24,373 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: updateAdministerUsingPOST_1
2024-01-30 09:51:56,236 [main] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:731 - Will start Quartz Scheduler [schedulerFactoryBean] in 1 seconds 2024-11-07 09:35:24,472 [main] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:731 - Will start Quartz Scheduler [schedulerFactoryBean] in 1 seconds
2024-01-30 09:51:56,246 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-23467"] 2024-11-07 09:35:24,496 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-23467"]
2024-01-30 09:51:56,268 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 23467 (http) with context path '' 2024-11-07 09:35:24,528 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 23467 (http) with context path ''
2024-01-30 09:51:57,248 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:747 - Starting Quartz Scheduler now, after delay of 1 seconds 2024-11-07 09:35:25,494 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:747 - Starting Quartz Scheduler now, after delay of 1 seconds
2024-01-30 13:28:06,728 [http-nio-23467-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' 2024-11-07 09:35:25,570 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:866 - Freed 0 triggers from 'acquired' / 'blocked' state.
2024-01-30 13:28:06,731 [http-nio-23467-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' 2024-11-07 09:35:25,590 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:876 - Recovering 0 jobs that were in-progress at the time of the last shut-down.
2024-01-30 13:28:06,776 [http-nio-23467-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 45 ms 2024-11-07 09:35:25,590 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:889 - Recovery complete.
2024-01-30 17:24:56,963 [Thread-20] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:208 - Shutting down ExecutorService 'taskScheduler' 2024-11-07 09:35:25,598 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:896 - Removed 0 'complete' triggers.
2024-01-30 17:24:56,992 [Thread-20] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' 2024-11-07 09:35:25,610 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:901 - Removed 0 stale fired job entries.
2024-01-30 17:24:57,034 [Thread-20] INFO org.quartz.core.QuartzScheduler:666 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutting down. 2024-11-07 09:35:25,626 [Quartz Scheduler [schedulerFactoryBean]] INFO org.quartz.core.QuartzScheduler:547 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED started.
2024-01-30 17:24:57,035 [Thread-20] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused. 2024-11-07 09:35:31,579 [http-nio-23467-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-01-30 17:24:57,036 [Thread-20] INFO org.quartz.core.QuartzScheduler:740 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutdown complete. 2024-11-07 09:35:31,579 [http-nio-23467-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet'
2024-01-30 17:24:57,036 [Thread-20] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:844 - Shutting down Quartz Scheduler 2024-11-07 09:35:31,588 [http-nio-23467-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 9 ms
2024-01-30 17:24:57,038 [Thread-20] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... 2024-11-07 09:37:49,042 [Thread-24] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused.
2024-01-30 17:24:57,041 [Thread-20] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed 2024-11-07 09:37:49,042 [Thread-24] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:208 - Shutting down ExecutorService 'taskScheduler'
2024-11-07 09:37:49,050 [Thread-24] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor'
2024-11-07 09:37:49,078 [Thread-24] INFO org.quartz.core.QuartzScheduler:666 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutting down.
2024-11-07 09:37:49,078 [Thread-24] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused.
2024-11-07 09:37:49,078 [Thread-24] INFO org.quartz.core.QuartzScheduler:740 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutdown complete.
2024-11-07 09:37:49,078 [Thread-24] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:844 - Shutting down Quartz Scheduler
2024-11-07 09:37:49,082 [Thread-24] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ...
2024-11-07 09:37:49,086 [Thread-24] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed
2024-11-07 09:38:04,213 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:244 - Multiple Spring Data modules found, entering strict repository configuration mode!
2024-11-07 09:38:04,217 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:126 - Bootstrapping Spring Data repositories in DEFAULT mode.
2024-11-07 09:38:04,265 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:182 - Finished Spring Data repository scanning in 36ms. Found 0 repository interfaces.
2024-11-07 09:38:04,664 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$63452b5f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-11-07 09:38:04,760 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'redisConfig' of type [com.subsidy.common.configure.RedisConfig$$EnhancerBySpringCGLIB$$630d3666] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-11-07 09:38:05,116 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 23467 (http)
2024-11-07 09:38:05,128 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-23467"]
2024-11-07 09:38:05,136 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat]
2024-11-07 09:38:05,136 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22]
2024-11-07 09:38:05,256 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext
2024-11-07 09:38:05,256 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 2125 ms
2024-11-07 09:38:05,375 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource
2024-11-07 09:38:07,379 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited
2024-11-07 09:38:11,364 [main] INFO org.quartz.impl.StdSchedulerFactory:1208 - Using default implementation for ThreadExecutor
2024-11-07 09:38:11,380 [main] INFO org.quartz.core.SchedulerSignalerImpl:61 - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2024-11-07 09:38:11,380 [main] INFO org.quartz.core.QuartzScheduler:229 - Quartz Scheduler v.2.3.1 created.
2024-11-07 09:38:11,388 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:672 - Using db table-based data access locking (synchronization).
2024-11-07 09:38:11,388 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:145 - JobStoreCMT initialized.
2024-11-07 09:38:11,392 [main] INFO org.quartz.core.QuartzScheduler:294 - Scheduler meta-data: Quartz Scheduler (v2.3.1) 'schedulerFactoryBean' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered.
2024-11-07 09:38:11,392 [main] INFO org.quartz.impl.StdSchedulerFactory:1362 - Quartz scheduler 'schedulerFactoryBean' initialized from an externally provided properties instance.
2024-11-07 09:38:11,392 [main] INFO org.quartz.impl.StdSchedulerFactory:1366 - Quartz scheduler version: 2.3.1
2024-11-07 09:38:11,392 [main] INFO org.quartz.core.QuartzScheduler:2293 - JobFactory set to: com.subsidy.common.configure.JobFactory@51a719e7
2024-11-07 09:38:12,277 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]
2024-11-07 09:38:12,482 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor'
2024-11-07 09:38:13,253 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:171 - Initializing ExecutorService 'taskScheduler'
2024-11-07 09:38:13,341 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed
2024-11-07 09:38:13,357 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s)
2024-11-07 09:38:13,397 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references
2024-11-07 09:38:13,607 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: deleteAdministerUsingPOST_1
2024-11-07 09:38:13,611 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: operatorsUsingPOST_1
2024-11-07 09:38:13,611 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: updateAdministerUsingPOST_1
2024-11-07 09:38:13,687 [main] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:731 - Will start Quartz Scheduler [schedulerFactoryBean] in 1 seconds
2024-11-07 09:38:13,699 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-23467"]
2024-11-07 09:38:13,723 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 23467 (http) with context path ''
2024-11-07 09:38:14,690 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:747 - Starting Quartz Scheduler now, after delay of 1 seconds
2024-11-07 09:38:14,770 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:866 - Freed 0 triggers from 'acquired' / 'blocked' state.
2024-11-07 09:38:14,790 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:876 - Recovering 0 jobs that were in-progress at the time of the last shut-down.
2024-11-07 09:38:14,790 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:889 - Recovery complete.
2024-11-07 09:38:14,798 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:896 - Removed 0 'complete' triggers.
2024-11-07 09:38:14,810 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:901 - Removed 0 stale fired job entries.
2024-11-07 09:38:14,826 [Quartz Scheduler [schedulerFactoryBean]] INFO org.quartz.core.QuartzScheduler:547 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED started.
2024-11-07 09:38:17,253 [http-nio-23467-exec-2] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-11-07 09:38:17,254 [http-nio-23467-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet'
2024-11-07 09:38:17,278 [http-nio-23467-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 24 ms
2024-11-07 09:41:07,553 [Thread-26] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused.
2024-11-07 09:41:07,555 [Thread-26] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:208 - Shutting down ExecutorService 'taskScheduler'
2024-11-07 09:41:07,566 [Thread-26] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor'
2024-11-07 09:41:07,591 [Thread-26] INFO org.quartz.core.QuartzScheduler:666 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutting down.
2024-11-07 09:41:07,592 [Thread-26] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused.
2024-11-07 09:41:07,593 [Thread-26] INFO org.quartz.core.QuartzScheduler:740 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutdown complete.
2024-11-07 09:41:07,593 [Thread-26] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:844 - Shutting down Quartz Scheduler
2024-11-07 09:41:07,597 [Thread-26] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ...
2024-11-07 09:41:07,597 [Thread-26] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed
...@@ -272,6 +272,12 @@ ...@@ -272,6 +272,12 @@
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>2.8.6</version> <version>2.8.6</version>
</dependency> </dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
package com.subsidy.controller;
import com.subsidy.common.ResponseData;
import com.subsidy.common.ResponseVO;
import com.subsidy.dto.collect.InfoDTO;
import com.subsidy.model.CollectInfoDO;
import com.subsidy.service.CollectInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 首页手机信息 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
@RestController
@Api(tags = "首页收集信息")
@RequestMapping("/collectInfo")
public class CollectInfoController {
@Autowired
private CollectInfoService collectInfoService;
@PostMapping("collect")
@ApiOperation("收集信息 collegeName 院校名称 dept 部门/院系 jobName 职位 userName 称呼 telephone 联系方式")
public ResponseVO collect(@RequestBody CollectInfoDO collectInfoDO){
return ResponseData.generateCreatedResponse(0,collectInfoService.collect(collectInfoDO));
}
@PostMapping("info")
@ApiOperation("需求单--查询 pageSize pageNum")
public ResponseVO info(@RequestBody InfoDTO infoDTO){
return ResponseData.generateCreatedResponse(0,collectInfoService.info(infoDTO));
}
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 院校 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "院校")
@RequestMapping("/moni-college-do")
public class MoniCollegeController {
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 院校专业映射表 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "院校专业映射表")
@RequestMapping("/moni-college-major-mapping-do")
public class MoniCollegeMajorMappingController {
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "")
@RequestMapping("/moni-company-do")
public class MoniCompanyController {
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "")
@RequestMapping("/moni-job-major-do")
public class MoniJobMajorController {
}
package com.subsidy.controller;
import com.subsidy.service.MoniMajorService;
import com.subsidy.vo.simulation.SimulationSeekerDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "")
@RequestMapping("/moniMajor")
public class MoniMajorController {
@Autowired
private MoniMajorService moniMajorService;
//模拟数据
@PostMapping("simulationJob")
@ApiOperation("模拟工作数据 cnt")
public void simulationJob(@RequestBody SimulationSeekerDTO simulationSeekerDTO){
moniMajorService.simulationJob(simulationSeekerDTO);
}
@PostMapping("simulationSeeker")
@ApiOperation("模拟求职数据 outPuts[majorType cnt 数量]")
public void simulationSeeker(@RequestBody SimulationSeekerDTO simulationSeekerDTO){
moniMajorService.simulationSeeker(simulationSeekerDTO);
}
// @PostMapping("analysisExcel")
// @ApiOperation("excel处理 ")
// public void analysisExcel(@RequestParam("file") MultipartFile file){
// moniMajorService.analysisExcel(file);
// }
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
@RestController
@Api(tags = "")
@RequestMapping("/moni-result-company-do")
public class MoniResultCompanyController {
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
@RestController
@Api(tags = "")
@RequestMapping("/moni-result-do")
public class MoniResultController {
}
package com.subsidy.dto.collect;
import lombok.Data;
@Data
public class InfoDTO {
private Integer pageSize;
private Integer pageNum;
}
package com.subsidy.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.CollectInfoDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 首页手机信息 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
@Repository
public interface CollectInfoMapper extends BaseMapper<CollectInfoDO> {
IPage<CollectInfoDO> info(IPage iPage);
}
package com.subsidy.mapper;
import com.subsidy.model.MoniCollegeMajorMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 院校专业映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniCollegeMajorMappingMapper extends BaseMapper<MoniCollegeMajorMappingDO> {
}
package com.subsidy.mapper;
import com.subsidy.model.MoniCollegeDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 院校 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniCollegeMapper extends BaseMapper<MoniCollegeDO> {
}
package com.subsidy.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.model.MoniCompanyDO;
import com.subsidy.vo.simulation.MajorCollegesVO;
import com.subsidy.vo.simulation.MajorCompaniesVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniCompanyMapper extends BaseMapper<MoniCompanyDO> {
List<MoniCompanyDO> limitNData(String majorType);
List<MajorCollegesVO > majorColleges(String majorType);
List<MajorCompaniesVO> majorCompanies(String majorType);
}
package com.subsidy.mapper;
import com.subsidy.model.MoniJobMajorDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniJobMajorMapper extends BaseMapper<MoniJobMajorDO> {
}
package com.subsidy.mapper;
import com.subsidy.model.MoniMajorDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.vo.simulation.MajorVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniMajorMapper extends BaseMapper<MoniMajorDO> {
/**
* 查看某大类的所有专业
*/
List<MajorVO> typeMajors(String majorType);
}
package com.subsidy.mapper;
import com.subsidy.model.MoniResultCompanyDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
@Repository
public interface MoniResultCompanyMapper extends BaseMapper<MoniResultCompanyDO> {
}
package com.subsidy.mapper;
import com.subsidy.model.MoniResultDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
@Repository
public interface MoniResultMapper extends BaseMapper<MoniResultDO> {
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 首页手机信息
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("collect_info")
public class CollectInfoDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private String collegeName;
private String dept;
private String jobName;
private String userName;
private String telephone;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 院校
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_college")
public class MoniCollegeDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 院校名称
*/
private String collegeName;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 院校专业映射表
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_college_major_mapping")
public class MoniCollegeMajorMappingDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 院校id
*/
private Long collegeId;
/**
* 专业id
*/
private Long majorId;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_company")
public class MoniCompanyDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 公司名称
*/
private String companyName;
/**
* 工作名
*/
private String companyJob;
/**
* 工作专业
*/
private String jobMajor;
/**
* 工作详情
*/
private String companyDesc;
/**
* 公司行业
*/
private String companyIndustry;
/**
* 工资
*/
private String salary;
/**
* 学历要求
*/
private String demands;
/**
* 地址
*/
private String location;
private String years;
private String numbers;
private String requirement;
private String content;
private String welfare;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_job_major")
public class MoniJobMajorDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 工作范围
*/
private String jobType;
/**
* 专业type
*/
private String majorType;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_major")
public class MoniMajorDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 父节点
*/
private String code;
/**
* 专业类别
*/
private String majorType;
/**
* 专业
*/
private String major;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_result_company")
public class MoniResultCompanyDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private String companyName;
private String jobName;
private Integer recuitCnt;
private String salary;
private String companyDesc;
private String address;
private String years;
private String education;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_result")
public class MoniResultDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 专业名称
*/
private String majorName;
/**
* 院校
*/
private String college;
/**
* 毕业时间
*/
private String graduate;
private String exp1;
private String exp2;
private String exp3;
private String exp4;
private String exp5;
private String exp6;
private String exp7;
private String exp8;
private String exp9;
private String exp10;
private String exp11;
private String exp12;
}
package com.subsidy.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.dto.collect.InfoDTO;
import com.subsidy.model.CollectInfoDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 首页手机信息 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
public interface CollectInfoService extends IService<CollectInfoDO> {
String collect(CollectInfoDO collectInfoDO);
IPage<CollectInfoDO> info(InfoDTO infoDTO);
}
package com.subsidy.service;
import com.subsidy.model.MoniCollegeMajorMappingDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 院校专业映射表 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniCollegeMajorMappingService extends IService<MoniCollegeMajorMappingDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniCollegeDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 院校 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniCollegeService extends IService<MoniCollegeDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniCompanyDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniCompanyService extends IService<MoniCompanyDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniJobMajorDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniJobMajorService extends IService<MoniJobMajorDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniMajorDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.subsidy.vo.simulation.SimulationSeekerDTO;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniMajorService extends IService<MoniMajorDO> {
void simulationJob(SimulationSeekerDTO simulationSeekerDTO);
void simulationSeeker(SimulationSeekerDTO simulationSeekerDTO);
// void analysisExcel(MultipartFile multipartFile);
}
package com.subsidy.service;
import com.subsidy.model.MoniResultCompanyDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
public interface MoniResultCompanyService extends IService<MoniResultCompanyDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniResultDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
public interface MoniResultService extends IService<MoniResultDO> {
}
package com.subsidy.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.subsidy.common.exception.HttpException;
import com.subsidy.dto.collect.InfoDTO;
import com.subsidy.model.CollectInfoDO;
import com.subsidy.mapper.CollectInfoMapper;
import com.subsidy.service.CollectInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.subsidy.util.ConstantUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import java.util.Properties;
/**
* <p>
* 首页手机信息 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
@Service
public class CollectInfoServiceImpl extends ServiceImpl<CollectInfoMapper, CollectInfoDO> implements CollectInfoService {
@Transactional(rollbackFor = Exception.class)
public String collect(CollectInfoDO collectInfoDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<CollectInfoDO>()
.lambda()
.eq(CollectInfoDO::getTelephone,collectInfoDO.getTelephone()));
if (count > 0){
throw new HttpException(30003);
}
this.baseMapper.insert(collectInfoDO);
//发邮件
sendMail(collectInfoDO);
return ConstantUtils.ADD_SUCCESS;
}
public IPage<CollectInfoDO> info(InfoDTO infoDTO){
Page pager = new Page(infoDTO.getPageNum(), infoDTO.getPageSize());
return this.baseMapper.info(pager);
}
public void sendMail(CollectInfoDO collectInfoDO) {
final String username = "alextyp@163.com"; // 替换为你的邮箱用户名
final String password = "CYWjrN8NeYYsCy4q"; // 替换为你的邮箱密码
Properties props = new Properties();
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", "smtp.163.com");
props.put("mail.smtp.port", "25");
Session session = Session.getInstance(props, new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
try {
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("alextyp@163.com")); // 设置发件人
message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("tuyaping@ykhl.com")); // 设置收件人
message.setSubject("有新的联系需求"); // 设置邮件主题
message.setText("院校名称:"+collectInfoDO.getCollegeName()+"\n" +
"所在部门或院系:"+collectInfoDO.getDept()+"\n" +
"职位:"+collectInfoDO.getJobName()+"\n" +
"称呼:"+collectInfoDO.getUserName()+"\n" +
"联系方式:"+collectInfoDO.getTelephone()); // 设置邮件正文
Transport.send(message);
System.out.println("Email sent successfully!");
} catch (MessagingException e) {
throw new RuntimeException("Error: cannot send email", e);
}
}
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniCollegeMajorMappingDO;
import com.subsidy.mapper.MoniCollegeMajorMappingMapper;
import com.subsidy.service.MoniCollegeMajorMappingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 院校专业映射表 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Service
public class MoniCollegeMajorMappingServiceImpl extends ServiceImpl<MoniCollegeMajorMappingMapper, MoniCollegeMajorMappingDO> implements MoniCollegeMajorMappingService {
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniCollegeDO;
import com.subsidy.mapper.MoniCollegeMapper;
import com.subsidy.service.MoniCollegeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 院校 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Service
public class MoniCollegeServiceImpl extends ServiceImpl<MoniCollegeMapper, MoniCollegeDO> implements MoniCollegeService {
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniCompanyDO;
import com.subsidy.mapper.MoniCompanyMapper;
import com.subsidy.service.MoniCompanyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Service
public class MoniCompanyServiceImpl extends ServiceImpl<MoniCompanyMapper, MoniCompanyDO> implements MoniCompanyService {
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniJobMajorDO;
import com.subsidy.mapper.MoniJobMajorMapper;
import com.subsidy.service.MoniJobMajorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Service
public class MoniJobMajorServiceImpl extends ServiceImpl<MoniJobMajorMapper, MoniJobMajorDO> implements MoniJobMajorService {
}
package com.subsidy.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.subsidy.mapper.MoniCompanyMapper;
import com.subsidy.mapper.MoniResultMapper;
import com.subsidy.model.MoniCollegeDO;
import com.subsidy.model.MoniCompanyDO;
import com.subsidy.model.MoniMajorDO;
import com.subsidy.mapper.MoniMajorMapper;
import com.subsidy.model.MoniResultDO;
import com.subsidy.service.MoniMajorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.subsidy.util.excel.ExcelUtil;
import com.subsidy.vo.simulation.*;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import java.time.YearMonth;
import java.util.*;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Service
public class MoniMajorServiceImpl extends ServiceImpl<MoniMajorMapper, MoniMajorDO> implements MoniMajorService {
@Autowired
private MoniCompanyMapper moniCompanyMapper;
@Autowired
private MoniResultMapper moniResultMapper;
public void simulationJob(SimulationSeekerDTO simulationSeekerDTO) {
List<SimulationJobVO> simulationJobVOS = new ArrayList<>();
List<OutPutVO> outPuts = simulationSeekerDTO.getOutPuts();
for (OutPutVO outPutVO : outPuts){
List<MoniCompanyDO> moniCompanyDOS = moniCompanyMapper.limitNData(outPutVO.getMajorType());
Collections.shuffle(moniCompanyDOS);
for (int i = 0 ; i < outPutVO.getCnt() ; i++) {
SimulationJobVO simulationJobVO = new SimulationJobVO();
simulationJobVO.setCompanyName(moniCompanyDOS.get(i).getCompanyName());
simulationJobVO.setJobName(moniCompanyDOS.get(i).getCompanyJob());
simulationJobVO.setApplyCnt(moniCompanyDOS.get(i).getNumbers());
simulationJobVO.setSalary(moniCompanyDOS.get(i).getSalary());
// simulationJobVO.setJobDesc(moniCompanyDOS.get(i).getContent());
// simulationJobVO.setDemand(moniCompanyDOS.get(i).getRequirement());
simulationJobVO.setAddress(moniCompanyDOS.get(i).getLocation());
simulationJobVO.setJobDuration(moniCompanyDOS.get(i).getYears());
simulationJobVO.setEducation(moniCompanyDOS.get(i) .getDemands());
simulationJobVOS.add(simulationJobVO);
}
}
ExcelUtil.writeExcel(simulationJobVOS, SimulationJobVO.class);
}
public void simulationSeeker(SimulationSeekerDTO simulationSeekerDTO) {
// List<Map> data = new ArrayList<>();
//
// //表头
// List<String> titles = new ArrayList<>();
// titles.add("专业名称");
// titles.add("毕业院校");
// titles.add("毕业年份");
// titles.add("工作经历1");
// titles.add("工作经历2");
// titles.add("工作经历3");
// titles.add("工作经历4");
// titles.add("工作经历5");
// titles.add("工作经历6");
// titles.add("工作经历7");
// titles.add("工作经历8");
// titles.add("工作经历9");
// titles.add("工作经历10");
// titles.add("工作经历11");
// titles.add("工作经历12");
// List<ExcelFieldVO> excelFieldVOS = new ArrayList<>();
// for (String title : titles) {
// ExcelFieldVO excelFieldVO = new ExcelFieldVO();
// excelFieldVO.setField(title);
// excelFieldVO.setName(title);
// excelFieldVOS.add(excelFieldVO);
// }
List<OutPutVO> outPuts = simulationSeekerDTO.getOutPuts();
// 定义线程池的大小,根据你的需要来设置
// ExecutorService executor = Executors.newFixedThreadPool(outPuts.size());
// 用于存放Future对象的列表,Future对象可以用来检查任务是否完成
// List<Future<?>> futures = new ArrayList<>();
for (OutPutVO outPutVO : outPuts) {
// Future<?> future = executor.submit(new Callable() {
// @Override
// public Object call() throws Exception {
// 这里执行你的任务
dataProcess(outPutVO);
// return null;
// }
// });
// 将Future对象添加到列表中
// futures.add(future);
}
// 关闭ExecutorService,不再接受新任务
// executor.shutdown();
// // 等待所有任务完成
// for (Future<?> future : futures) {
// try {
// // get方法会阻塞直到任务完成
// future.get();
// } catch (Exception e) {
// e.printStackTrace();
// }
// }
//
// Collections.shuffle(data);
// ExcelUtil.writeMapExcel(excelFieldVOS, data);
}
// public void analysisExcel(MultipartFile multipartFile) {
//
// List<AnalysisExcelVO> analysisExcelVOS = new ArrayList<>();
//
// List<AnalysisExcelDTO> analysisExcelDTOS = ExcelUtil.readExcel(null, AnalysisExcelDTO.class, multipartFile);
// for (AnalysisExcelDTO analysisExcelDTO : analysisExcelDTOS) {
// AnalysisExcelVO analysisExcelVO = new AnalysisExcelVO();
// BeanUtils.copyProperties(analysisExcelDTO, analysisExcelVO);
// // 处理并拆分文本
// String[] result = cleanAndSplitDesc(analysisExcelDTO.getCompanyDesc());
//
// // 将拆分后的内容写入新的列
// analysisExcelVO.setContent(result[0]); // 工作内容
// analysisExcelVO.setDemands(result[1]); // 工作要求
// analysisExcelVO.setWearFare(result[2]); // 福利待遇
//
// analysisExcelVOS.add(analysisExcelVO);
// }
//
// ExcelUtil.writeExcel(analysisExcelVOS, AnalysisExcelVO.class);
// }
// 清理并拆分文本
// private static String[] cleanAndSplitDesc(String companyDesc) {
// // 去除问号、星号及乱码
// companyDesc = companyDesc.replaceAll("[?*]+", "");
// companyDesc = companyDesc.replaceAll("[^\\x00-\\x7F]+", "");
//
// // 初始化各个部分
// String jobContent = "";
// String jobRequirements = "";
// String benefits = "";
//
// // 使用正则表达式拆分文本
// Pattern jobContentPattern = Pattern.compile("工作内容[::](.*?)(职位要求[::]|福利待遇[::]|$)");
// Matcher jobContentMatcher = jobContentPattern.matcher(companyDesc);
// if (jobContentMatcher.find()) {
// jobContent = jobContentMatcher.group(1).trim();
// }
//
// Pattern jobRequirementsPattern = Pattern.compile("职位要求[::](.*?)(福利待遇[::]|$)");
// Matcher jobRequirementsMatcher = jobRequirementsPattern.matcher(companyDesc);
// if (jobRequirementsMatcher.find()) {
// jobRequirements = jobRequirementsMatcher.group(1).trim();
// }
//
// Pattern benefitsPattern = Pattern.compile("福利待遇[::](.*?)(工作内容[::]|职位要求[::]|$)");
// Matcher benefitsMatcher = benefitsPattern.matcher(companyDesc);
// if (benefitsMatcher.find()) {
// benefits = benefitsMatcher.group(1).trim();
// }
//
// // 返回拆分结果
// return new String[]{jobContent, jobRequirements, benefits};
// }
public void dataProcess(OutPutVO outPutVO) {
List<MajorVO> moniMajorDOS = this.baseMapper.typeMajors(outPutVO.getMajorType());
//行业id 院校
HashMap<Long, List<MajorCollegesVO>> college = new HashMap<>();
List<MajorCollegesVO> moniCollegeDOS = moniCompanyMapper.majorColleges(outPutVO.getMajorType());
for (MajorCollegesVO moniCollegeDO : moniCollegeDOS) {
if (college.keySet().contains(moniCollegeDO.getId())) {
List<MajorCollegesVO> moniCollegeDOS1 = college.get(moniCollegeDO.getId());
moniCollegeDOS1.add(moniCollegeDO);
college.put(moniCollegeDO.getId(), moniCollegeDOS1);
} else {
List<MajorCollegesVO> moniCollegeDOS1 = new ArrayList<>();
moniCollegeDOS1.add(moniCollegeDO);
college.put(moniCollegeDO.getId(), moniCollegeDOS1);
}
}
//行业大类 公司
//随机一个院校
List<MajorCompaniesVO> moniCompanyDOS = moniCompanyMapper.majorCompanies(outPutVO.getMajorType());
for (int i = 0; i < outPutVO.getCnt(); i++) {
MoniResultDO moniResultDO = new MoniResultDO();
// HashMap<String, String> hashMap = new HashMap<>();
//专业
MajorVO majorVO = moniMajorDOS.get(randSizeElement(moniMajorDOS.size())); //专业
moniResultDO.setMajorName(majorVO.getMajor());
// hashMap.put("专业名称", majorVO.getMajor());
//随机一个院校
MajorCollegesVO moniCollegeDO = college.get(majorVO.getId()).get(randSizeElement(college.get(majorVO.getId()).size()));
moniResultDO.setCollege(moniCollegeDO.getCollegeName());
// hashMap.put("毕业院校", moniCollegeDO.getCollegeName());
//当前年份
YearMonth todayYear = YearMonth.now().minusMonths(jobRand123(4) - 1);
Collections.shuffle(moniCompanyDOS);
List<MajorCompaniesVO> companyTmp = moniCompanyDOS.subList(0, jobRand123(12));
YearMonth yearMonth1 = null;
for (int k = companyTmp.size() - 1; k >= 0; k--) {
//工作时间
StringBuffer exp = new StringBuffer();
yearMonth1 = todayYear.minusMonths(randDuration());
exp.append(yearMonth1 + "~" + todayYear).append(":")
.append(companyTmp.get(k).getCompanyJob())
.append(",")
.append(companyTmp.get(k).getCompanyName())
.append(",")
.append(companyTmp.get(k).getCompanyDesc())
.append(",")
.append(companyTmp.get(k).getSalary())
.append(",")
.append(companyTmp.get(k).getCompanyIndustry());
// hashMap.put("工作经历" + (k + 1), exp.toString());
if (k == 0) {
moniResultDO.setExp1(exp.toString());
} else if (k == 1) {
moniResultDO.setExp2(exp.toString());
} else if (k == 2) {
moniResultDO.setExp3(exp.toString());
} else if (k == 3) {
moniResultDO.setExp4(exp.toString());
} else if (k == 4) {
moniResultDO.setExp5(exp.toString());
} else if (k == 5) {
moniResultDO.setExp6(exp.toString());
} else if (k == 6) {
moniResultDO.setExp7(exp.toString());
} else if (k == 7) {
moniResultDO.setExp8(exp.toString());
} else if (k == 8) {
moniResultDO.setExp9(exp.toString());
} else if (k == 9) {
moniResultDO.setExp10(exp.toString());
} else if (k == 10) {
moniResultDO.setExp11(exp.toString());
} else if (k == 11) {
moniResultDO.setExp12(exp.toString());
}
todayYear = yearMonth1.minusMonths(jobRand123(2));
}
//毕业年份
moniResultDO.setGraduate(todayYear.toString());
// hashMap.put("毕业年份",todayYear.toString());
// data.add(hashMap);
moniResultMapper.insert(moniResultDO);
}
}
/**
* 随机一个数组元素
*/
public int randSizeElement(int size) {
return new Random().nextInt(size);
}
/**
* 生成3-15的随机数
*/
public int randDuration() {
return new Random().nextInt(5) + 3;
}
/**
* 1-i里随机取一个元素 工作经历
*/
public int jobRand123(int i) {
return new Random().nextInt(i) + 1;
}
public static void main(String[] args) {
for (int i = 0 ; i < 100 ; i ++){
System.out.println(new Random().nextInt(i) + 1);
}
}
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniResultCompanyDO;
import com.subsidy.mapper.MoniResultCompanyMapper;
import com.subsidy.service.MoniResultCompanyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
@Service
public class MoniResultCompanyServiceImpl extends ServiceImpl<MoniResultCompanyMapper, MoniResultCompanyDO> implements MoniResultCompanyService {
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniResultDO;
import com.subsidy.mapper.MoniResultMapper;
import com.subsidy.service.MoniResultService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
@Service
public class MoniResultServiceImpl extends ServiceImpl<MoniResultMapper, MoniResultDO> implements MoniResultService {
}
package com.subsidy.util.excel; package com.subsidy.util.excel;
import com.subsidy.vo.simulation.ExcelFieldVO;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.CharUtils; import org.apache.commons.lang3.CharUtils;
...@@ -365,6 +366,50 @@ public class ExcelUtil { ...@@ -365,6 +366,50 @@ public class ExcelUtil {
} }
} }
public static <T> void writeMapExcel(List<ExcelFieldVO> fields, List<Map> list) {
ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletResponse response = servletRequestAttributes.getResponse();
Workbook wb = new XSSFWorkbook();
Sheet sheet = wb.createSheet();
AtomicInteger ai = new AtomicInteger();
{
Row row = sheet.createRow(ai.getAndIncrement());
AtomicInteger at = new AtomicInteger();
fields.forEach(field -> {
Cell cell = row.createCell(at.getAndIncrement());
CellStyle cellStyle = wb.createCellStyle();
cellStyle.setFillForegroundColor(IndexedColors.PALE_BLUE.getIndex());
Font font = wb.createFont();
font.setBoldweight(Font.BOLDWEIGHT_BOLD);
cellStyle.setFont(font);
cell.setCellStyle(cellStyle);
cell.setCellValue(field.getName());
});
if (list != null) {
list.forEach(map -> {
Row r = sheet.createRow(ai.getAndIncrement());
AtomicInteger a = new AtomicInteger();
fields.forEach(field -> {
Object value = map.get(field.getField());
Cell cell = r.createCell(a.getAndIncrement());
if (value != null) {
cell.setCellValue(value.toString());
}
});
});
for (int i = 0; i < list.size(); i++) {
sheet.autoSizeColumn(i);
}
}
String fileName = String.valueOf(new Date().getTime());
buildExcelDocument(fileName + "." + EXCEL2007, wb, response);
}
}
private static void setStyle(CellStyle cellStyle) { private static void setStyle(CellStyle cellStyle) {
// 水平居中 // 水平居中
cellStyle.setAlignment(CellStyle.ALIGN_CENTER); cellStyle.setAlignment(CellStyle.ALIGN_CENTER);
......
package com.subsidy.vo.simulation;
import com.subsidy.util.excel.ExcelColumnUtil;
import lombok.Data;
@Data
public class AnalysisExcelDTO {
@ExcelColumnUtil(value = "id", col = 1)
private String id;
@ExcelColumnUtil(value = "company_name", col = 2)
private String companyName;
@ExcelColumnUtil(value = "company_job", col = 3)
private String schoolName;
@ExcelColumnUtil(value = "job_major", col = 4)
private String idCard;
@ExcelColumnUtil(value = "company_desc", col = 5)
private String companyDesc;
@ExcelColumnUtil(value = "requirement", col = 6)
private String requirement;
@ExcelColumnUtil(value = "content", col = 7)
private String content;
@ExcelColumnUtil(value = "company_industry", col = 8)
private String companyIndustry;
@ExcelColumnUtil(value = "salary", col = 9)
private String salary;
@ExcelColumnUtil(value = "demands", col = 10)
private String demands;
@ExcelColumnUtil(value = "numbers", col = 11)
private String numbers;
@ExcelColumnUtil(value = "location", col = 12)
private String location;
@ExcelColumnUtil(value = "years", col = 13)
private String years;
}
package com.subsidy.vo.simulation;
import com.subsidy.util.excel.ExcelColumn;
import com.subsidy.util.excel.ExcelColumnUtil;
import lombok.Data;
@Data
public class AnalysisExcelVO {
@ExcelColumn(value = "id", col = 1)
private String id;
@ExcelColumn(value = "company_name", col = 2)
private String companyName;
@ExcelColumn(value = "company_job", col = 3)
private String schoolName;
@ExcelColumn(value = "job_major", col = 4)
private String idCard;
@ExcelColumn(value = "company_desc", col = 5)
private String companyDesc;
@ExcelColumn(value = "requirement", col = 6)
private String requirement;
@ExcelColumn(value = "content", col = 7)
private String content;
@ExcelColumn(value = "wearFare", col = 8)
private String wearFare;
@ExcelColumn(value = "company_industry", col = 9)
private String companyIndustry;
@ExcelColumn(value = "salary", col = 10)
private String salary;
@ExcelColumn(value = "demands", col = 11)
private String demands;
@ExcelColumn(value = "numbers", col = 12)
private String numbers;
@ExcelColumn(value = "location", col = 13)
private String location;
@ExcelColumn(value = "years", col = 14)
private String years;
}
package com.subsidy.vo.simulation;
import lombok.Data;
@Data
public class ExcelFieldVO {
private String field;
private String name;
}
package com.subsidy.vo.simulation;
import com.subsidy.model.MoniCompanyDO;
import com.subsidy.util.excel.ExcelColumn;
import lombok.Data;
import java.util.List;
@Data
public class JobSeekerInfoVO {
@ExcelColumn(col = 1,value = "专业名称")
private String major;
@ExcelColumn(col = 2,value = "毕业院校")
private String college;
@ExcelColumn(col = 3,value = "毕业年份")
private String graduateDate;
@ExcelColumn(col = 4,value = "工作经历1")
private String jobDuration1;
@ExcelColumn(col = 5,value = "工作经历2")
private String jobDuration2;
@ExcelColumn(col = 6,value = "工作经历3")
private String jobDuration3;
@ExcelColumn(col = 7,value = "工作经历4")
private String jobDuration4;
@ExcelColumn(col = 8,value = "工作经历5")
private String jobDuration5;
@ExcelColumn(col = 9,value = "工作经历6")
private String jobDuration6;
@ExcelColumn(col = 10,value = "工作经历7")
private String jobDuration7;
@ExcelColumn(col = 11,value = "工作经历8")
private String jobDuration8;
@ExcelColumn(col = 12,value = "工作经历9")
private String jobDuration9;
@ExcelColumn(col = 13,value = "工作经历10")
private String jobDuration10;
@ExcelColumn(col = 14,value = "工作经历11")
private String jobDuration11;
@ExcelColumn(col = 15,value = "工作经历12")
private String jobDuration12;
private List<MoniCompanyDO> companyTmp;
}
package com.subsidy.vo.simulation;
import lombok.Data;
@Data
public class MajorCollegesVO {
private Long id;
/**
* 院校名称
*/
private String collegeName;
}
package com.subsidy.vo.simulation;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
@Data
public class MajorCompaniesVO {
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 公司名称
*/
private String companyName;
/**
* 工作名
*/
private String companyJob;
/**
* 工作专业
*/
private String jobMajor;
/**
* 工作详情
*/
private String companyDesc;
/**
* 公司行业
*/
private String companyIndustry;
/**
* 工资
*/
private String salary;
/**
* 学历要求
*/
private String demands;
/**
* 地址
*/
private String location;
private String years;
private String numbers;
private String requirement;
private String content;
private String welfare;
}
package com.subsidy.vo.simulation;
import lombok.Data;
@Data
public class MajorVO {
private Long id;
private String majorType;
private String major;
}
package com.subsidy.vo.simulation;
import lombok.Data;
@Data
public class OutPutVO {
private String majorType;
private Integer cnt;
}
package com.subsidy.vo.simulation;
import com.subsidy.util.excel.ExcelColumn;
import lombok.Data;
@Data
public class SimulationJobVO {
@ExcelColumn(col = 1,value = "单位名称")
private String companyName;
@ExcelColumn(col = 2,value = "用人单位性质")
private String companyType;
@ExcelColumn(col = 3,value = "岗位名称")
private String jobName;
@ExcelColumn(col = 4,value = "招聘人数")
private String applyCnt;
@ExcelColumn(col = 5,value = "薪资待遇")
private String salary;
@ExcelColumn(col = 6,value = "工作职责/岗位职责/职位介绍/职位描述")
private String jobDesc;
@ExcelColumn(col = 7,value = "任职资格/要求")
private String demand;
@ExcelColumn(col = 8,value = "工作地点")
private String address;
@ExcelColumn(col = 9,value = "工作年限")
private String jobDuration;
@ExcelColumn(col = 10,value = "学历要求")
private String education;
}
package com.subsidy.vo.simulation;
import lombok.Data;
import java.util.List;
@Data
public class SimulationSeekerDTO {
private List<OutPutVO> outPuts;
}
# 本地环境配置 # 本地环境配置
spring.server.port=23467 spring.server.port=23467
# 数据源配置 ## 数据源配置
#spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 #spring.datasource.url=jdbc:mysql://localhost:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
##spring.datasource.url=jdbc:mysql://rm-uf6rab73w0qg843opxo.mysql.rds.aliyuncs.com:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.type=com.alibaba.druid.pool.DruidDataSource #spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
##spring.datasource.username=ykadmin_new #spring.datasource.username=root
##spring.datasource.password=youkedb608@good #spring.datasource.password=123456
#spring.datasource.username=devloper
#spring.datasource.password=dev@1553$
# 数据源配置 # 数据源配置
spring.datasource.url=jdbc:mysql://139.224.253.21:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 spring.datasource.url=jdbc:mysql://139.224.253.21:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
......
# 本地环境配置 # 本地环境配置
spring.server.port=23462 spring.server.port=23467
# 数据源配置 # 数据源配置
spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy_online?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 spring.datasource.url=jdbc:mysql://localhost:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.url=jdbc:mysql://rm-uf6rab73w0qg843opxo.mysql.rds.aliyuncs.com:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.username=ykadmin_new spring.datasource.username=root
#spring.datasource.password=youkedb608@good spring.datasource.password=123456
spring.datasource.username=devloper
spring.datasource.password=dev@1553$ # 数据源配置
#spring.datasource.url=jdbc:mysql://139.224.253.21:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.username=root
#spring.datasource.password=ykhladmin302
spring.datasource.druid.initialSize=5 spring.datasource.druid.initialSize=5
spring.datasource.druid.minIdle=5 spring.datasource.druid.minIdle=5
...@@ -28,22 +32,6 @@ spring.datasource.druid.useGlobalDataSourceStat=true ...@@ -28,22 +32,6 @@ spring.datasource.druid.useGlobalDataSourceStat=true
# 控制台日志打印 # 控制台日志打印
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
#spring.redis.host=r-uf6meywj6ysuehg148pd.redis.rds.aliyuncs.com
#spring.redis.password=r-uf6meywj6ysuehg148:Ykhl@208
#spring.redis.port=6379
#spring.redis.lettuce.pool.max-idle=16
#spring.redis.lettuce.pool.max-active=32
#spring.redis.lettuce.pool.min-idle=8
#spring.application.name=spring-boot-mongodb
## mongodb
##spring.data.mongodb.uri=mongodb://47.97.19.66:27017/subsidy
#spring.data.mongodb.username=root
#spring.data.mongodb.password=123456
##spring.data.mongodb.authentication-database=subsidy
#spring.data.mongodb.database=subsidy
#spring.data.mongodb.host=47.97.19.66
#spring.data.mongodb.port=27017
spring.redis.host=47.97.19.66 spring.redis.host=47.97.19.66
spring.redis.password=Ykhl@208 spring.redis.password=Ykhl@208
...@@ -56,5 +44,6 @@ qxueyou.appId=qxywz5nnWMI77CM3Tx ...@@ -56,5 +44,6 @@ qxueyou.appId=qxywz5nnWMI77CM3Tx
qxueyou.securityKey=626737T1-65K0-5xC2-0Y0V-2Aq95qxy qxueyou.securityKey=626737T1-65K0-5xC2-0Y0V-2Aq95qxy
qxueyou.url=https://dev.qxueyou.com/auth/user/token qxueyou.url=https://dev.qxueyou.com/auth/user/token
renshe.url = https://api.shzypxy.com renshe.url = https://test.shzypxy.com
renshe.secretKey = 111 renshe.secretKey = ad927f0b-6a39-43a7-bac7-163baef1fff7
\ No newline at end of file renshe.putuo = http://180.167.195.117:18015/ddproject
\ No newline at end of file
spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX #spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate #spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_ #spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_
spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool #spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
spring.quartz.properties.org.quartz.threadPool.threadCount=15 #spring.quartz.properties.org.quartz.threadPool.threadCount=15
spring.quartz.properties.org.quartz.threadPool.threadPriority=5 #spring.quartz.properties.org.quartz.threadPool.threadPriority=5
spring.quartz.properties.org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true #spring.quartz.properties.org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true
\ No newline at end of file \ No newline at end of file
# 环境配置 平台端 # 环境配置 平台端
spring.profiles.active=dev spring.profiles.active=pre
#和CPU数 #和CPU数
spring.server.acceptorThreadCount=600 spring.server.acceptorThreadCount=600
spring.server.minSpareThreads=100 spring.server.minSpareThreads=100
...@@ -57,21 +57,7 @@ vod.secretKey=vjHYRmrfDbw0rWxA7oFcj7F8lDPKCm8E ...@@ -57,21 +57,7 @@ vod.secretKey=vjHYRmrfDbw0rWxA7oFcj7F8lDPKCm8E
vod.api=vod.tencentcloudapi.com vod.api=vod.tencentcloudapi.com
vod.region=ap-shanghai vod.region=ap-shanghai
vod.classId=848920 vod.classId=848920
# quartz
# 数据持久化方式
spring.quartz.job-store-type=jdbc
# 初始化后是否自动启动计划程序
spring.quartz.auto-startup=true
# 初始化完成后启动计划程序的延迟时间
spring.quartz.startup-delay=10s
# 配置的作业是否应覆盖现有的作业定义
spring.quartz.overwrite-existing-jobs=false
# 自动建表,如果已经存在表请勿使用,会覆盖数据表
#spring.quartz.jdbc.initialize-schema=always
#spring.datasource.initialization-mode=embedded
#spring.redis.host=r-uf6m4cpkjrgpzywjm3pd.redis.rds.aliyuncs.com
#spring.redis.port=6379
#spring.redis.password=r-uf6m4cpkjrgpzywjm3:Ykhl@208
wechat= wechat=
#pro #pro
appId=wx5e1ecb9c9bd33451 appId=wx5e1ecb9c9bd33451
......
...@@ -79,4 +79,5 @@ meishu.code-message[19001]=验证失败 ...@@ -79,4 +79,5 @@ meishu.code-message[19001]=验证失败
meishu.code-message[20003]=提交时间过短,请稍后尝试 meishu.code-message[20003]=提交时间过短,请稍后尝试
meishu.code-message[30002]=该产品已存在 meishu.code-message[30002]=该产品已存在
\ No newline at end of file meishu.code-message[30003]=您已提交过信息,请勿重复提交
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.CollectInfoMapper">
<select id="info" resultType="com.subsidy.model.CollectInfoDO">
SELECT
*
FROM
collect_info t
where t.delete_date is null
order by t.create_date desc
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.MoniCollegeMajorMappingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniCollegeMajorMappingDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="college_id" property="collegeId" />
<result column="major_id" property="majorId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, college_id, major_id
</sql>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.MoniCollegeMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniCollegeDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="college_name" property="collegeName" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, college_name
</sql>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.MoniCompanyMapper">
<select id="limitNData" resultType="com.subsidy.model.MoniCompanyDO">
SELECT
t2.id,
t2.company_desc,
t2.company_industry,
t2.company_job,
t2.company_name,
t2.content,
t2.demands,
t2.job_major,
t2.location,
t2.numbers,
t2.requirement,
t2.salary,
t2.years
FROM
moni_company t2
LEFT JOIN moni_job_major t ON t2.job_major = t.job_type
WHERE
t.major_type = #{majorType}
</select>
<select id="majorColleges" parameterType="string" resultType="com.subsidy.vo.simulation.MajorCollegesVO">
SELECT
t.id,
t3.college_name
FROM
moni_major t
LEFT JOIN moni_college_major_mapping t2 ON t.id = t2.major_id
LEFT JOIN moni_college t3 ON t2.college_id = t3.id
WHERE
t.major_type = #{majorType}
</select>
<select id="majorCompanies" parameterType="string" resultType="com.subsidy.vo.simulation.MajorCompaniesVO">
SELECT
t2.id,
t2.company_desc,
t2.company_industry,
t2.company_job,
t2.company_name,
t2.content,
t2.demands,
t2.job_major,
t2.location,
t2.numbers,
t2.requirement,
t2.salary,
t2.years
FROM
moni_job_major t
LEFT JOIN moni_company t2 ON t.job_type = t2.job_major
WHERE
t.major_type = #{majorType}
limit 700000
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.MoniJobMajorMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniJobMajorDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="job_type" property="jobType" />
<result column="major_type" property="majorType" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, job_type, major_type
</sql>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.MoniMajorMapper">
<select id="typeMajors" parameterType="string" resultType="com.subsidy.vo.simulation.MajorVO">
select t.id,t.major,t.major_type from moni_major t where t.major_type = #{majorType}
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.MoniResultCompanyMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniResultCompanyDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="company_name" property="companyName" />
<result column="job_name" property="jobName" />
<result column="recuit_cnt" property="recuitCnt" />
<result column="salary" property="salary" />
<result column="company_desc" property="companyDesc" />
<result column="address" property="address" />
<result column="years" property="years" />
<result column="education" property="education" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, company_name, job_name, recuit_cnt, salary, company_desc, address, years, education
</sql>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.MoniResultMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniResultDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="major_name" property="majorName" />
<result column="college" property="college" />
<result column="graduate" property="graduate" />
<result column="exp1" property="exp1" />
<result column="exp2" property="exp2" />
<result column="exp3" property="exp3" />
<result column="exp4" property="exp4" />
<result column="exp5" property="exp5" />
<result column="exp6" property="exp6" />
<result column="exp7" property="exp7" />
<result column="exp8" property="exp8" />
<result column="exp9" property="exp9" />
<result column="exp10" property="exp10" />
<result column="exp11" property="exp11" />
<result column="exp12" property="exp12" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, major_name, college, graduate, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, exp9, exp10, exp11, exp12
</sql>
</mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!