Commit 1687837a by 涂亚平

准备周六在家加班......

1 parent 257da81e
Showing with 9330 additions and 609 deletions
2023-02-22 13:26:33,663 [http-nio-34567-exec-8] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token 2023-04-06 10:02:12,197 [http-nio-34567-exec-7] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value (''); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('')
at [Source: (PushbackInputStream); line: 1, column: 50] (through reference chain: com.laowu.dto.job.JobDTO["recruitId"]) at [Source: (PushbackInputStream); line: 1, column: 50] (through reference chain: com.laowu.dto.job.JobDTO["recruitId"])
2023-02-22 17:01:30,928 [http-nio-34567-exec-7] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.Long` out of START_ARRAY token 2023-04-06 10:10:33,728 [http-nio-34567-exec-10] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value (''); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('')
at [Source: (PushbackInputStream); line: 1, column: 40] (through reference chain: com.laowu.dto.company.CompanyDTO["placeId"]) at [Source: (PushbackInputStream); line: 1, column: 50] (through reference chain: com.laowu.dto.job.JobDTO["recruitId"])
2023-04-06 10:17:30,530 [http-nio-34567-exec-4] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value (''); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('')
at [Source: (PushbackInputStream); line: 1, column: 50] (through reference chain: com.laowu.dto.job.JobDTO["recruitId"])
2023-04-06 11:49:33,386 [http-nio-34567-exec-5] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value (''); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('')
at [Source: (PushbackInputStream); line: 1, column: 50] (through reference chain: com.laowu.dto.job.JobDTO["recruitId"])
2023-04-06 13:27:53,468 [http-nio-34567-exec-10] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value (''); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('')
at [Source: (PushbackInputStream); line: 1, column: 50] (through reference chain: com.laowu.dto.job.JobDTO["recruitId"])
2023-04-06 15:19:48,783 [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\laowu\target\classes\com\laowu\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 org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
2023-04-06 15:19:48,820 [main] ERROR org.springframework.boot.SpringApplication:822 - Application run failed
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.laowu.LaowuApplication.main(LaowuApplication.java:14)
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\laowu\target\classes\com\laowu\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 org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
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\laowu\target\classes\com\laowu\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 org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
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\laowu\target\classes\com\laowu\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 org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
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 org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
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 org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
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: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.buildSqlSessionFactory(MybatisSqlSessionFactoryBean.java:593)
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$$d67b1f2c.CGLIB$sqlSessionFactory$2(<generated>)
at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$d67b1f2c$$FastClassBySpringCGLIB$$79376727.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$$d67b1f2c.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: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\code\laowu\target\classes\mapper\WorkstationRequireMappingMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:122)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:94)
at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.buildSqlSessionFactory(MybatisSqlSessionFactoryBean.java:591)
... 116 common frames omitted
Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:118)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:102)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:137)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:130)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120)
... 118 common frames omitted
Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120)
at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149)
at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116)
... 122 common frames omitted
Caused by: java.lang.ClassNotFoundException: Cannot find class:
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200)
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)
... 124 common frames omitted
This diff could not be displayed because it is too large.
...@@ -2,6 +2,7 @@ package com.laowu.controller; ...@@ -2,6 +2,7 @@ package com.laowu.controller;
import com.laowu.common.interceptor.LoginRequired; import com.laowu.common.interceptor.LoginRequired;
import com.laowu.dto.administer.AllDTO;
import com.laowu.model.AdministerDO; import com.laowu.model.AdministerDO;
import com.laowu.service.AdministerService; import com.laowu.service.AdministerService;
import com.laowu.util.ResponseData; import com.laowu.util.ResponseData;
...@@ -43,6 +44,28 @@ public class AdministerController { ...@@ -43,6 +44,28 @@ public class AdministerController {
return ResponseData.generateCreatedResponse(0, administerService.getPermissions()); return ResponseData.generateCreatedResponse(0, administerService.getPermissions());
} }
@PostMapping("/all")
@ApiOperation("管理员账户 status pageSize pageNum")
public ResponseVO all(@RequestBody AllDTO allDTO){
return ResponseData.generateCreatedResponse(0,administerService.all(allDTO));
}
@PostMapping("addAdminister")
@ApiOperation("新增管理员 addAdminister userName telephone remark")
public ResponseVO addAdminister(@RequestBody AdministerDO administerDO){
return ResponseData.generateCreatedResponse(0,administerService.addAdminister(administerDO));
}
@PostMapping("updateAdminister")
@ApiOperation("修改管理员 id addAdminister userName telephone remark status")
public ResponseVO updateAdminister(@RequestBody AdministerDO administerDO){
return ResponseData.generateCreatedResponse(0,administerService.updateAdminister(administerDO));
}
@PostMapping("deleteAdminister")
@ApiOperation("删除管理员 id ")
public ResponseVO deleteAdminister(@RequestBody AdministerDO administerDO){
return ResponseData.generateCreatedResponse(0,administerService.deleteAdminister(administerDO));
}
} }
package com.laowu.controller;
import com.laowu.model.BusinessDictDO;
import com.laowu.service.BusinessDictService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
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 2023-02-20
*/
@RestController
@Api(tags = "经营范围")
@RequestMapping("/businessDict")
public class BusinessDictController {
@Autowired
private BusinessDictService businessDictService;
@PostMapping("addBusiness")
@ApiOperation("新增经营范围 business")
public ResponseVO addBusiness(@RequestBody BusinessDictDO businessDictDO){
return ResponseData.generateCreatedResponse(0,businessDictService.addBusiness(businessDictDO));
}
@PostMapping("updateBusiness")
@ApiOperation("修改经营范围 id business")
public ResponseVO updateBusiness(@RequestBody BusinessDictDO businessDictDO){
return ResponseData.generateCreatedResponse(0,businessDictService.updateBusiness(businessDictDO));
}
@PostMapping("deleteBusiness")
@ApiOperation("删除经营范围 id")
public ResponseVO deleteBusiness(@RequestBody BusinessDictDO businessDictDO){
return ResponseData.generateCreatedResponse(0,businessDictService.deleteBusiness(businessDictDO));
}
@PostMapping("queryBusiness")
@ApiOperation("查询经营范围")
public ResponseVO queryBusiness(){
return ResponseData.generateCreatedResponse(0,businessDictService.queryBusiness());
}
}
package com.laowu.controller;
import com.laowu.model.CollegeMajorMappingDO;
import com.laowu.service.CollegeMajorMappingService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 院校专业映射表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@RestController
@Api(tags = "院校专业映射表")
@RequestMapping("/collegeMajorMapping")
public class CollegeMajorMappingController {
@Autowired
private CollegeMajorMappingService collegeMajorMappingService;
@PostMapping("addCollegeMajor")
@ApiOperation("往院校添加专业 collegeId majorId studentCnt ")
public ResponseVO addCollegeMajor(@RequestBody CollegeMajorMappingDO collegeMajorMappingDO){
return ResponseData.generateCreatedResponse(0,collegeMajorMappingService.addCollegeMajor(collegeMajorMappingDO));
}
@PostMapping("updateCollegeMajor")
@ApiOperation("往院校修改专业 id collegeId majorId studentCnt ")
public ResponseVO updateCollegeMajor(@RequestBody CollegeMajorMappingDO collegeMajorMappingDO){
return ResponseData.generateCreatedResponse(0,collegeMajorMappingService.updateCollegeMajor(collegeMajorMappingDO));
}
@PostMapping("deleteCollegeMajor")
@ApiOperation("往院校删除专业 id ")
public ResponseVO deleteCollegeMajor(@RequestBody CollegeMajorMappingDO collegeMajorMappingDO){
return ResponseData.generateCreatedResponse(0,collegeMajorMappingService.deleteCollegeMajor(collegeMajorMappingDO));
}
}
...@@ -3,7 +3,10 @@ package com.laowu.controller; ...@@ -3,7 +3,10 @@ package com.laowu.controller;
import com.laowu.dto.company.AddCompanyDTO; import com.laowu.dto.company.AddCompanyDTO;
import com.laowu.dto.company.CompanyDTO; import com.laowu.dto.company.CompanyDTO;
import com.laowu.dto.company.DeleteCompanyDTO;
import com.laowu.dto.company.StationCompanyDTO;
import com.laowu.model.CompanyDictDO; import com.laowu.model.CompanyDictDO;
import com.laowu.model.WorkstationDictDO;
import com.laowu.service.CompanyDictService; import com.laowu.service.CompanyDictService;
import com.laowu.util.ResponseData; import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO; import com.laowu.util.ResponseVO;
...@@ -32,25 +35,25 @@ public class CompanyDictController { ...@@ -32,25 +35,25 @@ public class CompanyDictController {
private CompanyDictService companyDictService; private CompanyDictService companyDictService;
@PostMapping("/company") @PostMapping("/company")
@ApiOperation("获取所有企业 pageSize pageNum companyName cityId businessId") @ApiOperation("获取所有企业 pageSize pageNum province city county companyName")
public ResponseVO company(@RequestBody CompanyDTO companyDTO){ public ResponseVO company(@RequestBody CompanyDTO companyDTO){
return ResponseData.generateCreatedResponse(0,companyDictService.company(companyDTO)); return ResponseData.generateCreatedResponse(0,companyDictService.company(companyDTO));
} }
@PostMapping("deleteCompany") @PostMapping("deleteCompany")
@ApiOperation("删除某个企业 id") @ApiOperation("删除某个企业 userId module id")
public ResponseVO deleteCompany(@RequestBody CompanyDictDO companyDictDO){ public ResponseVO deleteCompany(@RequestBody DeleteCompanyDTO deleteCompanyDTO){
return ResponseData.generateCreatedResponse(0,companyDictService.deleteCompany(companyDictDO)); return ResponseData.generateCreatedResponse(0,companyDictService.deleteCompany(deleteCompanyDTO));
} }
@PostMapping("addCompany") @PostMapping("addCompany")
@ApiOperation("添加企业 companyName companyLogo cityId businessId companyCode account companyDesc companyPhotoDOS[ photo]") @ApiOperation("添加企业 userId module 模块 companyName companyLogo province city county positionId companyCode account companyDesc companyOrigin companyPhotoDOS[ photo] companyLabelDOS[ label] 关联业务 stationId")
public ResponseVO addCompany(@RequestBody AddCompanyDTO addCompanyDTO){ public ResponseVO addCompany(@RequestBody AddCompanyDTO addCompanyDTO){
return ResponseData.generateCreatedResponse(0,companyDictService.addCompany(addCompanyDTO)); return ResponseData.generateCreatedResponse(0,companyDictService.addCompany(addCompanyDTO));
} }
@PostMapping("updateCompany") @PostMapping("updateCompany")
@ApiOperation("更新企业 id companyName companyLogo cityId businessId companyCode account companyDesc companyPhotoDOS[ photo]") @ApiOperation("更新企业 userId module id companyName companyLogo province city county positionId companyCode account companyDesc companyOrigin companyPhotoDOS[ photo] companyLabelDOS[ label] 关联业务 stationId")
public ResponseVO updateCompany(@RequestBody AddCompanyDTO addCompanyDTO){ public ResponseVO updateCompany(@RequestBody AddCompanyDTO addCompanyDTO){
return ResponseData.generateCreatedResponse(0,companyDictService.updateCompany(addCompanyDTO)); return ResponseData.generateCreatedResponse(0,companyDictService.updateCompany(addCompanyDTO));
} }
...@@ -61,4 +64,16 @@ public class CompanyDictController { ...@@ -61,4 +64,16 @@ public class CompanyDictController {
return ResponseData.generateCreatedResponse(0,companyDictService.oneCompany(companyDictDO)); return ResponseData.generateCreatedResponse(0,companyDictService.oneCompany(companyDictDO));
} }
@PostMapping("totalCount")
@ApiOperation("查看某个省某个工作站的企业数 id 工作站id")
public ResponseVO totalCount(@RequestBody WorkstationDictDO workstationDictDO){
return ResponseData.generateCreatedResponse(0,companyDictService.totalCount(workstationDictDO));
}
@PostMapping("stationCompany")
@ApiOperation("查看工作站下的企业 id 工作站id")
public ResponseVO stationCompany(@RequestBody StationCompanyDTO stationCompanyDTO){
return ResponseData.generateCreatedResponse(0,companyDictService.stationCompany(stationCompanyDTO));
}
} }
package com.laowu.controller; package com.laowu.controller;
import com.laowu.service.CityDictService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
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.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -14,25 +8,15 @@ import io.swagger.annotations.Api; ...@@ -14,25 +8,15 @@ import io.swagger.annotations.Api;
/** /**
* <p> * <p>
* 城市字典表 前端控制器 * 企业标签 前端控制器
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-15 * @since 2023-03-22
*/ */
@RestController @RestController
@Api(tags = "城市字典表") @Api(tags = "企业标签")
@RequestMapping("/cityDict") @RequestMapping("/companyLabel")
public class CityDictController { public class CompanyLabelController {
@Autowired
private CityDictService cityDictService;
@PostMapping("allCities")
@ApiOperation("查询所有城市 ")
public ResponseVO allCities(){
return ResponseData.generateCreatedResponse(0,cityDictService.allCities());
}
} }
package com.laowu.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 2023-03-22
*/
@RestController
@Api(tags = "公司关联业务映射表")
@RequestMapping("/company-relate-work-do")
public class CompanyRelateWorkController {
}
package com.laowu.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 2023-03-23
*/
@RestController
@Api(tags = "公司更新日志表")
@RequestMapping("/company-update-history-do")
public class CompanyUpdateHistoryController {
}
package com.laowu.controller;
import com.laowu.dto.college.CollegeDTO;
import com.laowu.model.LibCollegeDO;
import com.laowu.service.LibCollegeService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 院校信息管理 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@RestController
@Api(tags = "院校信息管理")
@RequestMapping("/libColleges")
public class LibCollegeController {
@Autowired
private LibCollegeService libCollegeService;
@PostMapping("colleges")
@ApiOperation("查询院校列表 pageSize pageNum province city county status")
public ResponseVO colleges(@RequestBody CollegeDTO collegeDTO){
return ResponseData.generateCreatedResponse(0,libCollegeService.colleges(collegeDTO));
}
@PostMapping("deleteCollege")
@ApiOperation("删除院校 id")
public ResponseVO deleteCollege(@RequestBody LibCollegeDO libCollegeDO){
return ResponseData.generateCreatedResponse(0,libCollegeService.deleteCollege(libCollegeDO));
}
@PostMapping("oneCollege")
@ApiOperation("查看详情 id ")
public ResponseVO oneCollege(@RequestBody LibCollegeDO libCollegeDO){
return ResponseData.generateCreatedResponse(0,libCollegeService.oneCollege(libCollegeDO));
}
@PostMapping("addCollege")
@ApiOperation("添加院校 college province city county town collegeType collegeCode status")
public ResponseVO addCollege(@RequestBody LibCollegeDO libCollegeDO){
return ResponseData.generateCreatedResponse(0,libCollegeService.addCollege(libCollegeDO));
}
@PostMapping("updateCollege")
@ApiOperation("修改院校 id college province city county town collegeType collegeCode status")
public ResponseVO updateCollege(@RequestBody LibCollegeDO libCollegeDO){
return ResponseData.generateCreatedResponse(0,libCollegeService.updateCollege(libCollegeDO));
}
}
package com.laowu.controller;
import com.laowu.dto.geo.AllGeosDTO;
import com.laowu.model.LibGeoLocationDO;
import com.laowu.service.LibGeoLocationService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 地理位置字典表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-21
*/
@RestController
@Api(tags = "地理位置字典表")
@RequestMapping("/libGeoLocation")
public class LibGeoLocationController {
@Autowired
private LibGeoLocationService libGeoLocationService;
@PostMapping("provinces")
@ApiOperation("查询所有的省")
public ResponseVO provinces(){
return ResponseData.generateCreatedResponse(0,libGeoLocationService.provinces());
}
// @PostMapping("cities")
// @ApiOperation("通过省去查所有市 province")
// public ResponseVO cities(@RequestBody LibGeoLocationDO libGeoLocationDO){
// return ResponseData.generateCreatedResponse(0,libGeoLocationService.cities(libGeoLocationDO));
// }
//
// @PostMapping("county")
// @ApiOperation("通过省、市去查所有县 province,city")
// public ResponseVO county(@RequestBody LibGeoLocationDO libGeoLocationDO){
// return ResponseData.generateCreatedResponse(0,libGeoLocationService.county(libGeoLocationDO));
// }
@PostMapping("villages")
@ApiOperation("通过省市县镇 查村 province city county town")
public ResponseVO village(@RequestBody LibGeoLocationDO libGeoLocationDO){
return ResponseData.generateCreatedResponse(0,libGeoLocationService.villages(libGeoLocationDO));
}
@PostMapping("geo")
@ApiOperation("查看所有地理位置 pageSize pageNum province city county town")
public ResponseVO geo(@RequestBody AllGeosDTO allGeosDTO){
return ResponseData.generateCreatedResponse(0,libGeoLocationService.geo(allGeosDTO));
}
@PostMapping("addGeo")
@ApiOperation("添加地理位置/添加村 province city county town village")
public ResponseVO addGeo(@RequestBody LibGeoLocationDO libGeoLocationDO){
return ResponseData.generateCreatedResponse(0,libGeoLocationService.addGeo(libGeoLocationDO));
}
@PostMapping("updateGeo")
@ApiOperation("修改地理位置 id province city county town village")
public ResponseVO updateGeo(@RequestBody LibGeoLocationDO libGeoLocationDO){
return ResponseData.generateCreatedResponse(0,libGeoLocationService.updateGeo(libGeoLocationDO));
}
@PostMapping("deleteGeo")
@ApiOperation("删除地理位置 id ")
public ResponseVO deleteGeo(@RequestBody LibGeoLocationDO libGeoLocationDO){
return ResponseData.generateCreatedResponse(0,libGeoLocationService.deleteGeo(libGeoLocationDO));
}
}
package com.laowu.controller;
import com.laowu.model.LibJobSortDO;
import com.laowu.service.LibJobSortService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 职业分类信息管理 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-24
*/
@RestController
@Api(tags = "职业分类信息管理")
@RequestMapping("/jobSort")
public class LibJobSortController {
@Autowired
private LibJobSortService libJobSortService;
@PostMapping("sorts")
@ApiOperation("查看所有的职业分类")
public ResponseVO sorts(){
return ResponseData.generateCreatedResponse(0,libJobSortService.sorts());
}
@PostMapping("addSort")
@ApiOperation("添加分类 jobName sortCode sort parentId")
public ResponseVO addSort(@RequestBody LibJobSortDO libJobSortDO){
return ResponseData.generateCreatedResponse(0,libJobSortService.addSort(libJobSortDO));
}
@PostMapping("updateSort")
@ApiOperation("修改分类 id jobName sortCode sort ")
public ResponseVO updateSort(@RequestBody LibJobSortDO libJobSortDO){
return ResponseData.generateCreatedResponse(0,libJobSortService.updateSort(libJobSortDO));
}
@PostMapping("deleteSort")
@ApiOperation("删除分类 id")
public ResponseVO deleteSort(@RequestBody LibJobSortDO libJobSortDO){
return ResponseData.generateCreatedResponse(0,libJobSortService.deleteSort(libJobSortDO));
}
}
package com.laowu.controller;
import com.laowu.dto.major.AllMajorDTO;
import com.laowu.model.LibMajorDO;
import com.laowu.service.LibMajorService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
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 2023-03-23
*/
@RestController
@Api(tags = "专业字典表")
@RequestMapping("/libMajor")
public class LibMajorController {
@Autowired
private LibMajorService libMajorService;
@PostMapping("allMajor")
@ApiOperation("查询所有专业 pageSize pageNum major collegeType")
public ResponseVO allMajor(@RequestBody AllMajorDTO allMajorDTO) {
return ResponseData.generateCreatedResponse(0, libMajorService.allMajor(allMajorDTO));
}
@PostMapping("addMajor")
@ApiOperation("添加专业 collegeType major majorCode")
public ResponseVO addMajor(@RequestBody LibMajorDO libMajorDO){
return ResponseData.generateCreatedResponse(0,libMajorService.addMajor(libMajorDO));
}
@PostMapping("updateMajor")
@ApiOperation("修改专业 id collegeType major majorCode")
public ResponseVO updateMajor(@RequestBody LibMajorDO libMajorDO){
return ResponseData.generateCreatedResponse(0,libMajorService.updateMajor(libMajorDO));
}
@PostMapping("deleteMajor")
@ApiOperation("删除专业 id")
public ResponseVO deleteMajor(@RequestBody LibMajorDO libMajorDO){
return ResponseData.generateCreatedResponse(0,libMajorService.deleteMajor(libMajorDO));
}
}
package com.laowu.controller;
import com.laowu.dto.provider.ProvidersDTO;
import com.laowu.model.LibServiceProviderDO;
import com.laowu.service.LibServiceProviderService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 服务商信息字典表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-24
*/
@RestController
@Api(tags = "服务商信息字典表")
@RequestMapping("/serviceProvider")
public class LibServiceProviderController {
@Autowired
private LibServiceProviderService libServiceProviderService;
@PostMapping("providers")
@ApiOperation("查看所有服务商 pageSize pageNum province city county serviceProvider ")
public ResponseVO providers(@RequestBody ProvidersDTO providersDTO){
return ResponseData.generateCreatedResponse(0,libServiceProviderService.providers(providersDTO));
}
@PostMapping("addProvider")
@ApiOperation("新增服务商 province city county serviceProvider socialCreditCode")
public ResponseVO addProvider(@RequestBody LibServiceProviderDO libServiceProviderDO){
return ResponseData.generateCreatedResponse(0,libServiceProviderService.addProvider(libServiceProviderDO));
}
@PostMapping("deleteProvider")
@ApiOperation("新增服务商 id")
public ResponseVO deleteProvider(@RequestBody LibServiceProviderDO libServiceProviderDO){
return ResponseData.generateCreatedResponse(0,libServiceProviderService.deleteProvider(libServiceProviderDO));
}
@PostMapping("updateProvider")
@ApiOperation("新增服务商 id province city county serviceProvider socialCreditCode")
public ResponseVO updateProvider(@RequestBody LibServiceProviderDO libServiceProviderDO){
return ResponseData.generateCreatedResponse(0,libServiceProviderService.updateProvider(libServiceProviderDO));
}
}
package com.laowu.controller;
import com.laowu.model.MemberCollegeMappingDO;
import com.laowu.service.MemberCollegeMappingService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
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 2023-04-04
*/
@RestController
@Api(tags = "学员-学校映射表")
@RequestMapping("/memberCollege")
public class MemberCollegeMappingController {
@Autowired
private MemberCollegeMappingService memberCollegeMappingService;
@PostMapping("addCollege")
@ApiOperation("添加院校信息 schoolType collegeId memberId startDate endDate majorId rank educationType")
public ResponseVO addCollege(@RequestBody MemberCollegeMappingDO memberCollegeMappingDO){
return ResponseData.generateCreatedResponse(0,memberCollegeMappingService.addCollege(memberCollegeMappingDO));
}
@PostMapping("updateCollege")
@ApiOperation("修改院校 id schoolType collegeId memberId startDate endDate majorId rank educationType")
public ResponseVO updateCollege(@RequestBody MemberCollegeMappingDO memberCollegeMappingDO){
return ResponseData.generateCreatedResponse(0,memberCollegeMappingService.updateCollege(memberCollegeMappingDO));
}
@PostMapping("deleteCollege")
@ApiOperation("删除院校 id")
public ResponseVO deleteCollege(@RequestBody MemberCollegeMappingDO memberCollegeMappingDO){
return ResponseData.generateCreatedResponse(0,memberCollegeMappingService.deleteCollege(memberCollegeMappingDO));
}
}
package com.laowu.controller;
import com.laowu.dto.member.AddMemberDTO;
import com.laowu.dto.member.AllMembersDTO;
import com.laowu.dto.member.UpdateMemberDTO;
import com.laowu.model.MemberDictDO;
import com.laowu.service.MemberDictService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 自然人表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@RestController
@Api(tags = "自然人表")
@RequestMapping("/memberDict")
public class MemberDictController {
@Autowired
private MemberDictService memberDictService;
@PostMapping("allMembers")
@ApiOperation("查询所有自然人 pageSize pageNum province city county status userName")
public ResponseVO allMembers(@RequestBody AllMembersDTO allMembersDTO){
return ResponseData.generateCreatedResponse(0,memberDictService.allMembers(allMembersDTO));
}
@PostMapping("deleteMember")
@ApiOperation("删除自然人 id userId module")
public ResponseVO deleteMember(@RequestBody AddMemberDTO addMemberDTO){
return ResponseData.generateCreatedResponse(0,memberDictService.deleteMember(addMemberDTO));
}
@PostMapping("addMember")
@ApiOperation("添加自然人 userId module userName status 学生/社会 telephone idCardType idCard province city county address education" +
"isPoor isMigration isParty jobStatus stationId")
public ResponseVO addMember(@RequestBody AddMemberDTO addMemberDTO){
return ResponseData.generateCreatedResponse(0,memberDictService.addMember(addMemberDTO));
}
@PostMapping("oneMember")
@ApiOperation("查看详情 id 人员id")
public ResponseVO oneMember(@RequestBody MemberDictDO memberDictDO){
return ResponseData.generateCreatedResponse(0,memberDictService.oneMember(memberDictDO));
}
@PostMapping("updateMember")
@ApiOperation("修改自然人 id userId module userName status 学生/社会 telephone idCardType idCard province city county address education" +
"isPoor isMigration isParty jobStatus infoOrigin")
public ResponseVO updateMember(@RequestBody UpdateMemberDTO updateMemberDTO){
return ResponseData.generateCreatedResponse(0,memberDictService.updateMember(updateMemberDTO));
}
}
package com.laowu.controller;
import com.laowu.model.MemberJobInfoDO;
import com.laowu.service.MemberJobInfoService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@RestController
@Api(tags = "自然人就业信息表")
@RequestMapping("/memberJobInfo")
public class MemberJobInfoController {
@Autowired
private MemberJobInfoService memberJobInfoService;
@PostMapping("addJob")
@ApiOperation("添加工作 memberId jobSource jobType job province city town address companyId startDate endDate jobMonth salary ")
public ResponseVO addJob(@RequestBody MemberJobInfoDO memberJobInfoDO){
return ResponseData.generateCreatedResponse(0,memberJobInfoService.addJob(memberJobInfoDO));
}
@PostMapping("updateJob")
@ApiOperation("修改工作 id memberId jobSource jobType job province city town address companyId startDate endDate jobMonth salary ")
public ResponseVO updateJob(@RequestBody MemberJobInfoDO memberJobInfoDO){
return ResponseData.generateCreatedResponse(0,memberJobInfoService.updateJob(memberJobInfoDO));
}
@PostMapping("deleteJob")
@ApiOperation("删除工作 id ")
public ResponseVO deleteJob(@RequestBody MemberJobInfoDO memberJobInfoDO){
return ResponseData.generateCreatedResponse(0,memberJobInfoService.deleteJob(memberJobInfoDO));
}
}
package com.laowu.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 2023-03-29
*/
@RestController
@Api(tags = "团队成员映射表")
@RequestMapping("/member-team-mapping-do")
public class MemberTeamMappingController {
}
package com.laowu.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 2023-04-07
*/
@RestController
@Api(tags = "公司更新日志表")
@RequestMapping("/member-update-history-do")
public class MemberUpdateHistoryController {
}
package com.laowu.controller;
import com.laowu.dto.place.AddPlaceDTO;
import com.laowu.model.PlaceDictDO;
import com.laowu.service.PlaceDictService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 地区字典表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-02-15
*/
@RestController
@Api(tags = "地区字典表")
@RequestMapping("/placeDict")
public class PlaceDictController {
@Autowired
private PlaceDictService placeDictService;
@PostMapping("allPlaces")
@ApiOperation("查看所有工作地点")
public ResponseVO allPlaces(){
return ResponseData.generateCreatedResponse(0,placeDictService.allPlaces());
}
@PostMapping("deletePlace")
@ApiOperation("删除工作地点 id")
public ResponseVO deletePlace(@RequestBody PlaceDictDO placeDictDO){
return ResponseData.generateCreatedResponse(0,placeDictService.deletePlace(placeDictDO));
}
@PostMapping("addPlace")
@ApiOperation("添加工作地点 place secondTitle desc cityId placeImgsDOS[img]")
public ResponseVO addPlace(@RequestBody AddPlaceDTO addPlaceDTO){
return ResponseData.generateCreatedResponse(0,placeDictService.addPlace(addPlaceDTO));
}
@PostMapping("updatePlace")
@ApiOperation("修改工作地点 id place secondTitle desc cityId placeImgsDOS[img]")
public ResponseVO updatePlace(@RequestBody AddPlaceDTO addPlaceDTO){
return ResponseData.generateCreatedResponse(0,placeDictService.updatePlace(addPlaceDTO));
}
@PostMapping("onePlace")
@ApiOperation("一个地点详情 id")
public ResponseVO onePlace(@RequestBody PlaceDictDO placeDictDO){
return ResponseData.generateCreatedResponse(0,placeDictService.onePlace(placeDictDO));
}
}
package com.laowu.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 2023-04-06
*/
@RestController
@Api(tags = "公司更新日志表")
@RequestMapping("/position-alone-history-do")
public class PositionAloneHistoryController {
}
package com.laowu.controller;
import com.laowu.dto.position.AddAloneDTO;
import com.laowu.dto.position.AloneRequirementsDTO;
import com.laowu.model.PositionAloneInfoDO;
import com.laowu.service.PositionAloneInfoService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 独立职位需求信息 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@RestController
@Api(tags = "独立职位需求信息")
@RequestMapping("/positionAloneInfo")
public class PositionAloneInfoController {
@Autowired
private PositionAloneInfoService positionAloneInfoService;
@PostMapping("aloneRequirements")
@ApiOperation("独立职位需求管理 pageSize pageNum positionStatus province city county positionId positionName")
public ResponseVO aloneRequirements(@RequestBody AloneRequirementsDTO aloneRequirementsDTO){
return ResponseData.generateCreatedResponse(0,positionAloneInfoService.aloneRequirements(aloneRequirementsDTO));
}
@PostMapping("deleteRequestment")
@ApiOperation("删除独立职位需求管理 id")
public ResponseVO deleteRequestment(@RequestBody AddAloneDTO addAloneDTO){
return ResponseData.generateCreatedResponse(0,positionAloneInfoService.deleteRequestment(addAloneDTO));
}
@PostMapping("addRequirement")
@ApiOperation("添加独立职位需求管理 {companyId positionStatus requireCount positionName recruitType jobSortId" +
"positionId province city county address jobId positionDesc positionRequire startSalary endSalary infoOrigin}")
public ResponseVO addRequirement(@RequestBody AddAloneDTO addAloneDTO){
return ResponseData.generateCreatedResponse(0,positionAloneInfoService.addRequirement(addAloneDTO));
}
@PostMapping("updateRequirement")
@ApiOperation("修改独立需求管理 {id companyId positionStatus requireCounts positionName recruitType jobSortId" +
"positionId jobId positionDesc positionRequire startSalary endSalary infoOrigin }")
public ResponseVO updateRequirement(@RequestBody AddAloneDTO addAloneDTO){
return ResponseData.generateCreatedResponse(0,positionAloneInfoService.updateRequirement(addAloneDTO));
}
@PostMapping("oneAloneRequirement")
@ApiOperation("查看某一个独立需求详情 id")
public ResponseVO oneAloneRequirement(@RequestBody PositionAloneInfoDO positionAloneInfoDO){
return ResponseData.generateCreatedResponse(0,positionAloneInfoService.oneAloneRequirement(positionAloneInfoDO));
}
}
package com.laowu.controller; package com.laowu.controller;
import com.laowu.model.PositionDictDO;
import com.laowu.service.PositionDictService; import com.laowu.service.PositionDictService;
import com.laowu.util.ResponseData; import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO; import com.laowu.util.ResponseVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; 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.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -20,7 +23,7 @@ import io.swagger.annotations.Api; ...@@ -20,7 +23,7 @@ import io.swagger.annotations.Api;
* @since 2023-02-15 * @since 2023-02-15
*/ */
@RestController @RestController
@Api(tags = "职位类别") @Api(tags = "职位范围信息管理")
@RequestMapping("/positionDict") @RequestMapping("/positionDict")
public class PositionDictController { public class PositionDictController {
...@@ -32,4 +35,23 @@ public class PositionDictController { ...@@ -32,4 +35,23 @@ public class PositionDictController {
return ResponseData.generateCreatedResponse(0,positionDictService.allPosition()); return ResponseData.generateCreatedResponse(0,positionDictService.allPosition());
} }
@PostMapping("addPosition")
@ApiOperation("新增职位 parentId positionType positionCode")
public ResponseVO addPosition(@RequestBody PositionDictDO positionDictDO){
return ResponseData.generateCreatedResponse(0,positionDictService.addPosition(positionDictDO));
}
@PostMapping("updatePosition")
@ApiOperation("修改职位 id parentId positionType positionCode ")
public ResponseVO updatePosition(@RequestBody PositionDictDO positionDictDO){
return ResponseData.generateCreatedResponse(0,positionDictService.updatePosition(positionDictDO));
}
@PostMapping("deletePosition")
@ApiOperation("删除职位 id")
public ResponseVO deletePosition(@RequestBody PositionDictDO positionDictDO){
return ResponseData.generateCreatedResponse(0,positionDictService.deletePosition(positionDictDO));
}
} }
package com.laowu.controller;
import com.laowu.dto.position.UpdateItemInfoDTO;
import com.laowu.model.PositionItemJobMappingDO;
import com.laowu.service.PositionItemInfoService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 项目职位需求 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@RestController
@Api(tags = "项目职位需求")
@RequestMapping("/positionItemInfo")
public class PositionItemInfoController {
@Autowired
private PositionItemInfoService positionItemInfoService;
@PostMapping("updateItemInfo")
@ApiOperation("编辑职位信息 id positionName positionStatus requireCounts positionId startSalary endSalary address jobIds[] 职位分类 ")
public ResponseVO updateItemInfo(@RequestBody UpdateItemInfoDTO updateItemInfoDTO){
return ResponseData.generateCreatedResponse(0,positionItemInfoService.updateItemInfo(updateItemInfoDTO));
}
@PostMapping("deleteItemInfo")
@ApiOperation("删除职位信息 id")
public ResponseVO deleteItemInfo(@RequestBody PositionItemJobMappingDO positionItemJobMappingDO){
return ResponseData.generateCreatedResponse(0,positionItemInfoService.deleteItemInfo(positionItemJobMappingDO));
}
@PostMapping("addItemInfo")
@ApiOperation("编辑职位信息 positionRequireId positionName positionStatus requireCount positionId startSalary endSalary address jobIds[] 职位分类 ")
public ResponseVO addItemInfo(@RequestBody UpdateItemInfoDTO updateItemInfoDTO){
return ResponseData.generateCreatedResponse(0,positionItemInfoService.addItemInfo(updateItemInfoDTO));
}
}
package com.laowu.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 2023-03-28
*/
@RestController
@Api(tags = "职位信息分类映射表")
@RequestMapping("/position-item-job-mapping-do")
public class PositionItemJobMappingController {
}
package com.laowu.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 2023-04-06
*/
@RestController
@Api(tags = "公司更新日志表")
@RequestMapping("/position-require-history-do")
public class PositionRequireHistoryController {
}
package com.laowu.controller;
import com.laowu.dto.position.AddRequirementsDTO;
import com.laowu.dto.position.RequirementsDTO;
import com.laowu.model.PositionRequireItemDO;
import com.laowu.service.PositionRequireItemService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 项目职位需求信息 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@RestController
@Api(tags = "项目职位需求信息")
@RequestMapping("/positionRequireItem")
public class PositionRequireItemController {
@Autowired
private PositionRequireItemService positionRequireItemService;
@PostMapping("requirements")
@ApiOperation("项目职位需求管理 pageSize pageNum itemStatus province city county positionId itemName ")
public ResponseVO requirements(@RequestBody RequirementsDTO requirementsDTO) {
return ResponseData.generateCreatedResponse(0, positionRequireItemService.requirements(requirementsDTO));
}
@PostMapping("deleteRequirements")
@ApiOperation("删除项目需求 id userId module")
public ResponseVO deleteRequirements(@RequestBody AddRequirementsDTO addRequirementsDTO) {
return ResponseData.generateCreatedResponse(0, positionRequireItemService.deleteRequirements(addRequirementsDTO));
}
@PostMapping("updateRequirements")
@ApiOperation("编辑基本信息、关联信息 id itemName itemStatus companyId jobId infoOrigin province city county")
public ResponseVO updateRequirements(@RequestBody AddRequirementsDTO addRequirementsDTO) {
return ResponseData.generateCreatedResponse(0, positionRequireItemService.updateRequirements(addRequirementsDTO));
}
@PostMapping("addRequirements")
@ApiOperation("添加需求 id userId module itemName itemStatus companyId jobId infoOrigin province city county")
public ResponseVO addRequirements(@RequestBody AddRequirementsDTO addRequirementsDTO) {
return ResponseData.generateCreatedResponse(0, positionRequireItemService.addRequirements(addRequirementsDTO));
}
@PostMapping("oneRequirement")
@ApiOperation("查看某个需求详情 id")
public ResponseVO oneRequirement(@RequestBody PositionRequireItemDO positionRequireItemDO){
return ResponseData.generateCreatedResponse(0,positionRequireItemService.oneRequirement(positionRequireItemDO));
}
}
package com.laowu.controller;
import com.laowu.dto.team.*;
import com.laowu.model.LibGeoLocationDO;
import com.laowu.model.TeamDictDO;
import com.laowu.service.TeamDictService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 团队字典表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@RestController
@Api(tags = "团队字典表")
@RequestMapping("/teamDict")
public class TeamDictController {
@Autowired
private TeamDictService teamDictService;
@PostMapping("teams")
@ApiOperation("工作站下的团队 pageSize pageNum stationId teamName")
public ResponseVO teams(@RequestBody TeamsDTO teamsDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.teams(teamsDTO));
}
@PostMapping("totalTeams")
@ApiOperation("总团队数 stationId")
public ResponseVO totalTeams(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.totalTeams(teamDictDO));
}
@PostMapping("deleteTeam")
@ApiOperation("删除团队 id")
public ResponseVO deleteTeam(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.deleteTeam(teamDictDO));
}
@PostMapping("addTeam")
@ApiOperation("添加团队 stationId teamName comment memberId")
public ResponseVO addTeam(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.addTeam(teamDictDO));
}
@PostMapping("updateTeam")
@ApiOperation("id stationId teamName comment memberId")
public ResponseVO updateTeam(@RequestBody TeamDictDO teamDict){
return ResponseData.generateCreatedResponse(0,teamDictService.updateTeam(teamDict));
}
@PostMapping("teamMember")
@ApiOperation("查看团队成员信息 teamId")
public ResponseVO teamMember(@RequestBody TeamMemberDTO teamMemberDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.teamMember(teamMemberDTO));
}
@PostMapping("oneTeamInfo")
@ApiOperation("查看一个团队详情 id")
public ResponseVO oneTeamInfo(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.oneTeamInfo(teamDictDO));
}
@PostMapping("noTeamMembers")
@ApiOperation("查看没有团队的成员信息 pageSize pageNum teamId userName")
public ResponseVO noTeamMembers(@RequestBody TeamMemberDTO teamMemberDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.noTeamMembers(teamMemberDTO));
}
@PostMapping("updateTeamMembers")
@ApiOperation("编辑团队信息 teamId memberIds[] ")
public ResponseVO updateMembers(@RequestBody UpdateTeamMembersDTO updateTeamMembersDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.updateMembers(updateTeamMembersDTO));
}
@PostMapping("leaderMembers")
@ApiOperation("团队带头人 stationId pageSize pageNum ")
public ResponseVO leaderMembers(@RequestBody LeaderMembersDTO leaderMembersDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.leaderMembers(leaderMembersDTO));
}
@PostMapping("leaderMemberCounts")
@ApiOperation("团队带头人数 stationId")
public ResponseVO leaderMemberCounts(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.leaderMemberCounts(teamDictDO));
}
@PostMapping("provinceStationTeam")
@ApiOperation("省-工作站-团队 ")
public ResponseVO provinceStationTeam(){
return ResponseData.generateCreatedResponse(0,teamDictService.provinceStationTeam());
}
@PostMapping("memberManagement")
@ApiOperation("人员管理 pageSize pageNum teamId stationId province jobStatus userName")
public ResponseVO memberManagement (@RequestBody MemberManagementDTO memberManagementDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.memberManagement(memberManagementDTO));
}
@PostMapping("memberManagementCount")
@ApiOperation("人员管理 人数 teamId stationId province jobStatus userName")
public ResponseVO memberManagementCount(@RequestBody MemberManagementDTO memberManagementDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.memberManagementCount(memberManagementDTO));
}
@PostMapping("homepage")
@ApiOperation("主页 province city county")
public ResponseVO homepage(@RequestBody LibGeoLocationDO libGeoLocationDO){
return ResponseData.generateCreatedResponse(0,teamDictService.homepage(libGeoLocationDO));
}
}
package com.laowu.controller;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 工作站站长映射表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@RestController
@Api(tags = "工作站站长映射表")
@RequestMapping("/workstationAdministers")
public class WorkstationAdministersController {
}
package com.laowu.controller;
import com.laowu.dto.station.StationAccountDTO;
import com.laowu.dto.station.StationsDTO;
import com.laowu.dto.station.UpdateAdministerDTO;
import com.laowu.model.AdministerDO;
import com.laowu.model.WorkstationDictDO;
import com.laowu.service.WorkstationDictService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 工作站 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@RestController
@Api(tags = "工作站")
@RequestMapping("/workstationDict")
public class WorkstationDictController {
@Autowired
private WorkstationDictService workstationDictService;
@PostMapping("stations")
@ApiOperation("工作站管理 pageSize pageNum province city county workstation")
public ResponseVO stations(@RequestBody StationsDTO stationsDTO){
return ResponseData.generateCreatedResponse(0,workstationDictService.stations(stationsDTO));
}
@PostMapping("deleteStation")
@ApiOperation("删除工作站 id")
public ResponseVO deleteStation(@RequestBody WorkstationDictDO workstationDictDO){
return ResponseData.generateCreatedResponse(0,workstationDictService.deleteStation(workstationDictDO));
}
@PostMapping("addStation")
@ApiOperation("添加工作站 workstationName province city county ")
public ResponseVO addStation(@RequestBody WorkstationDictDO workstationDictDO){
return ResponseData.generateCreatedResponse(0,workstationDictService.addStation(workstationDictDO));
}
@PostMapping("updateStation")
@ApiOperation("修改工作站 id workstationName province city county ")
public ResponseVO updateStation(@RequestBody WorkstationDictDO workstationDictDO){
return ResponseData.generateCreatedResponse(0,workstationDictService.updateStation(workstationDictDO));
}
@PostMapping("stationAccount")
@ApiOperation("工作站账户列表 pageSize pageNum workStation")
public ResponseVO stationAccount(@RequestBody StationAccountDTO stationAccountDTO){
return ResponseData.generateCreatedResponse(0,workstationDictService.stationAccount(stationAccountDTO));
}
@PostMapping("oneStationAccount")
@ApiOperation("查看某个工作站账户 id")
public ResponseVO oneStationAccount(@RequestBody AdministerDO administerDO){
return ResponseData.generateCreatedResponse(0,workstationDictService.oneStationAccount(administerDO));
}
@PostMapping("provinceStations")
@ApiOperation("以省为单位查看工作站 ")
public ResponseVO provinceStations(){
return ResponseData.generateCreatedResponse(0,workstationDictService.provinceStations());
}
@PostMapping("updateAdminister")
@ApiOperation("修改工作站 stationIds ")
public ResponseVO updateAdminister(@RequestBody UpdateAdministerDTO updateAdministerDTO){
return ResponseData.generateCreatedResponse(0,workstationDictService.updateAdminister(updateAdministerDTO));
}
@PostMapping("addAdminister")
@ApiOperation("添加工作站 stationIds ")
public ResponseVO addAdminister(@RequestBody UpdateAdministerDTO updateAdministerDTO){
return ResponseData.generateCreatedResponse(0,workstationDictService.addAdminister(updateAdministerDTO));
}
}
package com.laowu.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 2023-04-07
*/
@RestController
@Api(tags = "学员--工作站映射关系")
@RequestMapping("/workstation-member-mapping-do")
public class WorkstationMemberMappingController {
}
package com.laowu.controller;
import com.laowu.dto.station.RequiresDTO;
import com.laowu.dto.station.ShareDTO;
import com.laowu.model.WorkstationRequireMappingDO;
import com.laowu.service.WorkstationRequireMappingService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import io.swagger.annotations.Api;
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;
/**
* <p>
* 职位需求工作站映射表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-30
*/
@RestController
@Api(tags = "职位需求工作站映射表")
@RequestMapping("/workstationRequireMapping")
public class WorkstationRequireMappingController {
@Autowired
private WorkstationRequireMappingService workstationRequireMappingService;
@PostMapping("requires")
@ApiOperation("查看某个工作站的项目用工需求 stationId 工作站id pageSize pageNum itemStatus province city county positionId itemName ")
public ResponseVO requires(@RequestBody RequiresDTO requiresDTO){
return ResponseData.generateCreatedResponse(0,workstationRequireMappingService.requires(requiresDTO));
}
@PostMapping("deleteRequire")
@ApiOperation("删除需求 stationId requireId 需求id")
public ResponseVO deleteRequire(@RequestBody WorkstationRequireMappingDO workstationRequireMappingDO){
return ResponseData.generateCreatedResponse(0,workstationRequireMappingService.deleteRequire(workstationRequireMappingDO));
}
@PostMapping("share")
@ApiOperation("分配工作站 stationIds[] requireIds ")
public ResponseVO share(@RequestBody ShareDTO shareDTO){
return ResponseData.generateCreatedResponse(0,workstationRequireMappingService.share(shareDTO));
}
@PostMapping("requireStations")
@ApiOperation("查看需求已经在哪些工作站 requireId")
public ResponseVO requireStations(@RequestBody WorkstationRequireMappingDO workstationRequireMappingDO){
return ResponseData.generateCreatedResponse(0,workstationRequireMappingService.requireStations(workstationRequireMappingDO));
}
}
package com.laowu.dto.administer;
import lombok.Data;
@Data
public class AllDTO {
private String status;
private Integer pageSize;
private Integer pageNum;
}
package com.laowu.dto.college;
import lombok.Data;
@Data
public class CollegeDTO {
private Integer pageSize;
private Integer pageNum;
private String status;
private String province;
private String city;
private String county;
}
package com.laowu.dto.company; package com.laowu.dto.company;
import com.laowu.model.CompanyDictDO; import com.laowu.model.CompanyDictDO;
import com.laowu.model.CompanyLabelDO;
import com.laowu.model.CompanyPhotoDO; import com.laowu.model.CompanyPhotoDO;
import lombok.Data; import lombok.Data;
...@@ -9,6 +10,14 @@ import java.util.List; ...@@ -9,6 +10,14 @@ import java.util.List;
@Data @Data
public class AddCompanyDTO extends CompanyDictDO { public class AddCompanyDTO extends CompanyDictDO {
private Long userId;
private String module;
private List<CompanyPhotoDO> companyPhotoDOS; private List<CompanyPhotoDO> companyPhotoDOS;
private List<CompanyLabelDO> companyLabelDOS;
private Long stationId;
} }
...@@ -11,9 +11,13 @@ public class CompanyDTO { ...@@ -11,9 +11,13 @@ public class CompanyDTO {
private String companyName; private String companyName;
private Long cityId; private String province;
private Long businessId; private String city;
private String county;
private Long positionId;
private String companyLogo; private String companyLogo;
......
package com.laowu.dto.company;
import lombok.Data;
@Data
public class DeleteCompanyDTO {
private Long userId;
private Long id;
private String module;
}
package com.laowu.dto.company;
import lombok.Data;
@Data
public class StationCompanyDTO {
private Integer pageSize;
private Integer pageNum;
private Long stationId;
private String companyName;
private String province;
private String city;
private String county;
}
package com.laowu.dto.geo;
import lombok.Data;
@Data
public class AllGeosDTO {
private Integer pageSize;
private Integer pageNum;
private String province;
private String city;
private String county;
private String town;
}
package com.laowu.dto.job;
import lombok.Data;
@Data
public class RangeDTO {
private Integer pageSize;
private Integer pageNum;
private String sort;
}
package com.laowu.dto.major;
import lombok.Data;
@Data
public class AllMajorDTO {
private Integer pageSize;
private Integer pageNum;
private String major;
private String collegeType;
}
package com.laowu.dto.major;
import lombok.Data;
@Data
public class SortsDTO {
private Integer pageSize;
private Integer pageNum;
private String jobName;
}
package com.laowu.dto.member;
import com.laowu.model.MemberDictDO;
import lombok.Data;
@Data
public class AddMemberDTO extends MemberDictDO {
private Long userId;
private String module;
private Long stationId;
}
package com.laowu.dto.member;
import lombok.Data;
@Data
public class AllMembersDTO {
private Integer pageSize;
private Integer pageNum;
private String province;
private String city;
private String county;
private String status;
private String userName;
}
package com.laowu.dto.member;
import com.laowu.model.MemberDictDO;
import com.laowu.vo.member.MemberJobInfoVO;
import lombok.Data;
import java.util.List;
@Data
public class UpdateMemberDTO extends MemberDictDO {
private List<MemberJobInfoVO> memberJobInfoVOS;
private Long userId;
private String module;
}
package com.laowu.dto.place;
import com.laowu.model.PlaceDictDO;
import com.laowu.model.PlaceImgsDO;
import lombok.Data;
import java.util.List;
@Data
public class AddPlaceDTO extends PlaceDictDO {
private List<PlaceImgsDO> placeImgsDOS;
}
package com.laowu.dto.position;
import com.laowu.model.PositionAloneInfoDO;
import lombok.Data;
@Data
public class AddAloneDTO extends PositionAloneInfoDO {
private Long userId;
private String module;
}
package com.laowu.dto.position;
import com.laowu.model.PositionRequireItemDO;
import lombok.Data;
@Data
public class AddRequirementsDTO extends PositionRequireItemDO {
private Long userId;
private String module;
}
package com.laowu.dto.position;
import lombok.Data;
@Data
public class AloneRequirementsDTO {
private Integer pageSize;
private Integer pageNum;
private String positionStatus;
private String province;
private String city;
private String county;
private Long positionId;
private String positionName;
}
package com.laowu.dto.position;
import lombok.Data;
@Data
public class RequirementsDTO {
private Integer pageSize;
private Integer pageNum;
private String itemName;
private String itemStatus;
private String province;
private String city;
private String county;
private Long positionId;
}
package com.laowu.dto.position;
import com.laowu.model.PositionItemInfoDO;
import lombok.Data;
import java.util.List;
@Data
public class UpdateItemInfoDTO extends PositionItemInfoDO {
private List<Long> jobIds;
}
package com.laowu.dto.provider;
import lombok.Data;
@Data
public class ProvidersDTO {
private Integer pageSize;
private Integer pageNum;
private String province;
private String city;
private String county;
private String serviceProvider;
}
package com.laowu.dto.station;
import lombok.Data;
@Data
public class RequiresDTO {
private Integer pageSize;
private Integer pageNum;
private String itemName;
private String itemStatus;
private String province;
private String city;
private String county;
private Long positionId;
private Long stationId;
}
package com.laowu.dto.station;
import lombok.Data;
import java.util.List;
@Data
public class ShareDTO {
private List<Long> stationIds;
private List<Long> requireIds;
}
package com.laowu.dto.station;
import lombok.Data;
@Data
public class StationAccountDTO {
private Integer pageSize;
private Integer pageNum;
private String workStation;
}
package com.laowu.dto.station;
import lombok.Data;
@Data
public class StationsDTO {
private Integer pageSize;
private Integer pageNum;
private String province;
private String city;
private String county;
private String workstation;
}
package com.laowu.dto.station;
import com.laowu.model.AdministerDO;
import lombok.Data;
import java.util.List;
@Data
public class UpdateAdministerDTO extends AdministerDO {
private List<Long> stationIds;
}
package com.laowu.dto.team;
import lombok.Data;
@Data
public class LeaderMembersDTO {
private Integer pageSize;
private Integer pageNum;
private Long stationId;
private String userName;
}
package com.laowu.dto.team;
import lombok.Data;
@Data
public class MemberManagementDTO {
private Integer pageSize;
private Integer pageNum;
private Long teamId;
private Long stationId;
private String province;
private String jobStatus;
private String userName;
}
package com.laowu.dto.team;
import lombok.Data;
@Data
public class TeamMemberDTO {
private Integer pageSize;
private Integer pageNum;
private Long teamId;
private String userName;
}
package com.laowu.dto.team;
import lombok.Data;
@Data
public class TeamsDTO {
private Integer pageSize;
private Integer pageNum;
private Long stationId;
private String teamName;
}
package com.laowu.dto.team;
import lombok.Data;
import java.util.List;
@Data
public class UpdateTeamMembersDTO {
private Long teamId;
private List<Long> memberIds;
}
package com.laowu.mapper; package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.AdministerDO; import com.laowu.model.AdministerDO;
import com.laowu.vo.admin.PermissionsVO; import com.laowu.vo.admin.PermissionsVO;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
...@@ -20,5 +21,5 @@ public interface AdministerMapper extends BaseMapper<AdministerDO> { ...@@ -20,5 +21,5 @@ public interface AdministerMapper extends BaseMapper<AdministerDO> {
List<PermissionsVO> getPermissions(Long id); List<PermissionsVO> getPermissions(Long id);
IPage<AdministerDO> all(IPage page,String status);
} }
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.CollegeMajorMappingDO;
import com.laowu.vo.major.CollegeMajorsVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 院校专业映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Repository
public interface CollegeMajorMappingMapper extends BaseMapper<CollegeMajorMappingDO> {
/**
* 查看某个院校的专业信息
*/
List<CollegeMajorsVO> collegeMajors(Long collegeId);
}
package com.laowu.mapper; package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.CompanyDictDO; import com.laowu.model.CompanyDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.vo.company.CompanyVO; import com.laowu.vo.company.CompanyVO;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
...@@ -20,6 +20,16 @@ public interface CompanyDictMapper extends BaseMapper<CompanyDictDO> { ...@@ -20,6 +20,16 @@ public interface CompanyDictMapper extends BaseMapper<CompanyDictDO> {
/** /**
* 查询企业 * 查询企业
*/ */
IPage<CompanyVO> company(IPage page, String companyName, Long cityId,Long businessId); IPage<CompanyVO> company(IPage page, String companyName, String province,String city,String county);
/**
* 查看工作站下的企业数
*/
Integer stationCompanyCount(Long stationId);
/**
* 根据工作站查企业
*/
IPage<CompanyVO> stationCompany(IPage iPage,Long stationId, String companyName, String province,String city,String county);
} }
package com.laowu.mapper; package com.laowu.mapper;
import com.laowu.model.BusinessDictDO; import com.laowu.model.CompanyLabelDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
* <p> * <p>
* 经营范围 Mapper 接口 * 企业标签 Mapper 接口
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-20 * @since 2023-03-22
*/ */
@Repository @Repository
public interface BusinessDictMapper extends BaseMapper<BusinessDictDO> { public interface CompanyLabelMapper extends BaseMapper<CompanyLabelDO> {
} }
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.CompanyRelateWorkDO;
import com.laowu.vo.company.RelateWorkVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 公司关联业务映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-22
*/
@Repository
public interface CompanyRelateWorkMapper extends BaseMapper<CompanyRelateWorkDO> {
List<RelateWorkVO> relateWork(Long companyId);
List<Long> relateWorkId(Long companyId);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.CompanyUpdateHistoryDO;
import com.laowu.vo.company.CompanyUpdateHistoryVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 公司更新日志表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Repository
public interface CompanyUpdateHistoryMapper extends BaseMapper<CompanyUpdateHistoryDO> {
List<CompanyUpdateHistoryVO> companyUpdateHistory(Long companyId);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.LibCollegeDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.vo.college.CollegeVO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 院校信息管理 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Repository
public interface LibCollegeMapper extends BaseMapper<LibCollegeDO> {
IPage<CollegeVO> colleges(IPage iPage, String status,String province,String city,String county);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.LibGeoLocationDO;
import com.laowu.vo.geo.GeoVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 地理位置字典表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-21
*/
@Repository
public interface LibGeoLocationMapper extends BaseMapper<LibGeoLocationDO> {
List<String> provinces();
List<String> cities(String province);
List<String> county(String province,String city);
IPage<GeoVO> geo(IPage iPage, String province, String city, String county, String town);
}
package com.laowu.mapper; package com.laowu.mapper;
import com.laowu.model.PlaceDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.LibJobSortDO;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
* <p> * <p>
* 地区字典表 Mapper 接口 * 职业分类信息管理 Mapper 接口
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-15 * @since 2023-03-24
*/ */
@Repository @Repository
public interface PlaceDictMapper extends BaseMapper<PlaceDictDO> { public interface LibJobSortMapper extends BaseMapper<LibJobSortDO> {
} }
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.LibMajorDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.vo.major.AllMajorVO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 专业字典表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Repository
public interface LibMajorMapper extends BaseMapper<LibMajorDO> {
/**
* 模糊查询所有专业
*/
IPage<AllMajorVO> allMajor(IPage iPage, String collegeType, String major);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.LibServiceProviderDO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 服务商信息字典表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-24
*/
@Repository
public interface LibServiceProviderMapper extends BaseMapper<LibServiceProviderDO> {
IPage<LibServiceProviderDO> providers(IPage ipage,String province,String city,String county,String serviceProvider);
}
package com.laowu.mapper;
import com.laowu.model.MemberCollegeMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 学员-学校映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-04-04
*/
@Repository
public interface MemberCollegeMappingMapper extends BaseMapper<MemberCollegeMappingDO> {
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.MemberDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.vo.member.AllMembersVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 自然人表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Repository
public interface MemberDictMapper extends BaseMapper<MemberDictDO> {
/**
* 查询自然人
*/
IPage<AllMembersVO> allMembers(IPage pager, String province, String city, String county, String status, String userName);
/**
* 查看某个团队的人 返回id
*/
List<Long> members(Long teamId);
}
package com.laowu.mapper; package com.laowu.mapper;
import com.laowu.model.CityDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.MemberJobInfoDO;
import com.laowu.vo.job.RecentJobInfoVO;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
* <p> * <p>
* 城市字典表 Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-15 * @since 2023-03-23
*/ */
@Repository @Repository
public interface CityDictMapper extends BaseMapper<CityDictDO> { public interface MemberJobInfoMapper extends BaseMapper<MemberJobInfoDO> {
/** /**
* 通过cityId查询省-市 * 查看某人最近一次就业情况
*/ */
String getCityName(Long cityId); RecentJobInfoVO recentJobInfo(Long memberId);
} }
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.MemberDictDO;
import com.laowu.model.MemberTeamMappingDO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 团队成员映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@Repository
public interface MemberTeamMappingMapper extends BaseMapper<MemberTeamMappingDO> {
/**
* 查看某个团队的成员
*/
IPage<MemberDictDO> teamMembers(IPage page,Long teamId);
/**
* 查看还不在这个团队里的人
*/
IPage<MemberDictDO> noTeamMembers(IPage iPage,Long teamId,String userName);
}
package com.laowu.mapper;
import com.laowu.model.MemberUpdateHistoryDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 公司更新日志表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
@Repository
public interface MemberUpdateHistoryMapper extends BaseMapper<MemberUpdateHistoryDO> {
}
package com.laowu.mapper;
import com.laowu.model.PositionAloneHistoryDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.vo.position.AloneHistoryVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 公司更新日志表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-04-06
*/
@Repository
public interface PositionAloneHistoryMapper extends BaseMapper<PositionAloneHistoryDO> {
/**
* 查看某个独立职位信息的历史
*/
List<AloneHistoryVO> aloneHistory(Long aloneId);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.PositionAloneInfoDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.vo.position.AloneRequirementsVO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 独立职位需求信息 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@Repository
public interface PositionAloneInfoMapper extends BaseMapper<PositionAloneInfoDO> {
IPage<AloneRequirementsVO> aloneRequirements(IPage ipage,String positionStatus,String positionName,Long positionId,String province,String city,String county);
}
package com.laowu.mapper;
import com.laowu.model.PositionItemInfoDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.vo.position.PositionCountsVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 项目职位需求 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@Repository
public interface PositionItemInfoMapper extends BaseMapper<PositionItemInfoDO> {
/**
* 职位+预招人数
*/
List<PositionCountsVO> positionCounts(Long positionRequireId);
}
package com.laowu.mapper;
import com.laowu.model.LibJobSortDO;
import com.laowu.model.PositionItemJobMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 职位信息分类映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@Repository
public interface PositionItemJobMappingMapper extends BaseMapper<PositionItemJobMappingDO> {
/**
* 职位分类
*/
List<LibJobSortDO> positionSorts(Long requireId);
/**
* 职位分类 返回id
*/
List<Long> positionSortIds(Long itemInfoId);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.PositionRequireHistoryDO;
import com.laowu.vo.position.RequireHistoryVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 公司更新日志表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-04-06
*/
@Repository
public interface PositionRequireHistoryMapper extends BaseMapper<PositionRequireHistoryDO> {
/**
* 查看某个职位需求的历史
*/
List<RequireHistoryVO> requireHistory(Long requireId);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.PositionRequireItemDO;
import com.laowu.vo.position.RequirementsVO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 项目职位需求信息 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@Repository
public interface PositionRequireItemMapper extends BaseMapper<PositionRequireItemDO> {
IPage<RequirementsVO> requirements(IPage iPage, String itemName,String itemStatus,String province,String city,String county,Long positionId);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.TeamDictDO;
import com.laowu.vo.team.LeaderMembersVO;
import com.laowu.vo.team.MemberManagementVO;
import com.laowu.vo.team.TeamsVO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 团队字典表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@Repository
public interface TeamDictMapper extends BaseMapper<TeamDictDO> {
IPage<TeamsVO> teams(IPage iPage, Long stationId, String teamName);
/**
* 查看某个工作站的带头人总数
*/
Integer leaderMemberCounts(Long stationId);
/**
* 查看带头人的团队情况
*/
IPage<LeaderMembersVO> leaderMembers(IPage iPage, Long stationId, String userName);
/**
* 人员管理
*/
IPage<MemberManagementVO> memberManagement(IPage page, Long teamId, Long stationId, String province, String jobStatus,String userName);
/**
* 人员管理---人数
*/
Integer memberManagementCount(Long teamId, Long stationId, String province, String jobStatus);
/**
* 将组长为memberId的team职位空
*/
void noLeader(Long id);
}
package com.laowu.mapper;
import com.laowu.model.WorkstationAdministersDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.WorkstationDictDO;
import com.laowu.vo.station.AdministerVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 工作站站长映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@Repository
public interface WorkstationAdministersMapper extends BaseMapper<WorkstationAdministersDO> {
/**
* 根据工作站id找站长
*/
List<AdministerVO> administers(Long id);
/**
* 根据人去找工作站信息
*/
List<WorkstationDictDO> workstations(Long administerId);
/**
* 根据人去找工作站信息 返回ids
*/
List<Long> administerStations(Long administerId);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.WorkstationDictDO;
import com.laowu.vo.station.StationAccountVO;
import com.laowu.vo.station.StationsVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 工作站 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@Repository
public interface WorkstationDictMapper extends BaseMapper<WorkstationDictDO> {
IPage<StationsVO> stations(IPage page,String province, String city, String county, String workstationName);
/**
* 工作站账户
*/
IPage<StationAccountVO> stationAccount(IPage page, String workingstationName);
/**
* 查看有工作站的省
*/
List<String> provinces();
/**
* 工作站主页
*/
void homepage(Long stationId);
}
package com.laowu.mapper;
import com.laowu.model.WorkstationMemberMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 学员--工作站映射关系 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
@Repository
public interface WorkstationMemberMappingMapper extends BaseMapper<WorkstationMemberMappingDO> {
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.WorkstationRequireMappingDO;
import com.laowu.vo.position.RequireWorkstationsVO;
import com.laowu.vo.station.RequiresVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 职位需求工作站映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-30
*/
@Repository
public interface WorkstationRequireMappingMapper extends BaseMapper<WorkstationRequireMappingDO> {
/**
* 查案某个工作站下的需求
*/
IPage<RequiresVO> requires(IPage iPage, String itemName, String itemStatus, String province, String city, String county, Long positionId,Long stationId);
/**
* 查看某个需求已经存在于哪几个工作站了
*/
List<Long> requiresStations(Long requireId);
/**
* 查看某个职位需求关联的工作站
*/
List<RequireWorkstationsVO> requireWorkstations(Long requireId);
}
...@@ -29,5 +29,12 @@ public class AdministerDO extends BaseModel { ...@@ -29,5 +29,12 @@ public class AdministerDO extends BaseModel {
private String password; private String password;
private String userName;
private String telephone;
private String status;
private String remark;
} }
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 院校专业映射表
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("college_major_mapping")
public class CollegeMajorMappingDO 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;
/**
*
*/
private Integer studentCnt;
}
...@@ -30,35 +30,50 @@ public class CompanyDictDO extends BaseModel { ...@@ -30,35 +30,50 @@ public class CompanyDictDO extends BaseModel {
*/ */
private String companyName; private String companyName;
// /**
// * 企业logo
// */
// private String companyLogo;
/** /**
* 企业logo *
*/ */
private String companyLogo; private String province;
/** /**
* 地区id *
*/ */
private Long cityId; private String city;
/**
* 县
*/
private String county;
/** /**
* 经营范围id * 经营范围id
*/ */
private Long businessId; private Long positionId;
/** /**
* 企业代码 * 企业代码
*/ */
private String companyCode; private String companyCode;
/** // /**
* 主账号 // * 主账号
*/ // */
private String account; // private String account;
/** /**
* 企业简介 * 企业简介
*/ */
private String companyDesc; private String companyDesc;
/**
* 信息来源
*/
private String companyOrigin;
} }
...@@ -9,16 +9,16 @@ import lombok.EqualsAndHashCode; ...@@ -9,16 +9,16 @@ import lombok.EqualsAndHashCode;
/** /**
* <p> * <p>
* 城市字典表 * 企业标签
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-15 * @since 2023-03-22
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName("city_dict") @TableName("company_label")
public class CityDictDO extends BaseModel { public class CompanyLabelDO extends BaseModel {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -26,14 +26,14 @@ public class CityDictDO extends BaseModel { ...@@ -26,14 +26,14 @@ public class CityDictDO extends BaseModel {
private Long id; private Long id;
/** /**
* id * 公司id
*/ */
private Long parentId; private Long companyId;
/** /**
* 城市名 * 企业标签
*/ */
private String city; private String label;
} }
...@@ -9,23 +9,25 @@ import lombok.EqualsAndHashCode; ...@@ -9,23 +9,25 @@ import lombok.EqualsAndHashCode;
/** /**
* <p> * <p>
* 经营范围 * 公司关联业务映射表
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-20 * @since 2023-03-22
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName("business_dict") @TableName("company_relate_work")
public class BusinessDictDO extends BaseModel { public class CompanyRelateWorkDO extends BaseModel {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
private String business; private Long companyId;
private Long stationId;
} }
...@@ -9,16 +9,16 @@ import lombok.EqualsAndHashCode; ...@@ -9,16 +9,16 @@ import lombok.EqualsAndHashCode;
/** /**
* <p> * <p>
* 地区字典 * 公司更新日志
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-15 * @since 2023-03-23
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName("place_dict") @TableName("company_update_history")
public class PlaceDictDO extends BaseModel { public class CompanyUpdateHistoryDO extends BaseModel {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -26,24 +26,23 @@ public class PlaceDictDO extends BaseModel { ...@@ -26,24 +26,23 @@ public class PlaceDictDO extends BaseModel {
private Long id; private Long id;
/** /**
* 地点名称 * 企业id
*/ */
private String place; private Long companyId;
/** /**
* 副标题 * 修改人id
*/ */
private String secondTitle; private Long administerId;
/** /**
* 描述 * 操作
*/ */
private String placeDesc; private String opr;
/** /**
* 关联城市 * 模块
*/ */
private Long cityId; private String module;
} }
...@@ -52,9 +52,19 @@ public class JobDictDO extends BaseModel { ...@@ -52,9 +52,19 @@ public class JobDictDO extends BaseModel {
private String companyId; private String companyId;
/** /**
* 省
*/
private String province;
/**
* 市 * 市
*/ */
private Long cityId; private String city;
/**
* 县
*/
private String county;
/** /**
* 招聘类型 * 招聘类型
......
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 院校信息管理
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lib_college")
public class LibCollegeDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 院校名称
*/
private String college;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 县
*/
private String county;
/**
* 镇
*/
private String town;
/**
* 院校类型
*/
private String collegeType;
/**
* 院校编码
*/
private String collegeCode;
/**
* 启用状态
*/
private String status;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 地理位置字典表
* </p>
*
* @author Tuyp
* @since 2023-03-21
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lib_geo_location")
public class LibGeoLocationDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 县
*/
private String county;
/**
* 镇
*/
private String town;
/**
* 村
*/
private String village;
/**
* 排序
*/
private Integer orderNo;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* <p>
* 职业分类信息管理
* </p>
*
* @author Tuyp
* @since 2023-03-24
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lib_job_sort")
public class LibJobSortDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 职业名称
*/
private String jobName;
/**
* 职业分类代码
*/
private String sortCode;
/**
* 类别
*/
private String sort;
/**
* 父id
*/
private Long parentId;
/**
* 之类
*/
private List<LibJobSortDO> children;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 专业字典表
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lib_major")
public class LibMajorDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private String collegeType;
private String major;
private String majorCode;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 服务商信息字典表
* </p>
*
* @author Tuyp
* @since 2023-03-24
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lib_service_provider")
public class LibServiceProviderDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 服务商名称
*/
private String serviceProvider;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 县
*/
private String county;
/**
* 社会统一信用代码
*/
private String socialCreditCode;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 学员-学校映射表
* </p>
*
* @author Tuyp
* @since 2023-04-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_college_mapping")
public class MemberCollegeMappingDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 学校类型
*/
private String schoolType;
/**
* 成员id
*/
private Long memberId;
/**
* 院校id
*/
private Long collegeId;
/**
* 开始时间
*/
private String startDate;
/**
* 结束时间
*/
private String endDate;
/**
* 专业id
*/
private Long majorId;
/**
* 成绩排名
*/
private String rank;
/**
* 学历类型
*/
private String educationType;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 自然人表
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_dict")
public class MemberDictDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 姓名
*/
private String userName;
/**
* 学生/社会
*/
private String status;
/**
* 手机号码
*/
private String telephone;
/**
* 个人证件类型
*/
private String idCardType;
/**
* 个人证件
*/
private String idCard;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 县
*/
private String county;
/**
* 具体地址
*/
private String address;
/**
* 学历
*/
private String education;
/**
* 学历类型
*/
private String educationType;
/**
* 院校id
*/
private Long collegeId;
/**
* 开始时间
*/
private String startDate;
/**
* 结束时间
*/
private String endDate;
/**
* 专业id
*/
private Long majorId;
/**
* 排名
*/
private String rank;
/**
* 是否为脱贫劳动力
*/
private String isPoor;
/**
* 是否易迁户
*/
private String isMigration;
/**
* 是否党员
*/
private String isParty;
/**
* 就业状态
*/
private String jobStatus;
/**
* 信息来源
*/
private String infoOrigin;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_job_info")
public class MemberJobInfoDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 自然人id
*/
private Long memberId;
/**
* 就业来源
*/
private String jobSource;
/**
* 就业类型
*/
private String jobType;
/**
* 就业岗位
*/
private String job;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 县
*/
private String county;
/**
* 具体地址
*/
private String address;
/**
* 公司名称
*/
private Long companyId;
/**
* 开始时间
*/
private String startDate;
/**
* 结束实际上
*/
private String endDate;
/**
* 就业月数
*/
private String jobMonth;
/**
* 月均收入
*/
private String salary;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 团队成员映射表
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_team_mapping")
public class MemberTeamMappingDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private Long memberId;
private Long teamId;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 公司更新日志表
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_update_history")
public class MemberUpdateHistoryDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 企业id
*/
private Long memberId;
/**
* 修改人id
*/
private Long administerId;
/**
* 操作
*/
private String opr;
/**
* 模块
*/
private String module;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 公司更新日志表
* </p>
*
* @author Tuyp
* @since 2023-04-06
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("position_alone_history")
public class PositionAloneHistoryDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 职位需求id
*/
private Long requireId;
/**
* 修改人id
*/
private Long administerId;
/**
* 操作
*/
private String opr;
/**
* 模块
*/
private String module;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 独立职位需求信息
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("position_alone_info")
public class PositionAloneInfoDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 职位名称
*/
private String positionName;
/**
* 招聘状态
*/
private String positionStatus;
/**
* 企业id
*/
private Long companyId;
/**
* 预招人数
*/
private String requireCounts;
/**
* 招聘类型:社会/实习
*/
private String recruitType;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 县
*/
private String county;
private String address;
/**
* 职位分类id
*/
private Long jobSortId;
/**
* 职位范围id
*/
private Long positionId;
/**
* 职位id
*/
private String jobId;
/**
* 职位描述
*/
private String positionDesc;
/**
* 职位要求
*/
private String positionRequire;
/**
* 起薪
*/
private String startSalary;
/**
*
*/
private String endSalary;
/**
* 信息来源
*/
private String infoOrigin;
}
...@@ -7,6 +7,8 @@ import com.laowu.util.BaseModel; ...@@ -7,6 +7,8 @@ import com.laowu.util.BaseModel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import java.util.List;
/** /**
* <p> * <p>
* 职位类别 * 职位类别
...@@ -30,4 +32,6 @@ public class PositionDictDO extends BaseModel { ...@@ -30,4 +32,6 @@ public class PositionDictDO extends BaseModel {
private Long parentId; private Long parentId;
private String positionCode; private String positionCode;
private List<PositionDictDO> children;
} }
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 项目职位需求
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("position_item_info")
public class PositionItemInfoDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 项目职位需求id
*/
private Long positionRequireId;
/**
* 职位名称
*/
private String positionName;
/**
* 招聘状态
*/
private String positionStatus;
/**
* 预招人数
*/
private Integer requireCounts;
/**
* 职位范围id
*/
private Long positionId;
/**
* 起薪
*/
private String startSalary;
/**
* 止薪
*/
private String endSalary;
/**
* 地址
*/
private String address;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 职位信息分类映射表
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("position_item_job_mapping")
public class PositionItemJobMappingDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 职位需求id
*/
private Long itemInfoId;
/**
* 职位分类id
*/
private Long jobSortId;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 公司更新日志表
* </p>
*
* @author Tuyp
* @since 2023-04-06
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("position_require_history")
public class PositionRequireHistoryDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 职位需求id
*/
private Long requireId;
/**
* 修改人id
*/
private Long administerId;
/**
* 操作
*/
private String opr;
/**
* 模块
*/
private String module;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 项目职位需求信息
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("position_require_item")
public class PositionRequireItemDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 项目名称
*/
private String itemName;
/**
* 招聘状态
*/
private String itemStatus;
/**
* 企业名称
*/
private Long companyId;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 县
*/
private String county;
/**
* 职位id
*/
private String jobId;
/**
* 关联信息
*/
private String infoOrigin;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 团队字典表
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("team_dict")
public class TeamDictDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 工作站id
*/
private Long stationId;
/**
* 团队名称
*/
private String teamName;
/**
* 备注
*/
private String comment;
/**
* 团队带头人
*/
private Long memberId;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 工作站站长映射表
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("workstation_administers")
public class WorkstationAdministersDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private Long workstationId;
private Long administerId;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 工作站
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("workstation_dict")
public class WorkstationDictDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 工作站名称
*/
private String workstationName;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 县
*/
private String county;
private String comment;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 学员--工作站映射关系
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("workstation_member_mapping")
public class WorkstationMemberMappingDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private Long memberId;
private Long stationId;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 职位需求工作站映射表
* </p>
*
* @author Tuyp
* @since 2023-03-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("workstation_require_mapping")
public class WorkstationRequireMappingDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 工作站id
*/
private Long stationId;
/**
* 项目职位需求管理
*/
private Long requireId;
}
package com.laowu.service; package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.administer.AllDTO;
import com.laowu.model.AdministerDO; import com.laowu.model.AdministerDO;
import com.laowu.vo.admin.AdministerPermissionVO; import com.laowu.vo.admin.AdministerPermissionVO;
import com.laowu.vo.admin.LoginVO; import com.laowu.vo.admin.LoginVO;
...@@ -19,4 +21,11 @@ public interface AdministerService extends IService<AdministerDO> { ...@@ -19,4 +21,11 @@ public interface AdministerService extends IService<AdministerDO> {
AdministerPermissionVO getPermissions(); AdministerPermissionVO getPermissions();
IPage<AdministerDO> all(AllDTO allDTO);
String addAdminister(AdministerDO administerDO);
String updateAdminister(AdministerDO administerDO);
String deleteAdminister(AdministerDO administerDO);
} }
package com.laowu.service;
import com.laowu.model.CollegeMajorMappingDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 院校专业映射表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
public interface CollegeMajorMappingService extends IService<CollegeMajorMappingDO> {
String addCollegeMajor(CollegeMajorMappingDO collegeMajorMappingDO);
String updateCollegeMajor(CollegeMajorMappingDO collegeMajorMappingDO);
String deleteCollegeMajor(CollegeMajorMappingDO collegeMajorMappingDO);
}
...@@ -4,8 +4,12 @@ import com.baomidou.mybatisplus.core.metadata.IPage; ...@@ -4,8 +4,12 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.company.AddCompanyDTO; import com.laowu.dto.company.AddCompanyDTO;
import com.laowu.dto.company.CompanyDTO; import com.laowu.dto.company.CompanyDTO;
import com.laowu.dto.company.DeleteCompanyDTO;
import com.laowu.dto.company.StationCompanyDTO;
import com.laowu.model.CompanyDictDO; import com.laowu.model.CompanyDictDO;
import com.laowu.model.WorkstationDictDO;
import com.laowu.vo.company.CompanyVO; import com.laowu.vo.company.CompanyVO;
import com.laowu.vo.team.TotalTeamsVO;
/** /**
* <p> * <p>
...@@ -19,7 +23,7 @@ public interface CompanyDictService extends IService<CompanyDictDO> { ...@@ -19,7 +23,7 @@ public interface CompanyDictService extends IService<CompanyDictDO> {
IPage company(CompanyDTO companyDTO); IPage company(CompanyDTO companyDTO);
String deleteCompany(CompanyDictDO companyDictDO); String deleteCompany(DeleteCompanyDTO deleteCompanyDTO);
String addCompany(AddCompanyDTO addCompanyDTO); String addCompany(AddCompanyDTO addCompanyDTO);
...@@ -27,4 +31,7 @@ public interface CompanyDictService extends IService<CompanyDictDO> { ...@@ -27,4 +31,7 @@ public interface CompanyDictService extends IService<CompanyDictDO> {
CompanyVO oneCompany(CompanyDictDO companyDictDO); CompanyVO oneCompany(CompanyDictDO companyDictDO);
TotalTeamsVO totalCount(WorkstationDictDO workstationDictDO);
IPage stationCompany(StationCompanyDTO stationCompanyDTO);
} }
package com.laowu.service; package com.laowu.service;
import com.laowu.model.CityDictDO; import com.laowu.model.CompanyLabelDO;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.vo.city.AllCitiesVO;
import java.util.List;
/** /**
* <p> * <p>
* 城市字典表 服务类 * 企业标签 服务类
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-15 * @since 2023-03-22
*/ */
public interface CityDictService extends IService<CityDictDO> { public interface CompanyLabelService extends IService<CompanyLabelDO> {
List<AllCitiesVO> allCities();
} }
package com.laowu.service; package com.laowu.service;
import com.laowu.model.BusinessDictDO; import com.laowu.model.CompanyRelateWorkDO;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/** /**
* <p> * <p>
* 经营范围 服务类 * 公司关联业务映射表 服务类
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-20 * @since 2023-03-22
*/ */
public interface BusinessDictService extends IService<BusinessDictDO> { public interface CompanyRelateWorkService extends IService<CompanyRelateWorkDO> {
String addBusiness(BusinessDictDO businessDictDO);
String updateBusiness(BusinessDictDO businessDictDO);
String deleteBusiness(BusinessDictDO businessDictDO);
List<BusinessDictDO> queryBusiness();
} }
package com.laowu.service; package com.laowu.service;
import com.laowu.dto.place.AddPlaceDTO; import com.laowu.model.CompanyUpdateHistoryDO;
import com.laowu.model.PlaceDictDO;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.vo.place.AllPlacesVO;
import java.util.List;
/** /**
* <p> * <p>
* 地区字典表 服务类 * 公司更新日志表 服务类
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-15 * @since 2023-03-23
*/ */
public interface PlaceDictService extends IService<PlaceDictDO> { public interface CompanyUpdateHistoryService extends IService<CompanyUpdateHistoryDO> {
List<AllPlacesVO> allPlaces();
String deletePlace(PlaceDictDO placeDictDO);
String addPlace(AddPlaceDTO addPlaceDTO);
String updatePlace(AddPlaceDTO addPlaceDTO);
AllPlacesVO onePlace(PlaceDictDO placeDictDO);
} }
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.college.CollegeDTO;
import com.laowu.model.LibCollegeDO;
import com.laowu.vo.college.CollegeVO;
import com.laowu.vo.college.OneCollegeVO;
/**
* <p>
* 院校信息管理 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
public interface LibCollegeService extends IService<LibCollegeDO> {
IPage<CollegeVO> colleges(CollegeDTO collegeDTO);
String deleteCollege(LibCollegeDO libCollegeDO);
OneCollegeVO oneCollege(LibCollegeDO libCollegeDO);
String addCollege(LibCollegeDO libCollegeDO);
String updateCollege(LibCollegeDO libCollegeDO);
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.geo.AllGeosDTO;
import com.laowu.model.LibGeoLocationDO;
import com.laowu.vo.geo.ProvincesVO;
import java.util.List;
/**
* <p>
* 地理位置字典表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-21
*/
public interface LibGeoLocationService extends IService<LibGeoLocationDO> {
List<ProvincesVO> provinces();
List<String> cities(LibGeoLocationDO libGeoLocationDO);
List<String> county(LibGeoLocationDO libGeoLocationDO);
List<LibGeoLocationDO> villages(LibGeoLocationDO libGeoLocationDO);
IPage geo(AllGeosDTO allGeosDTO);
String addGeo(LibGeoLocationDO libGeoLocationDO);
String updateGeo(LibGeoLocationDO libGeoLocationDO);
String deleteGeo(LibGeoLocationDO libGeoLocationDO);
}
package com.laowu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.model.LibJobSortDO;
import java.util.List;
/**
* <p>
* 职业分类信息管理 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-24
*/
public interface LibJobSortService extends IService<LibJobSortDO> {
List<LibJobSortDO> sorts();
String addSort(LibJobSortDO libJobSortDO);
String updateSort(LibJobSortDO libJobSortDO);
String deleteSort(LibJobSortDO libJobSortDO);
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.dto.major.AllMajorDTO;
import com.laowu.model.LibMajorDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 专业字典表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
public interface LibMajorService extends IService<LibMajorDO> {
IPage allMajor(AllMajorDTO allMajorDTO);
String addMajor(LibMajorDO libMajorDO);
String updateMajor(LibMajorDO libMajorDO);
String deleteMajor(LibMajorDO libMajorDO);
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.dto.provider.ProvidersDTO;
import com.laowu.model.LibServiceProviderDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务商信息字典表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-24
*/
public interface LibServiceProviderService extends IService<LibServiceProviderDO> {
IPage<LibServiceProviderDO> providers(ProvidersDTO providersDTO);
String addProvider(LibServiceProviderDO libServiceProviderDO);
String deleteProvider(LibServiceProviderDO libServiceProviderDO);
String updateProvider(LibServiceProviderDO libServiceProviderDO);
}
package com.laowu.service;
import com.laowu.model.MemberCollegeMappingDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 学员-学校映射表 服务类
* </p>
*
* @author Tuyp
* @since 2023-04-04
*/
public interface MemberCollegeMappingService extends IService<MemberCollegeMappingDO> {
String addCollege(MemberCollegeMappingDO memberCollegeMappingDO);
String updateCollege(MemberCollegeMappingDO memberCollegeMappingDO);
String deleteCollege(MemberCollegeMappingDO memberCollegeMappingDO);
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.member.AddMemberDTO;
import com.laowu.dto.member.AllMembersDTO;
import com.laowu.dto.member.UpdateMemberDTO;
import com.laowu.model.MemberDictDO;
import com.laowu.vo.member.AllMembersVO;
import com.laowu.vo.member.OneMemberVO;
/**
* <p>
* 自然人表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
public interface MemberDictService extends IService<MemberDictDO> {
IPage<AllMembersVO> allMembers(AllMembersDTO allMembersDTO);
String deleteMember(AddMemberDTO addMemberDTO);
String addMember(AddMemberDTO addMemberDTO);
OneMemberVO oneMember(MemberDictDO memberDictDO);
String updateMember(UpdateMemberDTO updateMemberDTO);
}
package com.laowu.service;
import com.laowu.model.MemberJobInfoDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
public interface MemberJobInfoService extends IService<MemberJobInfoDO> {
String addJob(MemberJobInfoDO memberJobInfoDO);
String updateJob(MemberJobInfoDO memberJobInfoDO);
String deleteJob(MemberJobInfoDO memberJobInfoDO);
}
package com.laowu.service;
import com.laowu.model.MemberTeamMappingDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 团队成员映射表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
public interface MemberTeamMappingService extends IService<MemberTeamMappingDO> {
}
package com.laowu.service;
import com.laowu.model.MemberUpdateHistoryDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 公司更新日志表 服务类
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
public interface MemberUpdateHistoryService extends IService<MemberUpdateHistoryDO> {
}
package com.laowu.service;
import com.laowu.model.PositionAloneHistoryDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 公司更新日志表 服务类
* </p>
*
* @author Tuyp
* @since 2023-04-06
*/
public interface PositionAloneHistoryService extends IService<PositionAloneHistoryDO> {
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.position.AddAloneDTO;
import com.laowu.dto.position.AloneRequirementsDTO;
import com.laowu.model.PositionAloneInfoDO;
import com.laowu.vo.position.OneAloneRequirementVO;
/**
* <p>
* 独立职位需求信息 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
public interface PositionAloneInfoService extends IService<PositionAloneInfoDO> {
IPage aloneRequirements(AloneRequirementsDTO aloneRequirementsDTO);
String deleteRequestment(AddAloneDTO addAloneDTO);
String addRequirement(AddAloneDTO addAloneDTO);
String updateRequirement(AddAloneDTO addAloneDTO);
OneAloneRequirementVO oneAloneRequirement(PositionAloneInfoDO positionAloneInfoDO);
}
...@@ -2,7 +2,6 @@ package com.laowu.service; ...@@ -2,7 +2,6 @@ package com.laowu.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.model.PositionDictDO; import com.laowu.model.PositionDictDO;
import com.laowu.vo.job.AllPositionVO;
import java.util.List; import java.util.List;
...@@ -16,6 +15,12 @@ import java.util.List; ...@@ -16,6 +15,12 @@ import java.util.List;
*/ */
public interface PositionDictService extends IService<PositionDictDO> { public interface PositionDictService extends IService<PositionDictDO> {
List<AllPositionVO> allPosition(); List<PositionDictDO> allPosition();
String addPosition(PositionDictDO positionDictDO);
String updatePosition(PositionDictDO positionDict);
String deletePosition(PositionDictDO positionDict);
} }
package com.laowu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.position.UpdateItemInfoDTO;
import com.laowu.model.PositionItemInfoDO;
import com.laowu.model.PositionItemJobMappingDO;
/**
* <p>
* 项目职位需求 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
public interface PositionItemInfoService extends IService<PositionItemInfoDO> {
String updateItemInfo(UpdateItemInfoDTO updateItemInfoDTO);
String deleteItemInfo(PositionItemJobMappingDO positionItemJobMappingDO);
String addItemInfo(UpdateItemInfoDTO updateItemInfoDTO);
}
package com.laowu.service;
import com.laowu.model.PositionItemJobMappingDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 职位信息分类映射表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
public interface PositionItemJobMappingService extends IService<PositionItemJobMappingDO> {
}
package com.laowu.service;
import com.laowu.model.PositionRequireHistoryDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 公司更新日志表 服务类
* </p>
*
* @author Tuyp
* @since 2023-04-06
*/
public interface PositionRequireHistoryService extends IService<PositionRequireHistoryDO> {
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.position.AddRequirementsDTO;
import com.laowu.dto.position.RequirementsDTO;
import com.laowu.model.PositionRequireItemDO;
import com.laowu.vo.position.OneRequirementVO;
/**
* <p>
* 项目职位需求信息 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
public interface PositionRequireItemService extends IService<PositionRequireItemDO> {
IPage requirements(RequirementsDTO requirementsDTO);
String deleteRequirements(AddRequirementsDTO addRequirementsDTO);
String updateRequirements(AddRequirementsDTO addRequirementsDTO);
String addRequirements(AddRequirementsDTO addRequirementsDTO);
OneRequirementVO oneRequirement(PositionRequireItemDO positionRequireItemDO);
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.team.*;
import com.laowu.model.LibGeoLocationDO;
import com.laowu.model.MemberDictDO;
import com.laowu.model.TeamDictDO;
import com.laowu.vo.team.*;
import java.util.List;
/**
* <p>
* 团队字典表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
public interface TeamDictService extends IService<TeamDictDO> {
IPage<TeamsVO> teams(TeamsDTO teamsDTO);
TotalTeamsVO totalTeams(TeamDictDO teamDictDO);
String deleteTeam(TeamDictDO teamDictDO);
String addTeam(TeamDictDO teamDictDO);
String updateTeam(TeamDictDO teamDictDO);
IPage<MemberDictDO> teamMember(TeamMemberDTO teamMemberDTO);
OneTeamInfoVO oneTeamInfo(TeamDictDO teamDictDO);
IPage<MemberDictDO> noTeamMembers(TeamMemberDTO teamMemberDTO);
String updateMembers(UpdateTeamMembersDTO updateTeamMembersDTO);
IPage<LeaderMembersVO> leaderMembers(LeaderMembersDTO leaderMembersDTO);
TotalTeamsVO leaderMemberCounts(TeamDictDO teamDictDO);
List<ProvinceStationTeamVO> provinceStationTeam();
IPage<MemberManagementVO> memberManagement(MemberManagementDTO memberManagementDTO);
TotalTeamsVO memberManagementCount(MemberManagementDTO memberManagementDTO);
HomepageVO homepage(LibGeoLocationDO libGeoLocationDO);
}
package com.laowu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.model.WorkstationAdministersDO;
/**
* <p>
* 工作站站长映射表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
public interface WorkstationAdministersService extends IService<WorkstationAdministersDO> {
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.station.StationAccountDTO;
import com.laowu.dto.station.StationsDTO;
import com.laowu.dto.station.UpdateAdministerDTO;
import com.laowu.model.AdministerDO;
import com.laowu.model.WorkstationDictDO;
import com.laowu.vo.station.OneStationAccountVO;
import com.laowu.vo.station.ProvinceStationsVO;
import java.util.List;
/**
* <p>
* 工作站 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
public interface WorkstationDictService extends IService<WorkstationDictDO> {
IPage stations(StationsDTO stationsDTO);
String deleteStation(WorkstationDictDO workstationDictDO);
String addStation(WorkstationDictDO workstationDictDO);
String updateStation(WorkstationDictDO workstationDict);
IPage stationAccount(StationAccountDTO stationAccountDTO);
OneStationAccountVO oneStationAccount(AdministerDO administerDO);
List<ProvinceStationsVO> provinceStations();
String updateAdminister(UpdateAdministerDTO updateAdministerDTO);
String addAdminister(UpdateAdministerDTO updateAdministerDTO);
}
package com.laowu.service;
import com.laowu.model.WorkstationMemberMappingDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 学员--工作站映射关系 服务类
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
public interface WorkstationMemberMappingService extends IService<WorkstationMemberMappingDO> {
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.station.RequiresDTO;
import com.laowu.dto.station.ShareDTO;
import com.laowu.model.WorkstationRequireMappingDO;
import com.laowu.vo.station.RequireStationsVO;
import com.laowu.vo.station.RequiresVO;
/**
* <p>
* 职位需求工作站映射表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-30
*/
public interface WorkstationRequireMappingService extends IService<WorkstationRequireMappingDO> {
IPage<RequiresVO> requires(RequiresDTO requiresDTO);
String deleteRequire(WorkstationRequireMappingDO workstationRequireMappingDO);
String share(ShareDTO shareDTO);
RequireStationsVO requireStations(WorkstationRequireMappingDO workstationRequireMappingDO);
}
package com.laowu.service.impl; package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 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.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException; import com.laowu.common.exception.HttpException;
import com.laowu.dto.administer.AllDTO;
import com.laowu.mapper.AdministerMapper; import com.laowu.mapper.AdministerMapper;
import com.laowu.mapper.RoleAdministerMappingMapper; import com.laowu.mapper.RoleAdministerMappingMapper;
import com.laowu.model.AdministerDO; import com.laowu.model.AdministerDO;
...@@ -40,11 +43,11 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis ...@@ -40,11 +43,11 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
LoginVO login = new LoginVO(); LoginVO login = new LoginVO();
AdministerDO administerDO1 = this.baseMapper.selectOne(new QueryWrapper<AdministerDO>() AdministerDO administerDO1 = this.baseMapper.selectOne(new QueryWrapper<AdministerDO>()
.lambda() .lambda()
.eq(AdministerDO::getAccount,administerDO.getAccount()) .eq(AdministerDO::getAccount, administerDO.getAccount())
.eq(AdministerDO::getPassword,administerDO.getPassword())); .eq(AdministerDO::getPassword, administerDO.getPassword()));
if (null == administerDO1){ if (null == administerDO1) {
throw new HttpException(50001); throw new HttpException(50001);
} }
...@@ -87,9 +90,49 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis ...@@ -87,9 +90,49 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
RoleAdministerMappingDO roleAdministerMappingDO = roleAdministerMappingMapper.selectOne(new QueryWrapper<RoleAdministerMappingDO>() RoleAdministerMappingDO roleAdministerMappingDO = roleAdministerMappingMapper.selectOne(new QueryWrapper<RoleAdministerMappingDO>()
.lambda() .lambda()
.eq(RoleAdministerMappingDO::getAdministerId, administerDO.getId())); .eq(RoleAdministerMappingDO::getAdministerId, administerDO.getId()));
if (null != roleAdministerMappingDO){ if (null != roleAdministerMappingDO) {
administerPermissionVO.setRole(roleAdministerMappingDO.getRoleId()); administerPermissionVO.setRole(roleAdministerMappingDO.getRoleId());
} }
return administerPermissionVO; return administerPermissionVO;
} }
public IPage<AdministerDO> all(AllDTO allDTO) {
Page pager = new Page(allDTO.getPageNum(), allDTO.getPageSize());
return this.baseMapper.all(pager, allDTO.getStatus());
}
public String addAdminister(AdministerDO administerDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<AdministerDO>()
.lambda()
.eq(AdministerDO::getAccount, administerDO.getAccount()));
if (count > 0) {
throw new HttpException(70001);
}
administerDO.setStatus("正常");
administerDO.setPassword("123456");
this.baseMapper.insert(administerDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateAdminister(AdministerDO administerDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<AdministerDO>()
.lambda()
.eq(AdministerDO::getAccount, administerDO.getAccount())
.ne(AdministerDO::getId, administerDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(administerDO);
return ConstantUtils.SUCCESS_UPDATE;
}
public String deleteAdminister(AdministerDO administerDO) {
this.baseMapper.deleteById(administerDO.getId());
return ConstantUtils.DELETE_SUCCESS;
}
} }
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.mapper.CityDictMapper;
import com.laowu.model.CityDictDO;
import com.laowu.service.CityDictService;
import com.laowu.vo.city.AllCitiesVO;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 城市字典表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-02-15
*/
@Service
public class CityDictServiceImpl extends ServiceImpl<CityDictMapper, CityDictDO> implements CityDictService {
public List<AllCitiesVO> allCities() {
List<AllCitiesVO> allCities = new ArrayList<>();
List<CityDictDO> cityDictDOS = this.baseMapper.selectList(new QueryWrapper<CityDictDO>()
.lambda()
.isNull(CityDictDO::getParentId));
for (CityDictDO cityDictDO : cityDictDOS){
AllCitiesVO allCitiesVO = new AllCitiesVO();
BeanUtils.copyProperties(cityDictDO, allCitiesVO);
List<CityDictDO> cityDictDOS1 = this.baseMapper.selectList(new QueryWrapper<CityDictDO>()
.lambda()
.eq(CityDictDO::getParentId,cityDictDO.getId()));
allCitiesVO.setCityDictDOS(cityDictDOS1);
allCities.add(allCitiesVO);
}
return allCities;
}
}
package com.laowu.service.impl; package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException; import com.laowu.common.exception.HttpException;
import com.laowu.mapper.BusinessDictMapper; import com.laowu.model.CollegeMajorMappingDO;
import com.laowu.model.BusinessDictDO; import com.laowu.mapper.CollegeMajorMappingMapper;
import com.laowu.service.BusinessDictService; import com.laowu.service.CollegeMajorMappingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.util.ConstantUtils; import com.laowu.util.ConstantUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* <p> * <p>
* 经营范围 服务实现类 * 院校专业映射表 服务实现类
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-20 * @since 2023-03-23
*/ */
@Service @Service
public class BusinessDictServiceImpl extends ServiceImpl<BusinessDictMapper, BusinessDictDO> implements BusinessDictService { public class CollegeMajorMappingServiceImpl extends ServiceImpl<CollegeMajorMappingMapper, CollegeMajorMappingDO> implements CollegeMajorMappingService {
public String addBusiness(BusinessDictDO businessDictDO) { public String addCollegeMajor(CollegeMajorMappingDO collegeMajorMappingDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<BusinessDictDO>() int count = this.baseMapper.selectCount(new QueryWrapper<CollegeMajorMappingDO>()
.lambda() .lambda()
.eq(BusinessDictDO::getBusiness, businessDictDO.getBusiness())); .eq(CollegeMajorMappingDO::getCollegeId, collegeMajorMappingDO.getCollegeId())
.eq(CollegeMajorMappingDO::getMajorId, collegeMajorMappingDO.getMajorId()));
if (count > 0) { if (count > 0) {
throw new HttpException(60001); throw new HttpException(70001);
} }
this.baseMapper.insert(businessDictDO); this.baseMapper.insert(collegeMajorMappingDO);
return ConstantUtils.ADD_SUCCESS; return ConstantUtils.ADD_SUCCESS;
} }
public String updateBusiness(BusinessDictDO businessDictDO) { public String updateCollegeMajor(CollegeMajorMappingDO collegeMajorMappingDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<BusinessDictDO>()
int count = this.baseMapper.selectCount(new QueryWrapper<CollegeMajorMappingDO>()
.lambda() .lambda()
.eq(BusinessDictDO::getBusiness, businessDictDO.getBusiness()) .eq(CollegeMajorMappingDO::getCollegeId, collegeMajorMappingDO.getCollegeId())
.ne(BusinessDictDO::getBusiness, businessDictDO.getBusiness())); .eq(CollegeMajorMappingDO::getMajorId, collegeMajorMappingDO.getMajorId())
.ne(CollegeMajorMappingDO::getId, collegeMajorMappingDO.getId()));
if (count > 0) { if (count > 0) {
throw new HttpException(60001); throw new HttpException(70001);
} }
this.baseMapper.updateById(businessDictDO);
return ConstantUtils.ADD_SUCCESS; this.baseMapper.updateById(collegeMajorMappingDO);
return ConstantUtils.SUCCESS_UPDATE;
} }
public String deleteBusiness(BusinessDictDO businessDictDO) { public String deleteCollegeMajor(CollegeMajorMappingDO collegeMajorMappingDO){
this.baseMapper.deleteById(businessDictDO.getId()); this.baseMapper.deleteById(collegeMajorMappingDO.getId());
return ConstantUtils.DELETE_SUCCESS; return ConstantUtils.DELETE_SUCCESS;
} }
public List<BusinessDictDO> queryBusiness() {
return this.baseMapper.selectList(null);
}
} }
...@@ -7,16 +7,20 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; ...@@ -7,16 +7,20 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException; import com.laowu.common.exception.HttpException;
import com.laowu.dto.company.AddCompanyDTO; import com.laowu.dto.company.AddCompanyDTO;
import com.laowu.dto.company.CompanyDTO; import com.laowu.dto.company.CompanyDTO;
import com.laowu.mapper.CompanyDictMapper; import com.laowu.dto.company.DeleteCompanyDTO;
import com.laowu.mapper.CompanyPhotoMapper; import com.laowu.dto.company.StationCompanyDTO;
import com.laowu.model.CompanyDictDO; import com.laowu.mapper.*;
import com.laowu.model.CompanyPhotoDO; import com.laowu.model.*;
import com.laowu.service.CompanyDictService; import com.laowu.service.CompanyDictService;
import com.laowu.util.ConstantUtils; import com.laowu.util.ConstantUtils;
import com.laowu.vo.company.CompanyUpdateHistoryVO;
import com.laowu.vo.company.CompanyVO; import com.laowu.vo.company.CompanyVO;
import com.laowu.vo.company.RelateWorkVO;
import com.laowu.vo.team.TotalTeamsVO;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List; import java.util.List;
...@@ -34,28 +38,83 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa ...@@ -34,28 +38,83 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa
@Autowired @Autowired
private CompanyPhotoMapper companyPhotoMapper; private CompanyPhotoMapper companyPhotoMapper;
public IPage company(CompanyDTO companyDTO) { @Autowired
private CompanyLabelMapper companyLabelMapper;
@Autowired
private CompanyRelateWorkMapper companyRelateWorkMapper;
@Autowired
private CompanyUpdateHistoryMapper companyUpdateHistoryMapper;
@Autowired
private PositionDictMapper positionDictMapper;
@Autowired
private WorkstationDictMapper workstationDictMapper;
public IPage<CompanyVO> company(CompanyDTO companyDTO) {
Page pager = new Page(companyDTO.getPageNum(), companyDTO.getPageSize()); Page pager = new Page(companyDTO.getPageNum(), companyDTO.getPageSize());
IPage<CompanyVO> company = this.baseMapper.company(pager, companyDTO.getCompanyName(), companyDTO.getCityId(), companyDTO.getBusinessId()); IPage<CompanyVO> company = this.baseMapper.company(pager, companyDTO.getCompanyName(), companyDTO.getProvince(), companyDTO.getCity(), companyDTO.getCounty());
List<CompanyVO> records = company.getRecords(); List<CompanyVO> records = company.getRecords();
for (CompanyVO companyVO : records) { for (CompanyVO companyVO : records) {
//图
List<CompanyPhotoDO> companyPhotoDOS = companyPhotoMapper.selectList(new QueryWrapper<CompanyPhotoDO>() List<CompanyPhotoDO> companyPhotoDOS = companyPhotoMapper.selectList(new QueryWrapper<CompanyPhotoDO>()
.lambda() .lambda()
.eq(CompanyPhotoDO::getCompanyId, companyVO.getId())); .eq(CompanyPhotoDO::getCompanyId, companyVO.getId()));
companyVO.setCompanyPhotoDOS(companyPhotoDOS); companyVO.setCompanyPhotoDOS(companyPhotoDOS);
//标签
List<CompanyLabelDO> companyLabelDOS = companyLabelMapper.selectList(new QueryWrapper<CompanyLabelDO>()
.lambda()
.eq(CompanyLabelDO::getCompanyId, companyVO.getId()));
companyVO.setCompanyLabelDOS(companyLabelDOS);
//关联业务
List<RelateWorkVO> relateWorkDOS = companyRelateWorkMapper.relateWork(companyVO.getId());
companyVO.setRelateWorkVOS(relateWorkDOS);
//历史
List<CompanyUpdateHistoryVO> companyUpdateHistoryVOS = companyUpdateHistoryMapper.companyUpdateHistory(companyVO.getId());
companyVO.setCompanyUpdateHistoryVOS(companyUpdateHistoryVOS);
} }
return company; return company;
} }
public String deleteCompany(CompanyDictDO companyDictDO) { @Transactional(rollbackFor = Exception.class)
this.baseMapper.deleteById(companyDictDO.getId()); public String deleteCompany(DeleteCompanyDTO deleteCompanyDTO) {
this.baseMapper.deleteById(deleteCompanyDTO.getId());
companyPhotoMapper.delete(new QueryWrapper<CompanyPhotoDO>()
.lambda()
.eq(CompanyPhotoDO::getCompanyId, deleteCompanyDTO.getId()));
companyLabelMapper.delete(new QueryWrapper<CompanyLabelDO>()
.lambda()
.eq(CompanyLabelDO::getCompanyId, deleteCompanyDTO.getId()));
companyRelateWorkMapper.delete(new QueryWrapper<CompanyRelateWorkDO>()
.lambda()
.eq(CompanyRelateWorkDO::getCompanyId, deleteCompanyDTO.getId()));
CompanyUpdateHistoryDO companyUpdateHistoryDO = new CompanyUpdateHistoryDO();
companyUpdateHistoryDO.setOpr("删除了企业");
companyUpdateHistoryDO.setAdministerId(deleteCompanyDTO.getUserId());
companyUpdateHistoryDO.setModule(deleteCompanyDTO.getModule());
companyUpdateHistoryMapper.insert(companyUpdateHistoryDO);
return ConstantUtils.DELETE_SUCCESS; return ConstantUtils.DELETE_SUCCESS;
} }
@Transactional(rollbackFor = Exception.class)
public String addCompany(AddCompanyDTO addCompanyDTO) { public String addCompany(AddCompanyDTO addCompanyDTO) {
int count = this.baseMapper.selectCount(new QueryWrapper<CompanyDictDO>() int count = this.baseMapper.selectCount(new QueryWrapper<CompanyDictDO>()
...@@ -68,25 +127,59 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa ...@@ -68,25 +127,59 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa
CompanyDictDO companyDictDO = new CompanyDictDO(); CompanyDictDO companyDictDO = new CompanyDictDO();
BeanUtils.copyProperties(addCompanyDTO, companyDictDO); BeanUtils.copyProperties(addCompanyDTO, companyDictDO);
if (null != addCompanyDTO.getStationId()){
WorkstationDictDO workstationDictDO = workstationDictMapper.selectById(addCompanyDTO.getStationId());
if (null != workstationDictDO){
companyDictDO.setCompanyOrigin(workstationDictDO.getWorkstationName());
}
}
this.baseMapper.insert(companyDictDO); this.baseMapper.insert(companyDictDO);
List<CompanyPhotoDO> companyPhotoDOS = addCompanyDTO.getCompanyPhotoDOS(); List<CompanyPhotoDO> companyPhotoDOS = addCompanyDTO.getCompanyPhotoDOS();
for (CompanyPhotoDO companyPhotoDO : companyPhotoDOS) { for (CompanyPhotoDO companyPhotoDO : companyPhotoDOS) {
companyPhotoDO.setCompanyId(companyDictDO.getId()); companyPhotoDO.setCompanyId(companyDictDO.getId());
companyPhotoMapper.insert(companyPhotoDO); companyPhotoMapper.insert(companyPhotoDO);
} }
List<CompanyLabelDO> companyLabelDOList = addCompanyDTO.getCompanyLabelDOS();
for (CompanyLabelDO companyLabelDO : companyLabelDOList) {
companyLabelDO.setCompanyId(companyDictDO.getId());
companyLabelMapper.insert(companyLabelDO);
}
Long stationId = addCompanyDTO.getStationId();
if (null != stationId){
CompanyRelateWorkDO companyRelateWorkDO = new CompanyRelateWorkDO();
companyRelateWorkDO.setCompanyId(companyDictDO.getId());
companyRelateWorkDO.setStationId(stationId);
companyRelateWorkMapper.insert(companyRelateWorkDO);
}
//记录 日志
CompanyUpdateHistoryDO companyUpdateHistoryDO = new CompanyUpdateHistoryDO();
companyUpdateHistoryDO.setAdministerId(addCompanyDTO.getUserId());
companyUpdateHistoryDO.setModule(addCompanyDTO.getModule());
companyUpdateHistoryDO.setOpr("创建了企业");
companyUpdateHistoryDO.setCompanyId(companyDictDO.getId());
companyUpdateHistoryMapper.insert(companyUpdateHistoryDO);
return ConstantUtils.ADD_SUCCESS; return ConstantUtils.ADD_SUCCESS;
} }
@Transactional
public String updateCompany(AddCompanyDTO addCompanyDTO) { public String updateCompany(AddCompanyDTO addCompanyDTO) {
CompanyDictDO companyDictDO = new CompanyDictDO(); CompanyDictDO companyDictDO = this.baseMapper.selectById(addCompanyDTO.getId());
BeanUtils.copyProperties(addCompanyDTO, companyDictDO); CompanyDictDO companyDictDO1 = new CompanyDictDO();
this.baseMapper.updateById(companyDictDO); BeanUtils.copyProperties(addCompanyDTO, companyDictDO1);
this.baseMapper.updateById(companyDictDO1);
List<CompanyPhotoDO> companyPhotoDOS = addCompanyDTO.getCompanyPhotoDOS(); StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("变更了“");
if (companyPhotoDOS.size() > 0) {
List<CompanyPhotoDO> companyPhotoDOS = addCompanyDTO.getCompanyPhotoDOS();
//图片
if (null != companyPhotoDOS) {
companyPhotoMapper.delete(new QueryWrapper<CompanyPhotoDO>() companyPhotoMapper.delete(new QueryWrapper<CompanyPhotoDO>()
.lambda() .lambda()
.eq(CompanyPhotoDO::getCompanyId, addCompanyDTO.getId())); .eq(CompanyPhotoDO::getCompanyId, addCompanyDTO.getId()));
...@@ -95,7 +188,55 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa ...@@ -95,7 +188,55 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa
companyPhotoDO.setCompanyId(addCompanyDTO.getId()); companyPhotoDO.setCompanyId(addCompanyDTO.getId());
companyPhotoMapper.insert(companyPhotoDO); companyPhotoMapper.insert(companyPhotoDO);
} }
stringBuffer.append("企业图片、");
} }
//标签
List<CompanyLabelDO> companyLabelDOS = addCompanyDTO.getCompanyLabelDOS();
if (null != companyLabelDOS) {
companyLabelMapper.delete(new QueryWrapper<CompanyLabelDO>()
.lambda()
.eq(CompanyLabelDO::getCompanyId, addCompanyDTO.getId()));
for (CompanyLabelDO companyLabelDO : companyLabelDOS) {
companyLabelDO.setCompanyId(addCompanyDTO.getId());
companyLabelMapper.insert(companyLabelDO);
}
stringBuffer.append("企业标签、");
}
if (!companyDictDO.getCompanyName().equals(addCompanyDTO.getCompanyName())) {
stringBuffer.append("企业名称、");
}
if (!companyDictDO.getProvince().equals(addCompanyDTO.getProvince())) {
stringBuffer.append("省、");
}
if (!companyDictDO.getCity().equals(addCompanyDTO.getCity())) {
stringBuffer.append("市、");
}
if (!companyDictDO.getCounty().equals(addCompanyDTO.getCounty())) {
stringBuffer.append("县、");
}
if (!companyDictDO.getPositionId().equals(addCompanyDTO.getPositionId())) {
stringBuffer.append("经营范围、");
}
if (!companyDictDO.getCompanyCode().equals(addCompanyDTO.getCompanyCode())) {
stringBuffer.append("企业代码、");
}
if (!companyDictDO.getCompanyDesc().equals(addCompanyDTO.getCompanyDesc())) {
stringBuffer.append("企业简介、");
}
String opr = stringBuffer.substring(0, stringBuffer.length() - 1) + "”";
//修改了哪些信息
CompanyUpdateHistoryDO companyUpdateHistoryDO = new CompanyUpdateHistoryDO();
companyUpdateHistoryDO.setModule(addCompanyDTO.getModule());
companyUpdateHistoryDO.setAdministerId(addCompanyDTO.getUserId());
companyUpdateHistoryDO.setCompanyId(addCompanyDTO.getId());
companyUpdateHistoryDO.setOpr(opr);
companyUpdateHistoryMapper.insert(companyUpdateHistoryDO);
return ConstantUtils.SUCCESS_UPDATE; return ConstantUtils.SUCCESS_UPDATE;
} }
...@@ -106,13 +247,69 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa ...@@ -106,13 +247,69 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa
CompanyDictDO companyDictDO1 = this.baseMapper.selectById(companyDictDO.getId()); CompanyDictDO companyDictDO1 = this.baseMapper.selectById(companyDictDO.getId());
BeanUtils.copyProperties(companyDictDO1, companyVO); BeanUtils.copyProperties(companyDictDO1, companyVO);
if (null != companyDictDO1.getPositionId()){
PositionDictDO positionDictDO = positionDictMapper.selectById(companyDictDO1.getPositionId());
companyVO.setPositionType(positionDictDO.getPositionType());
}
List<CompanyPhotoDO> companyPhotoDOS = companyPhotoMapper.selectList(new QueryWrapper<CompanyPhotoDO>() List<CompanyPhotoDO> companyPhotoDOS = companyPhotoMapper.selectList(new QueryWrapper<CompanyPhotoDO>()
.lambda() .lambda()
.eq(CompanyPhotoDO::getCompanyId, companyDictDO1.getId())); .eq(CompanyPhotoDO::getCompanyId, companyDictDO1.getId()));
companyVO.setCompanyPhotoDOS(companyPhotoDOS); companyVO.setCompanyPhotoDOS(companyPhotoDOS);
List<CompanyLabelDO> companyLabelDOS = companyLabelMapper.selectList(new QueryWrapper<CompanyLabelDO>()
.lambda()
.eq(CompanyLabelDO::getCompanyId, companyDictDO1.getId()));
companyVO.setCompanyLabelDOS(companyLabelDOS);
//关联业务
List<RelateWorkVO> relateWorkDOS = companyRelateWorkMapper.relateWork(companyDictDO.getId());
companyVO.setRelateWorkVOS(relateWorkDOS);
//历史
List<CompanyUpdateHistoryVO> companyUpdateHistoryVOS = companyUpdateHistoryMapper.companyUpdateHistory(companyVO.getId());
companyVO.setCompanyUpdateHistoryVOS(companyUpdateHistoryVOS);
return companyVO; return companyVO;
} }
public TotalTeamsVO totalCount(WorkstationDictDO workstationDictDO) {
TotalTeamsVO totalTeamsVO = new TotalTeamsVO();
Integer count = this.baseMapper.stationCompanyCount(workstationDictDO.getId());
totalTeamsVO.setCount(count);
return totalTeamsVO;
}
public IPage stationCompany(StationCompanyDTO stationCompanyDTO) {
Page pager = new Page(stationCompanyDTO.getPageNum(), stationCompanyDTO.getPageSize());
IPage<CompanyVO> company = this.baseMapper.stationCompany(pager, stationCompanyDTO.getStationId(), stationCompanyDTO.getCompanyName(), stationCompanyDTO.getProvince(), stationCompanyDTO.getCompanyName(), stationCompanyDTO.getCounty());
List<CompanyVO> records = company.getRecords();
for (CompanyVO companyVO : records) {
//图
List<CompanyPhotoDO> companyPhotoDOS = companyPhotoMapper.selectList(new QueryWrapper<CompanyPhotoDO>()
.lambda()
.eq(CompanyPhotoDO::getCompanyId, companyVO.getId()));
companyVO.setCompanyPhotoDOS(companyPhotoDOS);
//标签
List<CompanyLabelDO> companyLabelDOS = companyLabelMapper.selectList(new QueryWrapper<CompanyLabelDO>()
.lambda()
.eq(CompanyLabelDO::getCompanyId, companyVO.getId()));
companyVO.setCompanyLabelDOS(companyLabelDOS);
//关联业务
List<RelateWorkVO> relateWorkDOS = companyRelateWorkMapper.relateWork(companyVO.getId());
companyVO.setRelateWorkVOS(relateWorkDOS);
//历史
List<CompanyUpdateHistoryVO> companyUpdateHistoryVOS = companyUpdateHistoryMapper.companyUpdateHistory(companyVO.getId());
companyVO.setCompanyUpdateHistoryVOS(companyUpdateHistoryVOS);
}
return company;
}
} }
package com.laowu.service.impl; package com.laowu.service.impl;
import com.laowu.model.PlaceImgsDO; import com.laowu.model.CompanyLabelDO;
import com.laowu.mapper.PlaceImgsMapper; import com.laowu.mapper.CompanyLabelMapper;
import com.laowu.service.PlaceImgsService; import com.laowu.service.CompanyLabelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
* <p> * <p>
* 地点图片 服务实现类 * 企业标签 服务实现类
* </p> * </p>
* *
* @author Tuyp * @author Tuyp
* @since 2023-02-15 * @since 2023-03-22
*/ */
@Service @Service
public class PlaceImgsServiceImpl extends ServiceImpl<PlaceImgsMapper, PlaceImgsDO> implements PlaceImgsService { public class CompanyLabelServiceImpl extends ServiceImpl<CompanyLabelMapper, CompanyLabelDO> implements CompanyLabelService {
} }
package com.laowu.service.impl;
import com.laowu.model.CompanyRelateWorkDO;
import com.laowu.mapper.CompanyRelateWorkMapper;
import com.laowu.service.CompanyRelateWorkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 公司关联业务映射表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-22
*/
@Service
public class CompanyRelateWorkServiceImpl extends ServiceImpl<CompanyRelateWorkMapper, CompanyRelateWorkDO> implements CompanyRelateWorkService {
}
package com.laowu.service.impl;
import com.laowu.model.CompanyUpdateHistoryDO;
import com.laowu.mapper.CompanyUpdateHistoryMapper;
import com.laowu.service.CompanyUpdateHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 公司更新日志表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Service
public class CompanyUpdateHistoryServiceImpl extends ServiceImpl<CompanyUpdateHistoryMapper, CompanyUpdateHistoryDO> implements CompanyUpdateHistoryService {
}
...@@ -84,7 +84,7 @@ public class JobDictServiceImpl extends ServiceImpl<JobDictMapper, JobDictDO> im ...@@ -84,7 +84,7 @@ public class JobDictServiceImpl extends ServiceImpl<JobDictMapper, JobDictDO> im
String positionCode = positionDictMapper.jobCode(jobDictDO.getPositionId()); String positionCode = positionDictMapper.jobCode(jobDictDO.getPositionId());
List<JobDictDO> jobDictDOS = this.baseMapper.selectList(new QueryWrapper<JobDictDO>() List<JobDictDO> jobDictDOS = this.baseMapper.selectList(new QueryWrapper<JobDictDO>()
.lambda() .lambda()
.eq(JobDictDO::getPositionId, jobDictDO.getPositionId()) .like(JobDictDO::getJobId, positionCode)
.orderByDesc(JobDictDO::getCreateDate)); .orderByDesc(JobDictDO::getCreateDate));
if (jobDictDOS.size() > 0) { if (jobDictDOS.size() > 0) {
......
package com.laowu.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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.dto.college.CollegeDTO;
import com.laowu.mapper.CollegeMajorMappingMapper;
import com.laowu.mapper.LibCollegeMapper;
import com.laowu.model.CollegeMajorMappingDO;
import com.laowu.model.LibCollegeDO;
import com.laowu.service.LibCollegeService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.college.CollegeVO;
import com.laowu.vo.college.OneCollegeVO;
import com.laowu.vo.major.CollegeMajorsVO;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 院校信息管理 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Service
public class LibCollegeServiceImpl extends ServiceImpl<LibCollegeMapper, LibCollegeDO> implements LibCollegeService {
@Autowired
private CollegeMajorMappingMapper collegeMajorMappingMapper;
public IPage<CollegeVO> colleges(CollegeDTO collegeDTO) {
Page pager = new Page(collegeDTO.getPageNum(), collegeDTO.getPageSize());
IPage<CollegeVO> colleges = this.baseMapper.colleges(pager, collegeDTO.getStatus(),collegeDTO.getProvince(),collegeDTO.getCity(),collegeDTO.getCounty());
List<CollegeVO> collegeVOS = colleges.getRecords();
for (CollegeVO vo : collegeVOS) {
//专业数量
int count = collegeMajorMappingMapper.selectCount(new QueryWrapper<CollegeMajorMappingDO>()
.lambda()
.eq(CollegeMajorMappingDO::getCollegeId, vo.getId()));
vo.setMajorCount(count);
}
return colleges;
}
@Transactional(rollbackFor = Exception.class)
public String deleteCollege(LibCollegeDO libCollegeDO) {
this.baseMapper.deleteById(libCollegeDO.getId());
collegeMajorMappingMapper.delete(new QueryWrapper<CollegeMajorMappingDO>()
.lambda()
.eq(CollegeMajorMappingDO::getCollegeId, libCollegeDO.getId()));
return ConstantUtils.DELETE_SUCCESS;
}
public OneCollegeVO oneCollege(LibCollegeDO libCollegeDO) {
OneCollegeVO oneCollegeVO = new OneCollegeVO();
LibCollegeDO libCollegeDO1 = this.baseMapper.selectById(libCollegeDO.getId());
BeanUtils.copyProperties(libCollegeDO1, oneCollegeVO);
List<CollegeMajorsVO> collegeMajorsVOS = collegeMajorMappingMapper.collegeMajors(libCollegeDO.getId());
oneCollegeVO.setCollegeMajorsVOS(collegeMajorsVOS);
return oneCollegeVO;
}
@Transactional(rollbackFor = Exception.class)
public String addCollege(LibCollegeDO libCollegeDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibCollegeDO>()
.lambda()
.eq(LibCollegeDO::getCollegeCode, libCollegeDO.getCollegeCode()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(libCollegeDO);
return ConstantUtils.ADD_SUCCESS;
}
@Transactional(rollbackFor = Exception.class)
public String updateCollege(LibCollegeDO libCollegeDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibCollegeDO>()
.lambda()
.eq(LibCollegeDO::getCollegeCode, libCollegeDO.getCollegeCode())
.ne(LibCollegeDO::getId, libCollegeDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(libCollegeDO);
return ConstantUtils.SUCCESS_UPDATE;
}
}
package com.laowu.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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.dto.geo.AllGeosDTO;
import com.laowu.mapper.LibGeoLocationMapper;
import com.laowu.model.LibGeoLocationDO;
import com.laowu.service.LibGeoLocationService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.geo.CityVO;
import com.laowu.vo.geo.ProvincesVO;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 地理位置字典表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-21
*/
@Service
public class LibGeoLocationServiceImpl extends ServiceImpl<LibGeoLocationMapper, LibGeoLocationDO> implements LibGeoLocationService {
public List<ProvincesVO> provinces() {
List<ProvincesVO> provincesVOS = new ArrayList<>();
List<String> provinces = this.baseMapper.provinces();
//查询所有省
for (String province : provinces) {
ProvincesVO provincesVO = new ProvincesVO();
provincesVO.setProvince(province);
List<CityVO> cityVOS = new ArrayList<CityVO>();
//查询所有的市
List<String> cities = this.baseMapper.cities(province);
for (String city : cities) {
CityVO cityVO = new CityVO();
//查所有的县
List<String> counties = this.baseMapper.county(province, city);
cityVO.setCity(city);
cityVO.setCounty(counties);
cityVOS.add(cityVO);
}
provincesVO.setCityVOS(cityVOS);
provincesVOS.add(provincesVO);
}
return provincesVOS;
}
public List<String> cities(LibGeoLocationDO libGeoLocationDO) {
return this.baseMapper.cities(libGeoLocationDO.getProvince());
}
public List<String> county(LibGeoLocationDO libGeoLocationDO) {
return this.baseMapper.county(libGeoLocationDO.getProvince(), libGeoLocationDO.getCity());
}
public List<LibGeoLocationDO> villages(LibGeoLocationDO libGeoLocationDO) {
return this.baseMapper.selectList(new QueryWrapper<LibGeoLocationDO>()
.lambda()
.eq(LibGeoLocationDO::getProvince, libGeoLocationDO.getProvince())
.eq(LibGeoLocationDO::getCity, libGeoLocationDO.getCity())
.eq(LibGeoLocationDO::getCounty, libGeoLocationDO.getCounty())
.eq(LibGeoLocationDO::getTown, libGeoLocationDO.getTown()));
}
public IPage geo(AllGeosDTO allGeosDTO) {
Page pager = new Page(allGeosDTO.getPageNum(), allGeosDTO.getPageSize());
return this.baseMapper.geo(pager, allGeosDTO.getProvince(), allGeosDTO.getCity(), allGeosDTO.getCounty(), allGeosDTO.getTown());
}
public String addGeo(LibGeoLocationDO libGeoLocationDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibGeoLocationDO>()
.lambda()
.eq(LibGeoLocationDO::getProvince, libGeoLocationDO.getProvince())
.eq(LibGeoLocationDO::getCity, libGeoLocationDO.getCity())
.eq(LibGeoLocationDO::getCounty, libGeoLocationDO.getCounty())
.eq(LibGeoLocationDO::getTown, libGeoLocationDO.getTown())
.eq(LibGeoLocationDO::getVillage, libGeoLocationDO.getVillage()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(libGeoLocationDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateGeo(LibGeoLocationDO libGeoLocationDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibGeoLocationDO>()
.lambda()
.eq(LibGeoLocationDO::getProvince, libGeoLocationDO.getProvince())
.eq(LibGeoLocationDO::getCity, libGeoLocationDO.getCity())
.eq(LibGeoLocationDO::getCounty, libGeoLocationDO.getCounty())
.eq(LibGeoLocationDO::getTown, libGeoLocationDO.getTown())
.eq(LibGeoLocationDO::getVillage, libGeoLocationDO.getVillage())
.ne(LibGeoLocationDO::getId, libGeoLocationDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(libGeoLocationDO);
return ConstantUtils.SUCCESS_UPDATE;
}
public String deleteGeo(LibGeoLocationDO libGeoLocationDO) {
this.baseMapper.deleteById(libGeoLocationDO.getId());
return ConstantUtils.DELETE_SUCCESS;
}
}
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.mapper.LibJobSortMapper;
import com.laowu.model.LibJobSortDO;
import com.laowu.service.LibJobSortService;
import com.laowu.util.ConstantUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 职业分类信息管理 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-24
*/
@Service
public class LibJobSortServiceImpl extends ServiceImpl<LibJobSortMapper, LibJobSortDO> implements LibJobSortService {
public List<LibJobSortDO> sorts() {
List<LibJobSortDO> sortsVOS = new ArrayList<>();
//找到所有的父节点
List<LibJobSortDO> libJobSortDOS = this.baseMapper.selectList(new QueryWrapper<LibJobSortDO>()
.lambda()
.isNull(LibJobSortDO::getParentId));
for (LibJobSortDO libJobSortDO : libJobSortDOS){
libJobSortDO.setChildren(getChildNodes(libJobSortDO));
sortsVOS.add(libJobSortDO);
}
return sortsVOS;
}
/**
* 递归遍历子节点
*/
public List<LibJobSortDO> getChildNodes(LibJobSortDO libJobSortDO){
List<LibJobSortDO> sortsVOS = new ArrayList<>();
//查找该父节点下的子节点
List<LibJobSortDO> libJobSortDOS = this.baseMapper.selectList(new QueryWrapper<LibJobSortDO>()
.lambda()
.eq(LibJobSortDO::getParentId,libJobSortDO.getId()));
for (LibJobSortDO ljd : libJobSortDOS){
sortsVOS.add(ljd);
ljd.setChildren(getChildNodes(ljd));
}
if (libJobSortDOS.size()==0){
return null;
}
return sortsVOS;
}
public String addSort(LibJobSortDO libJobSortDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibJobSortDO>()
.lambda()
.eq(LibJobSortDO::getSortCode, libJobSortDO.getSortCode()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(libJobSortDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateSort(LibJobSortDO libJobSortDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibJobSortDO>()
.lambda()
.eq(LibJobSortDO::getSortCode, libJobSortDO.getSortCode())
.ne(LibJobSortDO::getId, libJobSortDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(libJobSortDO);
return ConstantUtils.SUCCESS_UPDATE;
}
@Transactional(rollbackFor = Exception.class)
public String deleteSort(LibJobSortDO libJobSortDO) {
this.baseMapper.deleteById(libJobSortDO.getId());
//递归删除
List<LibJobSortDO> libJobSortDOS = this.baseMapper.selectList(new QueryWrapper<LibJobSortDO>()
.lambda()
.eq(LibJobSortDO::getParentId,libJobSortDO.getId()));
for (LibJobSortDO libJobSortDO1 :libJobSortDOS){
libJobSortDO1.setChildren(removeChildNodes(libJobSortDO1));
}
return ConstantUtils.DELETE_SUCCESS;
}
/**
* 递归遍历课程子节点 并移除
*/
public List<LibJobSortDO> removeChildNodes(LibJobSortDO libJobSortDO) {
//查找该父节点下的子节点
List<LibJobSortDO> libJobSortDOS = this.baseMapper.selectList(new QueryWrapper<LibJobSortDO>()
.lambda()
.eq(LibJobSortDO::getParentId, libJobSortDO.getId()));
for (LibJobSortDO ctd : libJobSortDOS) {
ctd.setChildren(getChildNodes(ctd));
this.baseMapper.deleteById(ctd.getId());
}
if (libJobSortDOS.size() == 0) {
return null;
}
return libJobSortDOS;
}
}
package com.laowu.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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.dto.major.AllMajorDTO;
import com.laowu.mapper.LibMajorMapper;
import com.laowu.model.LibMajorDO;
import com.laowu.service.LibMajorService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.major.AllMajorVO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* <p>
* 专业字典表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Service
public class LibMajorServiceImpl extends ServiceImpl<LibMajorMapper, LibMajorDO> implements LibMajorService {
public IPage<AllMajorVO> allMajor(AllMajorDTO allMajorDTO) {
Page pager = new Page(allMajorDTO.getPageNum(), allMajorDTO.getPageSize());
return this.baseMapper.allMajor(pager, allMajorDTO.getCollegeType(), allMajorDTO.getMajor());
}
@Transactional(rollbackFor = Exception.class)
public String addMajor(LibMajorDO libMajorDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibMajorDO>()
.lambda()
.eq(LibMajorDO::getCollegeType, libMajorDO.getCollegeType())
.eq(LibMajorDO::getMajorCode, libMajorDO.getMajorCode()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(libMajorDO);
return ConstantUtils.ADD_SUCCESS;
}
@Transactional(rollbackFor = Exception.class)
public String updateMajor(LibMajorDO libMajorDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibMajorDO>()
.lambda()
.eq(LibMajorDO::getCollegeType, libMajorDO.getCollegeType())
.eq(LibMajorDO::getMajorCode, libMajorDO.getMajorCode())
.ne(LibMajorDO::getId, libMajorDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(libMajorDO);
return ConstantUtils.SUCCESS_UPDATE;
}
public String deleteMajor(LibMajorDO libMajorDO){
this.baseMapper.deleteById(libMajorDO.getId());
return ConstantUtils.DELETE_SUCCESS;
}
}
package com.laowu.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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.dto.provider.ProvidersDTO;
import com.laowu.mapper.LibServiceProviderMapper;
import com.laowu.model.LibServiceProviderDO;
import com.laowu.service.LibServiceProviderService;
import com.laowu.util.ConstantUtils;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务商信息字典表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-24
*/
@Service
public class LibServiceProviderServiceImpl extends ServiceImpl<LibServiceProviderMapper, LibServiceProviderDO> implements LibServiceProviderService {
public IPage<LibServiceProviderDO> providers(ProvidersDTO providersDTO) {
Page pager = new Page(providersDTO.getPageNum(), providersDTO.getPageSize());
return this.baseMapper.providers(pager, providersDTO.getProvince(), providersDTO.getCity(), providersDTO.getCounty(), providersDTO.getServiceProvider());
}
public String addProvider(LibServiceProviderDO libServiceProviderDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibServiceProviderDO>()
.lambda()
.eq(LibServiceProviderDO::getSocialCreditCode, libServiceProviderDO.getSocialCreditCode()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(libServiceProviderDO);
return ConstantUtils.ADD_SUCCESS;
}
public String deleteProvider(LibServiceProviderDO libServiceProviderDO) {
this.baseMapper.deleteById(libServiceProviderDO.getId());
return ConstantUtils.DELETE_SUCCESS;
}
public String updateProvider(LibServiceProviderDO libServiceProviderDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<LibServiceProviderDO>()
.lambda()
.eq(LibServiceProviderDO::getSocialCreditCode, libServiceProviderDO.getSocialCreditCode())
.ne(LibServiceProviderDO::getId, libServiceProviderDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(libServiceProviderDO);
return ConstantUtils.SUCCESS_UPDATE;
}
}
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.mapper.MemberCollegeMappingMapper;
import com.laowu.model.MemberCollegeMappingDO;
import com.laowu.service.MemberCollegeMappingService;
import com.laowu.util.ConstantUtils;
import org.springframework.stereotype.Service;
/**
* <p>
* 学员-学校映射表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-04-04
*/
@Service
public class MemberCollegeMappingServiceImpl extends ServiceImpl<MemberCollegeMappingMapper, MemberCollegeMappingDO> implements MemberCollegeMappingService {
public String addCollege(MemberCollegeMappingDO memberCollegeMappingDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberCollegeMappingDO>()
.lambda()
.eq(MemberCollegeMappingDO::getCollegeId, memberCollegeMappingDO.getCollegeId())
.eq(MemberCollegeMappingDO::getMemberId, memberCollegeMappingDO.getMemberId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(memberCollegeMappingDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateCollege(MemberCollegeMappingDO memberCollegeMappingDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberCollegeMappingDO>()
.lambda()
.eq(MemberCollegeMappingDO::getCollegeId, memberCollegeMappingDO.getCollegeId())
.eq(MemberCollegeMappingDO::getMemberId, memberCollegeMappingDO.getMemberId())
.ne(MemberCollegeMappingDO::getId, memberCollegeMappingDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(memberCollegeMappingDO);
return ConstantUtils.SUCCESS_UPDATE;
}
public String deleteCollege(MemberCollegeMappingDO memberCollegeMappingDO) {
this.baseMapper.deleteById(memberCollegeMappingDO.getId());
return ConstantUtils.DELETE_SUCCESS;
}
}
package com.laowu.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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.dto.member.AddMemberDTO;
import com.laowu.dto.member.AllMembersDTO;
import com.laowu.dto.member.UpdateMemberDTO;
import com.laowu.mapper.*;
import com.laowu.model.*;
import com.laowu.service.MemberDictService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.member.AllMembersVO;
import com.laowu.vo.member.MemberCollegeVO;
import com.laowu.vo.member.MemberJobInfoVO;
import com.laowu.vo.member.OneMemberVO;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 自然人表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Service
public class MemberDictServiceImpl extends ServiceImpl<MemberDictMapper, MemberDictDO> implements MemberDictService {
@Autowired
private MemberJobInfoMapper memberJobInfoMapper;
@Autowired
private LibCollegeMapper libCollegeMapper;
@Autowired
private LibMajorMapper libMajorMapper;
@Autowired
private CompanyDictMapper companyDictMapper;
@Autowired
private MemberCollegeMappingMapper memberCollegeMappingMapper;
@Autowired
private WorkstationDictMapper workstationDictMapper;
@Autowired
private MemberUpdateHistoryMapper memberUpdateHistoryMapper;
@Autowired
private WorkstationMemberMappingMapper workstationMemberMappingMapper;
@Autowired
private MemberTeamMappingMapper memberTeamMappingMapper;
@Autowired
private TeamDictMapper teamDictMapper;
public IPage<AllMembersVO> allMembers(AllMembersDTO allMembersDTO) {
Page pager = new Page(allMembersDTO.getPageNum(), allMembersDTO.getPageSize());
return this.baseMapper.allMembers(pager, allMembersDTO.getProvince(), allMembersDTO.getCity(), allMembersDTO.getCounty(), allMembersDTO.getStatus(), allMembersDTO.getUserName());
}
@Transactional(rollbackFor = Exception.class)
public String deleteMember(AddMemberDTO addMemberDTO) {
this.baseMapper.deleteById(addMemberDTO.getId());
memberTeamMappingMapper.delete(new QueryWrapper<MemberTeamMappingDO>()
.lambda()
.eq(MemberTeamMappingDO::getMemberId,addMemberDTO.getId()));
memberJobInfoMapper.delete(new QueryWrapper<MemberJobInfoDO>()
.lambda()
.eq(MemberJobInfoDO::getMemberId, addMemberDTO.getId()));
//团队领导人为id的团队组长职位空
List<TeamDictDO> teamDictDOS = teamDictMapper.selectList(new QueryWrapper<TeamDictDO>()
.lambda()
.eq(TeamDictDO::getMemberId,addMemberDTO.getId()));
for (TeamDictDO teamDictDO : teamDictDOS){
teamDictMapper.noLeader(teamDictDO.getId());
}
//历史
MemberUpdateHistoryDO memberUpdateHistoryDO = new MemberUpdateHistoryDO();
memberUpdateHistoryDO.setAdministerId(addMemberDTO.getUserId());
memberUpdateHistoryDO.setModule(addMemberDTO.getModule());
memberUpdateHistoryDO.setMemberId(addMemberDTO.getId());
memberUpdateHistoryDO.setOpr("删除了该成员");
memberUpdateHistoryMapper.insert(memberUpdateHistoryDO);
return ConstantUtils.DELETE_SUCCESS;
}
public String addMember(AddMemberDTO addMemberDTO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberDictDO>()
.lambda()
.isNotNull(MemberDictDO::getIdCard)
.eq(MemberDictDO::getIdCard, addMemberDTO.getIdCard()));
if (count > 0) {
throw new HttpException(70001);
}
MemberDictDO memberDictDO = new MemberDictDO();
BeanUtils.copyProperties(addMemberDTO,memberDictDO);
//信息来源
if (null != addMemberDTO.getStationId()){
WorkstationDictDO workstationDictDO = workstationDictMapper.selectById(addMemberDTO.getStationId());
if (null != workstationDictDO){
memberDictDO.setInfoOrigin(workstationDictDO.getWorkstationName());
}
}
this.baseMapper.insert(memberDictDO);
if (null != addMemberDTO.getStationId()){
WorkstationMemberMappingDO workstationMemberMappingDO = new WorkstationMemberMappingDO();
workstationMemberMappingDO.setMemberId(memberDictDO.getId());
workstationMemberMappingDO.setStationId(addMemberDTO.getStationId());
workstationMemberMappingMapper.insert(workstationMemberMappingDO);
}
//历史
MemberUpdateHistoryDO memberUpdateHistoryDO = new MemberUpdateHistoryDO();
memberUpdateHistoryDO.setAdministerId(addMemberDTO.getUserId());
memberUpdateHistoryDO.setModule(addMemberDTO.getModule());
memberUpdateHistoryDO.setMemberId(memberDictDO.getId());
memberUpdateHistoryDO.setOpr("创建了该成员");
memberUpdateHistoryMapper.insert(memberUpdateHistoryDO);
return ConstantUtils.ADD_SUCCESS;
}
public OneMemberVO oneMember(MemberDictDO memberDictDO) {
OneMemberVO oneMemberVO = new OneMemberVO();
MemberDictDO memberDictDO1 = this.baseMapper.selectById(memberDictDO.getId());
BeanUtils.copyProperties(memberDictDO1, oneMemberVO);
if (null != memberDictDO1.getCollegeId()) {
LibCollegeDO libCollegeDO = libCollegeMapper.selectById(memberDictDO1.getCollegeId());
oneMemberVO.setCollege(libCollegeDO.getCollege());
}
if (null != memberDictDO1.getMajorId()) {
LibMajorDO libMajorDO = libMajorMapper.selectById(memberDictDO1.getMajorId());
oneMemberVO.setMajor(libMajorDO.getMajor());
}
//院校信息
List<MemberCollegeVO> memberCollegeVOS = new ArrayList<>();
List<MemberCollegeMappingDO> memberCollegeMappingDOS = memberCollegeMappingMapper.selectList(new QueryWrapper<MemberCollegeMappingDO>()
.lambda()
.eq(MemberCollegeMappingDO::getMemberId,memberDictDO1.getId()));
for (MemberCollegeMappingDO mcmd : memberCollegeMappingDOS){
MemberCollegeVO memberCollegeVO = new MemberCollegeVO();
BeanUtils.copyProperties(mcmd,memberCollegeVO);
LibCollegeDO libCollegeDO = libCollegeMapper.selectById(mcmd.getCollegeId());
memberCollegeVO.setCollege(libCollegeDO.getCollege());
LibMajorDO libMajorDO = libMajorMapper.selectById(mcmd.getMajorId());
memberCollegeVO.setMajor(libMajorDO.getMajor());
memberCollegeVOS.add(memberCollegeVO);
}
oneMemberVO.setMemberCollegeVOS(memberCollegeVOS);
//就业信息
List<MemberJobInfoVO> memberJobInfoVOS = new ArrayList<MemberJobInfoVO>();
List<MemberJobInfoDO> memberJobInfoDOS = memberJobInfoMapper.selectList(new QueryWrapper<MemberJobInfoDO>()
.lambda()
.eq(MemberJobInfoDO::getMemberId, memberDictDO1.getId()));
for (MemberJobInfoDO memberJobInfoDO : memberJobInfoDOS) {
MemberJobInfoVO memberJobInfoVO = new MemberJobInfoVO();
BeanUtils.copyProperties(memberJobInfoDO, memberJobInfoVO);
CompanyDictDO companyDictDO = companyDictMapper.selectById(memberJobInfoDO.getCompanyId());
memberJobInfoVO.setCompanyName(companyDictDO.getCompanyName());
memberJobInfoVOS.add(memberJobInfoVO);
}
oneMemberVO.setMemberJobInfoVOS(memberJobInfoVOS);
return oneMemberVO;
}
public String updateMember(UpdateMemberDTO updateMemberDTO) {
MemberDictDO memberDictDO1 = this.baseMapper.selectById(updateMemberDTO.getId());
MemberDictDO memberDictDO = new MemberDictDO();
BeanUtils.copyProperties(updateMemberDTO, memberDictDO);
this.baseMapper.updateById(memberDictDO);
List<MemberJobInfoVO> memberJobInfoVOS = updateMemberDTO.getMemberJobInfoVOS();
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("变更了“");
if (null != memberJobInfoVOS) {
memberJobInfoMapper.delete(new QueryWrapper<MemberJobInfoDO>()
.lambda()
.eq(MemberJobInfoDO::getMemberId, updateMemberDTO.getId()));
for (MemberJobInfoVO memberJobInfoVO : memberJobInfoVOS) {
MemberJobInfoDO memberJobInfoDO = new MemberJobInfoDO();
BeanUtils.copyProperties(memberJobInfoVO, memberJobInfoDO);
memberJobInfoMapper.insert(memberJobInfoDO);
}
stringBuffer.append("就业信息、");
}
//历史
MemberUpdateHistoryDO memberUpdateHistoryDO = new MemberUpdateHistoryDO();
memberUpdateHistoryDO.setAdministerId(updateMemberDTO.getUserId());
memberUpdateHistoryDO.setModule(updateMemberDTO.getModule());
memberUpdateHistoryDO.setMemberId(memberDictDO.getId());
if (!updateMemberDTO.getUserName().equals(memberDictDO1.getUserName())) {
stringBuffer.append("姓名、");
}
if (!updateMemberDTO.getTelephone().equals(memberDictDO1.getProvince())) {
stringBuffer.append("手机号码、");
}
if (!updateMemberDTO.getProvince().equals(memberDictDO1.getProvince())) {
stringBuffer.append("省、");
}
if (!updateMemberDTO.getCity().equals(memberDictDO1.getCity())) {
stringBuffer.append("市、");
}
if (!updateMemberDTO.getCounty().equals(memberDictDO1.getCounty())) {
stringBuffer.append("县、");
}
if (!updateMemberDTO.getAddress().equals(memberDictDO1.getAddress())) {
stringBuffer.append("具体地址、");
}
if (!updateMemberDTO.getEducation().equals(memberDictDO1.getEducation())) {
stringBuffer.append("学历、");
}
if (!updateMemberDTO.getEducationType().equals(memberDictDO1.getEducationType())) {
stringBuffer.append("学历类型、");
}
if (!updateMemberDTO.getCollegeId().equals(memberDictDO1.getCollegeId())) {
stringBuffer.append("院校、");
}
if (!updateMemberDTO.getIsPoor().equals(memberDictDO1.getIsPoor())) {
stringBuffer.append("是否为脱贫劳动力、");
}
if (!updateMemberDTO.getIsMigration().equals(memberDictDO1.getIsMigration())) {
stringBuffer.append("是否易迁户、");
}
if (!updateMemberDTO.getIsParty().equals(memberDictDO1.getIsParty())) {
stringBuffer.append("是否党员、");
}
if (!updateMemberDTO.getJobStatus().equals(memberDictDO1.getJobStatus())) {
stringBuffer.append("就业状态、");
}
String opr = stringBuffer.substring(0, stringBuffer.length() - 1) + "”";
memberUpdateHistoryDO.setOpr(opr);
memberUpdateHistoryMapper.insert(memberUpdateHistoryDO);
return ConstantUtils.SUCCESS_UPDATE;
}
}
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.laowu.common.exception.HttpException;
import com.laowu.model.MemberJobInfoDO;
import com.laowu.mapper.MemberJobInfoMapper;
import com.laowu.service.MemberJobInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.util.ConstantUtils;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-23
*/
@Service
public class MemberJobInfoServiceImpl extends ServiceImpl<MemberJobInfoMapper, MemberJobInfoDO> implements MemberJobInfoService {
public String addJob(MemberJobInfoDO memberJobInfoDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberJobInfoDO>()
.lambda()
.eq(MemberJobInfoDO::getMemberId, memberJobInfoDO.getMemberId())
.eq(MemberJobInfoDO::getCompanyId, memberJobInfoDO.getCompanyId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(memberJobInfoDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateJob(MemberJobInfoDO memberJobInfoDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberJobInfoDO>()
.lambda()
.eq(MemberJobInfoDO::getMemberId, memberJobInfoDO.getMemberId())
.eq(MemberJobInfoDO::getCompanyId, memberJobInfoDO.getCompanyId())
.ne(MemberJobInfoDO::getId, memberJobInfoDO.getId()));
if (count > 0){
throw new HttpException(70001);
}
this.baseMapper.updateById(memberJobInfoDO);
return ConstantUtils.SUCCESS_UPDATE;
}
public String deleteJob(MemberJobInfoDO memberJobInfoDO) {
this.baseMapper.deleteById(memberJobInfoDO.getId());
return ConstantUtils.DELETE_SUCCESS;
}
}
package com.laowu.service.impl;
import com.laowu.model.MemberTeamMappingDO;
import com.laowu.mapper.MemberTeamMappingMapper;
import com.laowu.service.MemberTeamMappingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 团队成员映射表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@Service
public class MemberTeamMappingServiceImpl extends ServiceImpl<MemberTeamMappingMapper, MemberTeamMappingDO> implements MemberTeamMappingService {
}
package com.laowu.service.impl;
import com.laowu.model.MemberUpdateHistoryDO;
import com.laowu.mapper.MemberUpdateHistoryMapper;
import com.laowu.service.MemberUpdateHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 公司更新日志表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
@Service
public class MemberUpdateHistoryServiceImpl extends ServiceImpl<MemberUpdateHistoryMapper, MemberUpdateHistoryDO> implements MemberUpdateHistoryService {
}
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.dto.place.AddPlaceDTO;
import com.laowu.mapper.CityDictMapper;
import com.laowu.mapper.PlaceDictMapper;
import com.laowu.mapper.PlaceImgsMapper;
import com.laowu.model.PlaceDictDO;
import com.laowu.model.PlaceImgsDO;
import com.laowu.service.PlaceDictService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.place.AllPlacesVO;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 地区字典表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-02-15
*/
@Service
public class PlaceDictServiceImpl extends ServiceImpl<PlaceDictMapper, PlaceDictDO> implements PlaceDictService {
@Autowired
private PlaceImgsMapper placeImgsMapper;
@Autowired
private CityDictMapper cityDictMapper;
public List<AllPlacesVO> allPlaces() {
List<AllPlacesVO> allPlacesVOS = new ArrayList<AllPlacesVO>();
List<PlaceDictDO> placeDictDOS = this.baseMapper.selectList(null);
for (PlaceDictDO placeDictDO : placeDictDOS) {
AllPlacesVO allPlacesVO = new AllPlacesVO();
BeanUtils.copyProperties(placeDictDO, allPlacesVO);
List<PlaceImgsDO> placeImgsDOS = placeImgsMapper.selectList(new QueryWrapper<PlaceImgsDO>()
.lambda()
.eq(PlaceImgsDO::getPlaceId, placeDictDO.getId()));
allPlacesVO.setPlaceImgsDOS(placeImgsDOS);
allPlacesVO.setCityName(cityDictMapper.getCityName(placeDictDO.getCityId()));
allPlacesVOS.add(allPlacesVO);
}
return allPlacesVOS;
}
public String deletePlace(PlaceDictDO placeDictDO) {
this.baseMapper.deleteById(placeDictDO.getId());
placeImgsMapper.delete(new QueryWrapper<PlaceImgsDO>()
.lambda()
.eq(PlaceImgsDO::getPlaceId, placeDictDO.getId()));
return ConstantUtils.DELETE_SUCCESS;
}
public String addPlace(AddPlaceDTO addPlaceDTO) {
int count = this.baseMapper.selectCount(new QueryWrapper<PlaceDictDO>()
.lambda()
.eq(PlaceDictDO::getPlace, addPlaceDTO.getPlace()));
if (count > 0) {
throw new HttpException(10001);
}
PlaceDictDO placeDictDO = new PlaceDictDO();
BeanUtils.copyProperties(addPlaceDTO, placeDictDO);
this.baseMapper.insert(placeDictDO);
List<PlaceImgsDO> placeImgsDOS = addPlaceDTO.getPlaceImgsDOS();
for (PlaceImgsDO placeImgsDO : placeImgsDOS) {
placeImgsDO.setPlaceId(placeDictDO.getId());
placeImgsMapper.insert(placeImgsDO);
}
return ConstantUtils.ADD_SUCCESS;
}
public String updatePlace(AddPlaceDTO addPlaceDTO) {
int count = this.baseMapper.selectCount(new QueryWrapper<PlaceDictDO>()
.lambda()
.eq(PlaceDictDO::getPlace, addPlaceDTO.getPlace())
.ne(PlaceDictDO::getId, addPlaceDTO.getId()));
if (count > 0) {
throw new HttpException(10001);
}
PlaceDictDO placeDictDO = new PlaceDictDO();
BeanUtils.copyProperties(addPlaceDTO, placeDictDO);
this.baseMapper.updateById(placeDictDO);
List<PlaceImgsDO> placeImgsDOS = addPlaceDTO.getPlaceImgsDOS();
if (placeImgsDOS.size() > 0) {
placeImgsMapper.delete(new QueryWrapper<PlaceImgsDO>()
.lambda()
.eq(PlaceImgsDO::getPlaceId, addPlaceDTO.getId()));
for (PlaceImgsDO placeImgsDO : placeImgsDOS) {
placeImgsDO.setPlaceId(addPlaceDTO.getId());
placeImgsMapper.insert(placeImgsDO);
}
}
return ConstantUtils.SUCCESS_UPDATE;
}
public AllPlacesVO onePlace(PlaceDictDO placeDictDO) {
PlaceDictDO placeDictDO1 = this.baseMapper.selectById(placeDictDO.getId());
AllPlacesVO allPlacesVO = new AllPlacesVO();
BeanUtils.copyProperties(placeDictDO1, allPlacesVO);
allPlacesVO.setCityName(cityDictMapper.getCityName(placeDictDO1.getCityId()));
List<PlaceImgsDO> placeImgsDOS = placeImgsMapper.selectList(new QueryWrapper<PlaceImgsDO>()
.lambda()
.eq(PlaceImgsDO::getPlaceId, placeDictDO1.getId()));
allPlacesVO.setPlaceImgsDOS(placeImgsDOS);
return null;
}
}
package com.laowu.service.impl;
import com.laowu.model.PositionAloneHistoryDO;
import com.laowu.mapper.PositionAloneHistoryMapper;
import com.laowu.service.PositionAloneHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 公司更新日志表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-04-06
*/
@Service
public class PositionAloneHistoryServiceImpl extends ServiceImpl<PositionAloneHistoryMapper, PositionAloneHistoryDO> implements PositionAloneHistoryService {
}
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.dto.position.AddAloneDTO;
import com.laowu.dto.position.AloneRequirementsDTO;
import com.laowu.mapper.*;
import com.laowu.model.*;
import com.laowu.service.PositionAloneInfoService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.position.AloneHistoryVO;
import com.laowu.vo.position.AloneRequirementsVO;
import com.laowu.vo.position.AloneWorkVO;
import com.laowu.vo.position.OneAloneRequirementVO;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* <p>
* 独立职位需求信息 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@Service
public class PositionAloneInfoServiceImpl extends ServiceImpl<PositionAloneInfoMapper, PositionAloneInfoDO> implements PositionAloneInfoService {
@Autowired
private WorkstationAloneMappingMapper workstationAloneMappingMapper;
@Autowired
private PositionAloneHistoryMapper positionAloneHistoryMapper;
@Autowired
private CompanyDictMapper companyDictMapper;
@Autowired
private LibJobSortMapper libJobSortMapper;
@Autowired
private PositionDictMapper positionDictMapper;
public IPage<AloneRequirementsVO> aloneRequirements(AloneRequirementsDTO aloneRequirementsDTO) {
Page pager = new Page(aloneRequirementsDTO.getPageNum(), aloneRequirementsDTO.getPageSize());
IPage<AloneRequirementsVO> aloneRequirementsVOIPage = this.baseMapper.aloneRequirements(pager, aloneRequirementsDTO.getPositionStatus(), aloneRequirementsDTO.getPositionName(), aloneRequirementsDTO.getPositionId(), aloneRequirementsDTO.getProvince(), aloneRequirementsDTO.getCity(), aloneRequirementsDTO.getCounty());
return aloneRequirementsVOIPage;
}
public String deleteRequestment(AddAloneDTO addAloneDTO) {
this.baseMapper.deleteById(addAloneDTO.getId());
//历史
PositionAloneHistoryDO positionAloneHistoryDO = new PositionAloneHistoryDO();
positionAloneHistoryDO.setAdministerId(addAloneDTO.getUserId());
positionAloneHistoryDO.setModule(addAloneDTO.getModule());
positionAloneHistoryDO.setRequireId(addAloneDTO.getId());
positionAloneHistoryDO.setOpr("创建了独立职位需求信息");
positionAloneHistoryMapper.insert(positionAloneHistoryDO);
return ConstantUtils.DELETE_SUCCESS;
}
public String addRequirement(AddAloneDTO addAloneDTO) {
PositionAloneInfoDO positionAloneInfoDO = new PositionAloneInfoDO();
BeanUtils.copyProperties(addAloneDTO, positionAloneInfoDO);
this.baseMapper.insert(positionAloneInfoDO);
//历史
PositionAloneHistoryDO positionAloneHistoryDO = new PositionAloneHistoryDO();
positionAloneHistoryDO.setAdministerId(addAloneDTO.getUserId());
positionAloneHistoryDO.setModule(addAloneDTO.getModule());
positionAloneHistoryDO.setRequireId(positionAloneInfoDO.getId());
positionAloneHistoryDO.setOpr("创建了独立职位需求信息");
positionAloneHistoryMapper.insert(positionAloneHistoryDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateRequirement(AddAloneDTO addAloneDTO) {
PositionAloneInfoDO positionAloneInfoDO1 = this.baseMapper.selectById(addAloneDTO.getId());
PositionAloneInfoDO positionAloneInfoDO = new PositionAloneInfoDO();
BeanUtils.copyProperties(addAloneDTO,positionAloneInfoDO);
this.baseMapper.updateById(positionAloneInfoDO);
//
//修改内容
PositionAloneHistoryDO positionAloneHistoryDO= new PositionAloneHistoryDO();
positionAloneHistoryDO.setAdministerId(addAloneDTO.getUserId());
positionAloneHistoryDO.setModule(addAloneDTO.getModule());
positionAloneHistoryDO.setRequireId(positionAloneInfoDO.getId());
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("变更了“");
//id itemName itemStatus companyId jobId infoOrigin province city county
if (!positionAloneInfoDO1.getPositionName().equals(addAloneDTO.getPositionName())){
stringBuffer.append("职位名称、");
}
if (!positionAloneInfoDO1.getCompanyId().equals(addAloneDTO.getCompanyId())){
stringBuffer.append("企业名称、");
}
if (!positionAloneInfoDO1.getPositionStatus().equals(addAloneDTO.getPositionStatus())){
stringBuffer.append("招聘状态、");
}
if (!positionAloneInfoDO1.getRequireCounts().equals(addAloneDTO.getRequireCounts())){
stringBuffer.append("预招人数、");
}
if (!positionAloneInfoDO1.getRecruitType().equals(addAloneDTO.getRecruitType())){
stringBuffer.append("招聘类型、");
}
if (!positionAloneInfoDO1.getPositionDesc().equals(addAloneDTO.getPositionDesc())){
stringBuffer.append("职位描述、");
}
if (!positionAloneInfoDO1.getPositionRequire().equals(addAloneDTO.getPositionRequire())){
stringBuffer.append("职位要求、");
}
if (!positionAloneInfoDO1.getInfoOrigin().equals(addAloneDTO.getInfoOrigin())){
stringBuffer.append("关联信息、");
}
if (!positionAloneInfoDO1.getStartSalary().equals(addAloneDTO.getStartSalary())){
stringBuffer.append("起薪、");
}
if (!positionAloneInfoDO1.getEndSalary().equals(addAloneDTO.getEndSalary())){
stringBuffer.append("止薪、");
}
if (!positionAloneInfoDO1.getProvince().equals(addAloneDTO.getProvince())||!positionAloneInfoDO1.getCity().equals(addAloneDTO.getCity())||!positionAloneInfoDO1.getCounty().equals(addAloneDTO.getCounty())){
stringBuffer.append("就业地区");
}
String opr = stringBuffer.substring(0, stringBuffer.length() - 1) + "”";
positionAloneHistoryDO.setOpr(opr);
positionAloneHistoryMapper.insert(positionAloneHistoryDO);
return ConstantUtils.SUCCESS_UPDATE;
}
public OneAloneRequirementVO oneAloneRequirement(PositionAloneInfoDO positionAloneInfoDO) {
OneAloneRequirementVO oneAloneRequirementVO = new OneAloneRequirementVO();
PositionAloneInfoDO positionAloneInfoDO1 = this.baseMapper.selectById(positionAloneInfoDO.getId());
BeanUtils.copyProperties(positionAloneInfoDO1, oneAloneRequirementVO);
CompanyDictDO companyDictDO = companyDictMapper.selectById(positionAloneInfoDO1.getCompanyId());
oneAloneRequirementVO.setCompanyName(companyDictDO.getCompanyName());
//职位分类
LibJobSortDO libJobSortDO = libJobSortMapper.selectById(positionAloneInfoDO1.getJobSortId());
oneAloneRequirementVO.setJobName(libJobSortDO.getJobName());
//职位范围
PositionDictDO positionDictDO = positionDictMapper.selectById(positionAloneInfoDO1.getPositionId());
oneAloneRequirementVO.setPositionType(positionDictDO.getPositionType());
//关联业务
List<AloneWorkVO> aloneWorkVOS = workstationAloneMappingMapper.aloneWorkVO(positionAloneInfoDO.getId());
oneAloneRequirementVO.setAloneWorkVOS(aloneWorkVOS);
//更新日志
List<AloneHistoryVO> aloneHistoryVOS = positionAloneHistoryMapper.aloneHistory(positionAloneInfoDO.getId());
oneAloneRequirementVO.setAloneHistoryVOS(aloneHistoryVOS);
return oneAloneRequirementVO;
}
}
...@@ -5,8 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; ...@@ -5,8 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.mapper.PositionDictMapper; import com.laowu.mapper.PositionDictMapper;
import com.laowu.model.PositionDictDO; import com.laowu.model.PositionDictDO;
import com.laowu.service.PositionDictService; import com.laowu.service.PositionDictService;
import com.laowu.vo.job.AllPositionVO; import com.laowu.util.ConstantUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -23,25 +22,90 @@ import java.util.List; ...@@ -23,25 +22,90 @@ import java.util.List;
@Service @Service
public class PositionDictServiceImpl extends ServiceImpl<PositionDictMapper, PositionDictDO> implements PositionDictService { public class PositionDictServiceImpl extends ServiceImpl<PositionDictMapper, PositionDictDO> implements PositionDictService {
public List<AllPositionVO> allPosition() { public List<PositionDictDO> allPosition() {
List<AllPositionVO> allPosition = new ArrayList<>(); List<PositionDictDO> result = new ArrayList<>();
//找到所有的父节点
List<PositionDictDO> positionDictDOS = this.baseMapper.selectList(new QueryWrapper<PositionDictDO>() List<PositionDictDO> positionDictDOS = this.baseMapper.selectList(new QueryWrapper<PositionDictDO>()
.lambda() .lambda()
.isNull(PositionDictDO::getParentId)); .isNull(PositionDictDO::getParentId));
for (PositionDictDO positionDictDO : positionDictDOS) {
AllPositionVO allPositionVO = new AllPositionVO(); for (PositionDictDO pdd : positionDictDOS){
BeanUtils.copyProperties(positionDictDO,allPositionVO); pdd.setChildren(getChildNodes(pdd));
result.add(pdd);
}
return result;
}
public String addPosition(PositionDictDO positionDictDO){
this.baseMapper.insert(positionDictDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updatePosition(PositionDictDO positionDict){
this.baseMapper.updateById(positionDict);
return ConstantUtils.SUCCESS_UPDATE;
}
public String deletePosition(PositionDictDO positionDict){
List<PositionDictDO> positionDictDOS1 = this.baseMapper.selectList(new QueryWrapper<PositionDictDO>() this.baseMapper.deleteById(positionDict.getId());
.lambda()
.eq(PositionDictDO::getParentId,positionDictDO.getId())); List<PositionDictDO> positionDictDOS = this.baseMapper.selectList(new QueryWrapper<PositionDictDO>()
allPositionVO.setPositionDictDOS(positionDictDOS1); .lambda()
allPosition.add(allPositionVO); .eq(PositionDictDO::getParentId,positionDict.getId()));
for (PositionDictDO pdd : positionDictDOS){
pdd.setChildren(removeChildNodes(pdd));
} }
return allPosition;
return ConstantUtils.DELETE_SUCCESS;
} }
/**
* 递归遍历课程子节点 并移除
*/
public List<PositionDictDO> removeChildNodes(PositionDictDO positionDictDO) {
//查找该父节点下的子节点
List<PositionDictDO> positionDictDOS = this.baseMapper.selectList(new QueryWrapper<PositionDictDO>()
.lambda()
.eq(PositionDictDO::getParentId, positionDictDO.getId()));
for (PositionDictDO pdd : positionDictDOS) {
pdd.setChildren(getChildNodes(pdd));
this.baseMapper.deleteById(pdd.getId());
}
if (positionDictDOS.size() == 0) {
return null;
}
return positionDictDOS;
}
/**
* 递归遍历子节点
*/
public List<PositionDictDO> getChildNodes(PositionDictDO positionDictDO){
List<PositionDictDO> result = new ArrayList<>();
//查找该父节点下的子节点
List<PositionDictDO> positionDictDOS = this.baseMapper.selectList(new QueryWrapper<PositionDictDO>()
.lambda()
.eq(PositionDictDO::getParentId,positionDictDO.getId()));
for (PositionDictDO pdd : positionDictDOS){
result.add(pdd);
pdd.setChildren(getChildNodes(pdd));
}
if (positionDictDOS.size()==0){
return null;
}
return result;
}
} }
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.dto.position.UpdateItemInfoDTO;
import com.laowu.mapper.PositionItemInfoMapper;
import com.laowu.mapper.PositionItemJobMappingMapper;
import com.laowu.model.PositionItemInfoDO;
import com.laowu.model.PositionItemJobMappingDO;
import com.laowu.service.PositionItemInfoService;
import com.laowu.util.ConstantUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 项目职位需求 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@Service
public class PositionItemInfoServiceImpl extends ServiceImpl<PositionItemInfoMapper, PositionItemInfoDO> implements PositionItemInfoService {
@Autowired
private PositionItemJobMappingMapper positionItemJobMappingMapper;
public String updateItemInfo(UpdateItemInfoDTO updateItemInfoDTO) {
PositionItemInfoDO positionItemInfoDO = new PositionItemInfoDO();
BeanUtils.copyProperties(updateItemInfoDTO, positionItemInfoDO);
this.updateById(positionItemInfoDO);
if (null != updateItemInfoDTO.getJobIds()) {
//找到已经有的work
List<Long> oldIds = positionItemJobMappingMapper.positionSortIds(updateItemInfoDTO.getId());
List<Long> newIds = updateItemInfoDTO.getJobIds();
List<Long> newIds2 = new ArrayList<Long>();
for (Long id : newIds) {
newIds2.add(id);
}
newIds.removeAll(oldIds); //新增的人在newIds里面
if (newIds.size() > 0) {
for (Long id : newIds) {
PositionItemJobMappingDO positionItemJobMappingDO = new PositionItemJobMappingDO();
positionItemJobMappingDO.setItemInfoId(updateItemInfoDTO.getId());
positionItemJobMappingDO.setJobSortId(id);
positionItemJobMappingMapper.insert(positionItemJobMappingDO);
}
}
oldIds.removeAll(newIds2);//删掉以前的
if (oldIds.size() > 0) {
for (Long id : oldIds) {
positionItemJobMappingMapper.delete(new QueryWrapper<PositionItemJobMappingDO>()
.lambda()
.eq(PositionItemJobMappingDO::getItemInfoId, updateItemInfoDTO.getId())
.eq(PositionItemJobMappingDO::getJobSortId, id));
}
}
}
return ConstantUtils.SUCCESS_UPDATE;
}
public String deleteItemInfo(PositionItemJobMappingDO positionItemJobMappingDO) {
this.baseMapper.deleteById(positionItemJobMappingDO.getId());
return ConstantUtils.DELETE_SUCCESS;
}
public String addItemInfo(UpdateItemInfoDTO updateItemInfoDTO) {
PositionItemInfoDO positionItemInfoDO = new PositionItemInfoDO();
BeanUtils.copyProperties(updateItemInfoDTO,positionItemInfoDO);
this.baseMapper.insert(positionItemInfoDO);
List<Long> jobIds = new ArrayList<Long>();
jobIds.stream().forEach(x->{
PositionItemJobMappingDO positionItemJobMappingDO = new PositionItemJobMappingDO();
positionItemJobMappingDO.setItemInfoId(positionItemInfoDO.getId());
positionItemJobMappingDO.setJobSortId(x);
positionItemJobMappingMapper.insert(positionItemJobMappingDO);
});
return ConstantUtils.ADD_SUCCESS;
}
}
package com.laowu.service.impl;
import com.laowu.model.PositionItemJobMappingDO;
import com.laowu.mapper.PositionItemJobMappingMapper;
import com.laowu.service.PositionItemJobMappingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 职位信息分类映射表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@Service
public class PositionItemJobMappingServiceImpl extends ServiceImpl<PositionItemJobMappingMapper, PositionItemJobMappingDO> implements PositionItemJobMappingService {
}
package com.laowu.service.impl;
import com.laowu.model.PositionRequireHistoryDO;
import com.laowu.mapper.PositionRequireHistoryMapper;
import com.laowu.service.PositionRequireHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 公司更新日志表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-04-06
*/
@Service
public class PositionRequireHistoryServiceImpl extends ServiceImpl<PositionRequireHistoryMapper, PositionRequireHistoryDO> implements PositionRequireHistoryService {
}
package com.laowu.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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.dto.position.AddRequirementsDTO;
import com.laowu.dto.position.RequirementsDTO;
import com.laowu.mapper.*;
import com.laowu.model.*;
import com.laowu.service.PositionRequireItemService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.position.*;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* <p>
* 项目职位需求信息 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-27
*/
@Service
public class PositionRequireItemServiceImpl extends ServiceImpl<PositionRequireItemMapper, PositionRequireItemDO> implements PositionRequireItemService {
@Autowired
private PositionItemInfoMapper positionItemInfoMapper;
@Autowired
private PositionItemJobMappingMapper positionItemJobMappingMapper;
@Autowired
private PositionRequireHistoryMapper positionRequireHistoryMapper;
@Autowired
private WorkstationRequireMappingMapper workstationRequireMappingMapper;
@Autowired
private CompanyDictMapper companyDictMapper;
public IPage<RequirementsVO> requirements(RequirementsDTO requirementsDTO) {
Page pager = new Page(requirementsDTO.getPageNum(), requirementsDTO.getPageSize());
IPage<RequirementsVO> iPage = this.baseMapper.requirements(pager, requirementsDTO.getItemName(), requirementsDTO.getItemStatus(), requirementsDTO.getProvince(), requirementsDTO.getCity(), requirementsDTO.getCounty(), requirementsDTO.getPositionId());
List<RequirementsVO> records = iPage.getRecords();
for (RequirementsVO rv : records) {
//预招人数
List<PositionCountsVO> positionItemInfoDOS = positionItemInfoMapper.positionCounts(rv.getId());
rv.setPositionItemInfoDOS(positionItemInfoDOS);
//职位分类
List<LibJobSortDO> libJobSortDOS = positionItemJobMappingMapper.positionSorts(rv.getId());
rv.setLibJobSortDOS(libJobSortDOS);
}
return iPage;
}
public String deleteRequirements(AddRequirementsDTO addRequirementsDTO) {
List<PositionItemInfoDO> itemInfoDOS = positionItemInfoMapper.selectList(new QueryWrapper<PositionItemInfoDO>()
.lambda()
.eq(PositionItemInfoDO::getPositionRequireId, addRequirementsDTO.getId()));
for (PositionItemInfoDO piid : itemInfoDOS) {
List<PositionItemJobMappingDO> positionItemJobMappingDOS = positionItemJobMappingMapper.selectList(new QueryWrapper<PositionItemJobMappingDO>()
.lambda()
.eq(PositionItemJobMappingDO::getItemInfoId, piid.getId()));
positionItemJobMappingDOS.stream().forEach(x -> {
positionItemJobMappingMapper.deleteById(x.getId());
});
positionItemInfoMapper.deleteById(piid.getId());
}
this.baseMapper.deleteById(addRequirementsDTO.getId());
PositionRequireHistoryDO positionRequireHistoryDO = new PositionRequireHistoryDO();
positionRequireHistoryDO.setRequireId(addRequirementsDTO.getId());
positionRequireHistoryDO.setAdministerId(addRequirementsDTO.getUserId());
positionRequireHistoryDO.setModule(addRequirementsDTO.getModule());
positionRequireHistoryDO.setOpr("删除了项目职位需求信息");
return ConstantUtils.DELETE_SUCCESS;
}
public String updateRequirements(AddRequirementsDTO addRequirementsDTO) {
PositionRequireItemDO positionRequireItemDO1 = this.baseMapper.selectById(addRequirementsDTO.getId());
PositionRequireItemDO positionRequireItemDO = new PositionRequireItemDO();
BeanUtils.copyProperties(addRequirementsDTO,positionRequireItemDO);
this.baseMapper.updateById(positionRequireItemDO);
//修改内容
PositionRequireHistoryDO positionRequireHistoryDO = new PositionRequireHistoryDO();
positionRequireHistoryDO.setAdministerId(addRequirementsDTO.getUserId());
positionRequireHistoryDO.setModule(addRequirementsDTO.getModule());
positionRequireHistoryDO.setRequireId(positionRequireItemDO.getId());
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("变更了“");
//id itemName itemStatus companyId jobId infoOrigin province city county
if (!positionRequireItemDO1.getItemName().equals(addRequirementsDTO.getItemName())){
stringBuffer.append("项目名称、");
}
if (!positionRequireItemDO1.getCompanyId().equals(addRequirementsDTO.getCompanyId())){
stringBuffer.append("企业名称、");
}
if (!positionRequireItemDO1.getItemStatus().equals(addRequirementsDTO.getItemStatus())){
stringBuffer.append("招聘状态、");
}
if (!positionRequireItemDO1.getInfoOrigin().equals(addRequirementsDTO.getInfoOrigin())){
stringBuffer.append("关联信息、");
}
if (!positionRequireItemDO1.getProvince().equals(addRequirementsDTO.getProvince())||!positionRequireItemDO1.getCity().equals(addRequirementsDTO.getCity())||!positionRequireItemDO1.getCounty().equals(addRequirementsDTO.getCounty())){
stringBuffer.append("就业地区");
}
String opr = stringBuffer.substring(0, stringBuffer.length() - 1) + "”";
positionRequireHistoryDO.setOpr(opr);
positionRequireHistoryMapper.insert(positionRequireHistoryDO);
return ConstantUtils.SUCCESS_UPDATE;
}
public String addRequirements(AddRequirementsDTO addRequirementsDTO) {
PositionRequireItemDO positionRequireItemDO = new PositionRequireItemDO();
BeanUtils.copyProperties(addRequirementsDTO,positionRequireItemDO);
this.baseMapper.insert(positionRequireItemDO);
PositionRequireHistoryDO positionRequireHistoryDO = new PositionRequireHistoryDO();
positionRequireHistoryDO.setRequireId(positionRequireHistoryDO.getId());
positionRequireHistoryDO.setAdministerId(addRequirementsDTO.getUserId());
positionRequireHistoryDO.setModule(addRequirementsDTO.getModule());
positionRequireHistoryDO.setOpr("创建了项目职位需求信息");
positionRequireHistoryMapper.insert(positionRequireHistoryDO);
return ConstantUtils.ADD_SUCCESS;
}
public OneRequirementVO oneRequirement(PositionRequireItemDO positionRequireItemDO) {
OneRequirementVO oneRequirementVO = new OneRequirementVO();
PositionRequireItemDO positionRequireItemDO1 = this.baseMapper.selectById(positionRequireItemDO.getId());
BeanUtils.copyProperties(positionRequireItemDO1,oneRequirementVO);
CompanyDictDO companyDictDO = companyDictMapper.selectById(positionRequireItemDO1.getCompanyId());
oneRequirementVO.setCompanyName(companyDictDO.getCompanyName());
//预招人数
List<PositionCountsVO> positionItemInfoDOS = positionItemInfoMapper.positionCounts(positionRequireItemDO.getId());
oneRequirementVO.setPositionItemInfoDOS(positionItemInfoDOS);
//职位分类
List<LibJobSortDO> libJobSortDOS = positionItemJobMappingMapper.positionSorts(positionRequireItemDO.getId());
oneRequirementVO.setLibJobSortDOS(libJobSortDOS);
//关联业务
List<RequireWorkstationsVO> requireWorkstationsVOS = workstationRequireMappingMapper.requireWorkstations(positionRequireItemDO.getId());
oneRequirementVO.setRequireWorkstationsVOS(requireWorkstationsVOS);
//更新日志
List<RequireHistoryVO> requireHistoryVOS = positionRequireHistoryMapper.requireHistory(positionRequireItemDO.getId());
oneRequirementVO.setRequireHistoryVOS(requireHistoryVOS);
return oneRequirementVO;
}
}
package com.laowu.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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.dto.team.*;
import com.laowu.mapper.*;
import com.laowu.model.*;
import com.laowu.service.TeamDictService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.job.RecentJobInfoVO;
import com.laowu.vo.team.*;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 团队字典表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@Service
public class TeamDictServiceImpl extends ServiceImpl<TeamDictMapper, TeamDictDO> implements TeamDictService {
@Autowired
private MemberDictMapper memberDictMapper;
@Autowired
private MemberTeamMappingMapper memberTeamMappingMapper;
@Autowired
private WorkstationDictMapper workstationDictMapper;
@Autowired
private MemberJobInfoMapper memberJobInfoMapper;
public IPage<TeamsVO> teams(TeamsDTO teamsDTO) {
Page pager = new Page(teamsDTO.getPageNum(), teamsDTO.getPageSize());
return this.baseMapper.teams(pager, teamsDTO.getStationId(), teamsDTO.getTeamName());
}
public TotalTeamsVO totalTeams(TeamDictDO teamDictDO) {
TotalTeamsVO totalTeamsVO = new TotalTeamsVO();
int count = this.baseMapper.selectCount(new QueryWrapper<TeamDictDO>()
.lambda()
.eq(TeamDictDO::getStationId, teamDictDO.getStationId()));
totalTeamsVO.setCount(count);
return totalTeamsVO;
}
public String deleteTeam(TeamDictDO teamDictDO) {
this.baseMapper.deleteById(teamDictDO.getId());
//将该团队里的人的teamId置为空
memberTeamMappingMapper.delete(new QueryWrapper<MemberTeamMappingDO>()
.lambda()
.eq(MemberTeamMappingDO::getTeamId, teamDictDO.getId()));
return ConstantUtils.DELETE_SUCCESS;
}
public String addTeam(TeamDictDO teamDictDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<TeamDictDO>()
.lambda()
.eq(TeamDictDO::getStationId, teamDictDO.getStationId())
.eq(TeamDictDO::getTeamName, teamDictDO.getTeamName()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(teamDictDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateTeam(TeamDictDO teamDictDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<TeamDictDO>()
.lambda()
.eq(TeamDictDO::getStationId, teamDictDO.getStationId())
.eq(TeamDictDO::getTeamName, teamDictDO.getTeamName())
.ne(TeamDictDO::getId, teamDictDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(teamDictDO);
if (null != teamDictDO.getMemberId()) {
int cnt = memberTeamMappingMapper.selectCount(new QueryWrapper<MemberTeamMappingDO>()
.lambda()
.eq(MemberTeamMappingDO::getMemberId, teamDictDO.getMemberId())
.eq(MemberTeamMappingDO::getTeamId, teamDictDO.getId()));
if (cnt == 0) {
MemberTeamMappingDO memberTeamMappingDO = new MemberTeamMappingDO();
memberTeamMappingDO.setTeamId(teamDictDO.getId());
memberTeamMappingDO.setMemberId(teamDictDO.getMemberId());
memberTeamMappingMapper.insert(memberTeamMappingDO);
}
}
return ConstantUtils.SUCCESS_UPDATE;
}
public IPage<MemberDictDO> teamMember(TeamMemberDTO teamMemberDTO) {
Page pager = new Page(teamMemberDTO.getPageNum(), teamMemberDTO.getPageSize());
return memberTeamMappingMapper.teamMembers(pager, teamMemberDTO.getTeamId());
}
public OneTeamInfoVO oneTeamInfo(TeamDictDO teamDictDO) {
OneTeamInfoVO oneTeamInfoVO = new OneTeamInfoVO();
TeamDictDO teamDictDO1 = this.baseMapper.selectById(teamDictDO.getId());
BeanUtils.copyProperties(teamDictDO1, oneTeamInfoVO);
Page pager = new Page(1, -1);
List<MemberDictDO> memberDictDOS = memberTeamMappingMapper.teamMembers(pager, teamDictDO.getId()).getRecords();
oneTeamInfoVO.setMemberDictDOS(memberDictDOS);
//团队带头人
if (null != teamDictDO1.getMemberId()){
MemberDictDO teamMember = memberDictMapper.selectById(teamDictDO1.getMemberId());
if (null != teamMember){
oneTeamInfoVO.setUserName(teamMember.getUserName());
}
}
//团队人数
int count = memberTeamMappingMapper.selectCount(new QueryWrapper<MemberTeamMappingDO>()
.lambda()
.eq(MemberTeamMappingDO::getTeamId,teamDictDO.getId()));
oneTeamInfoVO.setCt(String.valueOf(count));
return oneTeamInfoVO;
}
public IPage<MemberDictDO> noTeamMembers(TeamMemberDTO teamMemberDTO) {
Page pager = new Page(teamMemberDTO.getPageNum(), teamMemberDTO.getPageSize());
return memberTeamMappingMapper.noTeamMembers(pager, teamMemberDTO.getTeamId(), teamMemberDTO.getUserName());
}
public String updateMembers(UpdateTeamMembersDTO updateTeamMembersDTO) {
//找到已存在的成员
List<Long> oldIds = memberDictMapper.members(updateTeamMembersDTO.getTeamId());
List<Long> newIds = updateTeamMembersDTO.getMemberIds();
List<Long> newIds2 = new ArrayList<Long>();
for (Long id : newIds) {
newIds2.add(id);
}
newIds.removeAll(oldIds); //新增的人在newIds里面
if (newIds.size() > 0) {
for (Long id : newIds) {
MemberTeamMappingDO memberTeamMappingDO = new MemberTeamMappingDO();
memberTeamMappingDO.setMemberId(id);
memberTeamMappingDO.setTeamId(updateTeamMembersDTO.getTeamId());
memberTeamMappingMapper.insert(memberTeamMappingDO);
}
}
oldIds.removeAll(newIds2);//删掉以前的
if (oldIds.size() > 0) {
for (Long id : oldIds) {
memberTeamMappingMapper.delete(new QueryWrapper<MemberTeamMappingDO>()
.lambda()
.eq(MemberTeamMappingDO::getMemberId, id)
.eq(MemberTeamMappingDO::getTeamId, updateTeamMembersDTO.getTeamId()));
}
}
return ConstantUtils.SUCCESS_UPDATE;
}
public IPage<LeaderMembersVO> leaderMembers(LeaderMembersDTO leaderMembersDTO) {
Page pager = new Page(leaderMembersDTO.getPageNum(), leaderMembersDTO.getPageSize());
return this.baseMapper.leaderMembers(pager, leaderMembersDTO.getStationId(), leaderMembersDTO.getUserName());
}
public TotalTeamsVO leaderMemberCounts(TeamDictDO teamDictDO) {
TotalTeamsVO totalTeamsVO = new TotalTeamsVO();
totalTeamsVO.setCount(this.baseMapper.leaderMemberCounts(teamDictDO.getStationId()));
return totalTeamsVO;
}
public List<ProvinceStationTeamVO> provinceStationTeam() {
List<ProvinceStationTeamVO> provinceStationTeamVOS = new ArrayList<>();
//先查出所有省
List<String> provinces = workstationDictMapper.provinces();
for (String province : provinces) {
ProvinceStationTeamVO provinceStationTeamVO = new ProvinceStationTeamVO();
//工作站
List<WorkstationDictDO> workstationDictDOS = workstationDictMapper.selectList(new QueryWrapper<WorkstationDictDO>()
.lambda()
.eq(WorkstationDictDO::getProvince, province));
List<WorkstationDictVO> workstationDictVOS = new ArrayList<>();
for (WorkstationDictDO workstationDictDO : workstationDictDOS) {
WorkstationDictVO workstationDictVO = new WorkstationDictVO();
BeanUtils.copyProperties(workstationDictDO, workstationDictVO);
List<TeamDictDO> teamDictDOS = this.baseMapper.selectList(new QueryWrapper<TeamDictDO>()
.lambda()
.eq(TeamDictDO::getStationId, workstationDictDO.getId()));
workstationDictVO.setTeamDictDOS(teamDictDOS);
workstationDictVOS.add(workstationDictVO);
provinceStationTeamVO.setWorkstationDictVOS(workstationDictVOS);
}
provinceStationTeamVO.setProvince(province);
provinceStationTeamVOS.add(provinceStationTeamVO);
}
return provinceStationTeamVOS;
}
public IPage<MemberManagementVO> memberManagement(MemberManagementDTO memberManagementDTO) {
Page pager = new Page(memberManagementDTO.getPageNum(), memberManagementDTO.getPageSize());
IPage<MemberManagementVO> memberManagementVOIPage = this.baseMapper.memberManagement(pager, memberManagementDTO.getTeamId(), memberManagementDTO.getStationId(), memberManagementDTO.getProvince(), memberManagementDTO.getJobStatus(), memberManagementDTO.getUserName());
List<MemberManagementVO> memberManagementVOS = memberManagementVOIPage.getRecords();
for (MemberManagementVO memberManagementVO : memberManagementVOS) {
RecentJobInfoVO recentJobInfoVO = memberJobInfoMapper.recentJobInfo(memberManagementVO.getId());
if (null != recentJobInfoVO) {
//就业单位
memberManagementVO.setCompanyName(recentJobInfoVO.getCompanyName());
//就业月数
memberManagementVO.setJobMonth(recentJobInfoVO.getJobMonth());
//月均收入
memberManagementVO.setSalary(recentJobInfoVO.getSalary());
memberManagementVO.setCompanyProvince(recentJobInfoVO.getProvince());
memberManagementVO.setCompanyCity(recentJobInfoVO.getCity());
memberManagementVO.setCompanyCounty(recentJobInfoVO.getCounty());
memberManagementVO.setCompanyAddress(recentJobInfoVO.getAddress());
}
}
return memberManagementVOIPage;
}
public TotalTeamsVO memberManagementCount(MemberManagementDTO memberManagementDTO) {
TotalTeamsVO totalTeamsVO = new TotalTeamsVO();
totalTeamsVO.setCount(this.baseMapper.memberManagementCount(memberManagementDTO.getTeamId(), memberManagementDTO.getStationId(), memberManagementDTO.getProvince(), memberManagementDTO.getJobStatus()));
return totalTeamsVO;
}
public HomepageVO homepage(LibGeoLocationDO libGeoLocationDO) {
HomepageVO homepageVO = new HomepageVO();
return homepageVO;
}
}
package com.laowu.service.impl;
import com.laowu.model.WorkstationAdministersDO;
import com.laowu.mapper.WorkstationAdministersMapper;
import com.laowu.service.WorkstationAdministersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 工作站站长映射表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@Service
public class WorkstationAdministersServiceImpl extends ServiceImpl<WorkstationAdministersMapper, WorkstationAdministersDO> implements WorkstationAdministersService {
}
package com.laowu.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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.dto.station.StationAccountDTO;
import com.laowu.dto.station.StationsDTO;
import com.laowu.dto.station.UpdateAdministerDTO;
import com.laowu.mapper.AdministerMapper;
import com.laowu.mapper.WorkstationAdministersMapper;
import com.laowu.mapper.WorkstationDictMapper;
import com.laowu.model.AdministerDO;
import com.laowu.model.WorkstationAdministersDO;
import com.laowu.model.WorkstationDictDO;
import com.laowu.service.WorkstationDictService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.station.*;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 工作站 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-28
*/
@Service
public class WorkstationDictServiceImpl extends ServiceImpl<WorkstationDictMapper, WorkstationDictDO> implements WorkstationDictService {
@Autowired
private WorkstationAdministersMapper workstationAdministersMapper;
@Autowired
private AdministerMapper administerMapper;
public IPage<StationsVO> stations(StationsDTO stationsDTO) {
Page pager = new Page(stationsDTO.getPageNum(), stationsDTO.getPageSize());
IPage iPage = this.baseMapper.stations(pager, stationsDTO.getProvince(), stationsDTO.getCity(), stationsDTO.getCounty(), stationsDTO.getWorkstation());
List<StationsVO> stationsVOS = iPage.getRecords();
for (StationsVO stationsVO : stationsVOS) {
//站长
List<AdministerVO> administerVOS = workstationAdministersMapper.administers(stationsVO.getId());
stationsVO.setAdministerVOS(administerVOS);
}
return iPage;
}
public String deleteStation(WorkstationDictDO workstationDictDO) {
this.baseMapper.deleteById(workstationDictDO.getId());
workstationAdministersMapper.delete(new QueryWrapper<WorkstationAdministersDO>()
.lambda()
.eq(WorkstationAdministersDO::getWorkstationId, workstationDictDO.getId()));
return ConstantUtils.DELETE_SUCCESS;
}
public String addStation(WorkstationDictDO workstationDictDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<WorkstationDictDO>()
.lambda()
.eq(WorkstationDictDO::getWorkstationName, workstationDictDO.getWorkstationName()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(workstationDictDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateStation(WorkstationDictDO workstationDictDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<WorkstationDictDO>()
.lambda()
.eq(WorkstationDictDO::getWorkstationName, workstationDictDO.getWorkstationName())
.ne(WorkstationDictDO::getId, workstationDictDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(workstationDictDO);
return ConstantUtils.SUCCESS_UPDATE;
}
public IPage<StationAccountVO> stationAccount(StationAccountDTO stationAccountDTO) {
Page pager = new Page(stationAccountDTO.getPageNum(), stationAccountDTO.getPageSize());
return this.baseMapper.stationAccount(pager, stationAccountDTO.getWorkStation());
}
public OneStationAccountVO oneStationAccount(AdministerDO administerDO) {
OneStationAccountVO oneStationAccountVO = new OneStationAccountVO();
AdministerDO administerDO1 = administerMapper.selectById(administerDO.getId());
BeanUtils.copyProperties(administerDO1, oneStationAccountVO);
//查看映射关系
List<WorkstationDictDO> workstationDictDOS = workstationAdministersMapper.workstations(administerDO.getId());
oneStationAccountVO.setWorkstationDictDOS(workstationDictDOS);
return oneStationAccountVO;
}
public List<ProvinceStationsVO> provinceStations() {
List<ProvinceStationsVO> provinceStationsVOS = new ArrayList<>();
//先查出所有省
List<String> provinces = this.baseMapper.provinces();
//省下面的工作站
for (String province : provinces) {
ProvinceStationsVO provinceStationsVO = new ProvinceStationsVO();
provinceStationsVO.setProvince(province);
List<WorkstationDictDO> workstationDictDOS = this.baseMapper.selectList(new QueryWrapper<WorkstationDictDO>()
.lambda()
.eq(WorkstationDictDO::getProvince, province));
provinceStationsVO.setWorkstationDictDOS(workstationDictDOS);
provinceStationsVOS.add(provinceStationsVO);
}
return provinceStationsVOS;
}
public String updateAdminister(UpdateAdministerDTO updateAdministerDTO) {
AdministerDO administerDO = new AdministerDO();
BeanUtils.copyProperties(updateAdministerDTO, administerDO);
administerMapper.updateById(administerDO);
//工作站映射
List<Long> oldIds = workstationAdministersMapper.administerStations(updateAdministerDTO.getId());
List<Long> newIds = updateAdministerDTO.getStationIds();
List<Long> newIds2 = new ArrayList<>();
for (Long id : newIds) {
newIds2.add(id);
}
newIds.removeAll(oldIds); //新增的人在newIds里面
if (newIds.size() > 0) {
for (Long id : newIds) {
WorkstationAdministersDO workstationAdministersDO = new WorkstationAdministersDO();
workstationAdministersDO.setAdministerId(administerDO.getId());
workstationAdministersDO.setWorkstationId(id);
workstationAdministersMapper.insert(workstationAdministersDO);
}
}
oldIds.removeAll(newIds2);//删掉以前的
if (oldIds.size() > 0) {
for (Long id : oldIds) {
workstationAdministersMapper.delete(new QueryWrapper<WorkstationAdministersDO>()
.lambda()
.eq(WorkstationAdministersDO::getAdministerId, administerDO.getId())
.eq(WorkstationAdministersDO::getWorkstationId, id));
}
}
return ConstantUtils.SUCCESS_UPDATE;
}
public String addAdminister(UpdateAdministerDTO updateAdministerDTO) {
AdministerDO administerDO = new AdministerDO();
BeanUtils.copyProperties(updateAdministerDTO, administerDO);
administerMapper.insert(administerDO);
//工作站映射
List<Long> oldIds = updateAdministerDTO.getStationIds();
if (oldIds.size() > 0) {
for (Long id : oldIds) {
WorkstationAdministersDO workstationAdministersDO = new WorkstationAdministersDO();
workstationAdministersDO.setAdministerId(administerDO.getId());
workstationAdministersDO.setWorkstationId(id);
workstationAdministersMapper.insert(workstationAdministersDO);
}
}
return ConstantUtils.ADD_SUCCESS;
}
}
package com.laowu.service.impl;
import com.laowu.model.WorkstationMemberMappingDO;
import com.laowu.mapper.WorkstationMemberMappingMapper;
import com.laowu.service.WorkstationMemberMappingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 学员--工作站映射关系 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
@Service
public class WorkstationMemberMappingServiceImpl extends ServiceImpl<WorkstationMemberMappingMapper, WorkstationMemberMappingDO> implements WorkstationMemberMappingService {
}
package com.laowu.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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.dto.station.RequiresDTO;
import com.laowu.dto.station.ShareDTO;
import com.laowu.mapper.PositionItemInfoMapper;
import com.laowu.mapper.PositionItemJobMappingMapper;
import com.laowu.mapper.WorkstationRequireMappingMapper;
import com.laowu.model.LibJobSortDO;
import com.laowu.model.WorkstationRequireMappingDO;
import com.laowu.service.WorkstationRequireMappingService;
import com.laowu.util.ConstantUtils;
import com.laowu.vo.position.PositionCountsVO;
import com.laowu.vo.station.RequireStationsVO;
import com.laowu.vo.station.RequiresVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 职位需求工作站映射表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-30
*/
@Service
public class WorkstationRequireMappingServiceImpl extends ServiceImpl<WorkstationRequireMappingMapper, WorkstationRequireMappingDO> implements WorkstationRequireMappingService {
@Autowired
private PositionItemInfoMapper positionItemInfoMapper;
@Autowired
private PositionItemJobMappingMapper positionItemJobMappingMapper;
public IPage<RequiresVO> requires(RequiresDTO requiresDTO) {
Page pager = new Page(requiresDTO.getPageNum(), requiresDTO.getPageSize());
IPage<RequiresVO> iPage = this.baseMapper.requires(pager, requiresDTO.getItemName(), requiresDTO.getItemStatus(), requiresDTO.getProvince(), requiresDTO.getCity(), requiresDTO.getCounty(), requiresDTO.getPositionId(), requiresDTO.getStationId());
List<RequiresVO> records = iPage.getRecords();
for (RequiresVO rv : records) {
//预招人数
List<PositionCountsVO> positionItemInfoDOS = positionItemInfoMapper.positionCounts(rv.getId());
rv.setPositionItemInfoDOS(positionItemInfoDOS);
//职位分类
List<LibJobSortDO> libJobSortDOS = positionItemJobMappingMapper.positionSorts(rv.getId());
rv.setLibJobSortDOS(libJobSortDOS);
}
return iPage;
}
public String deleteRequire(WorkstationRequireMappingDO workstationRequireMappingDO) {
this.baseMapper.delete(new QueryWrapper<WorkstationRequireMappingDO>()
.lambda()
.eq(WorkstationRequireMappingDO::getRequireId, workstationRequireMappingDO.getRequireId())
.eq(WorkstationRequireMappingDO::getStationId, workstationRequireMappingDO.getStationId()));
return ConstantUtils.DELETE_SUCCESS;
}
public String share(ShareDTO shareDTO) {
List<Long> requireIds = shareDTO.getRequireIds();
for (Long requireId : requireIds){
List<Long> oldIds = this.baseMapper.requiresStations(requireId);
List<Long> newIds = shareDTO.getStationIds();
List<Long> newIds2 = new ArrayList<Long>();
for (Long id : newIds) {
newIds2.add(id);
}
newIds.removeAll(oldIds); //新增的人在newIds里面
if (newIds.size()>0){
for (Long id : newIds){
WorkstationRequireMappingDO workstationRequireMappingDO = new WorkstationRequireMappingDO();
workstationRequireMappingDO.setRequireId(requireId);
workstationRequireMappingDO.setStationId(id);
this.baseMapper.insert(workstationRequireMappingDO);
}
}
oldIds.removeAll(newIds2);//删掉以前的
if (oldIds.size()>0){
for (Long id : oldIds){
this.baseMapper.delete(new QueryWrapper<WorkstationRequireMappingDO>()
.lambda()
.eq(WorkstationRequireMappingDO::getRequireId,requireId)
.eq(WorkstationRequireMappingDO::getStationId,id));
}
}
}
return ConstantUtils.SUCCESS_UPDATE;
}
public RequireStationsVO requireStations(WorkstationRequireMappingDO workstationRequireMappingDO) {
RequireStationsVO requireStationsVO = new RequireStationsVO();
requireStationsVO.setIds(this.baseMapper.requiresStations(workstationRequireMappingDO.getRequireId()));
return requireStationsVO;
}
}
package com.laowu.vo.college;
import com.laowu.model.LibCollegeDO;
import lombok.Data;
@Data
public class CollegeVO extends LibCollegeDO {
private Integer majorCount;
}
package com.laowu.vo.college;
import com.laowu.model.LibCollegeDO;
import com.laowu.vo.major.CollegeMajorsVO;
import lombok.Data;
import java.util.List;
@Data
public class OneCollegeVO extends LibCollegeDO {
private List<CollegeMajorsVO> collegeMajorsVOS;
}
package com.laowu.vo.company;
import com.laowu.model.CompanyUpdateHistoryDO;
import lombok.Data;
@Data
public class CompanyUpdateHistoryVO extends CompanyUpdateHistoryDO {
private String account;
}
package com.laowu.vo.company; package com.laowu.vo.company;
import com.laowu.model.CompanyLabelDO;
import com.laowu.model.CompanyPhotoDO; import com.laowu.model.CompanyPhotoDO;
import lombok.Data; import lombok.Data;
...@@ -10,24 +11,30 @@ public class CompanyVO { ...@@ -10,24 +11,30 @@ public class CompanyVO {
private Long id; private Long id;
private Long cityId; private Long positionId;
private Long businessId;
private String companyName; private String companyName;
private String companyLogo; private String province;
private String county;
private String city; private String city;
private String business; private String positionType;
private String companyCode; private String companyCode;
private String account;
private String companyDesc; private String companyDesc;
private String companyOrigin;
private List<CompanyPhotoDO> companyPhotoDOS; private List<CompanyPhotoDO> companyPhotoDOS;
private List<CompanyLabelDO> companyLabelDOS;
private List<RelateWorkVO> relateWorkVOS;
private List<CompanyUpdateHistoryVO> companyUpdateHistoryVOS;
} }
package com.laowu.vo.company;
import lombok.Data;
@Data
public class RelateWorkVO {
private Long id;
private String work;
private String createDate;
}
package com.laowu.vo.geo;
import lombok.Data;
import java.util.List;
@Data
public class CityVO {
private String city;
private List<String> county;
}
package com.laowu.vo.geo;
import lombok.Data;
@Data
public class GeoVO {
private Long id;
private String province;
private String city;
private String county;
private String town;
private String cnt;
}
package com.laowu.vo.geo;
import lombok.Data;
import java.util.List;
@Data
public class ProvincesVO {
private String province;
private List<CityVO> cityVOS;
}
package com.laowu.vo.job;
import lombok.Data;
@Data
public class RecentJobInfoVO {
private String companyName;
private String jobMonth;
private String salary;
private String province;
private String city;
private String county;
private String address;
}
package com.laowu.vo.major;
import lombok.Data;
@Data
public class AllMajorVO {
private Long id;
private String collegeType;
private String major;
private String majorCode;
}
package com.laowu.vo.major;
import lombok.Data;
@Data
public class CollegeMajorsVO {
private Long id;
private Long majorId;
private String major;
private String majorCode;
private Integer studentCnt;
}
package com.laowu.vo.member;
import lombok.Data;
@Data
public class AllMembersVO {
private Long id;
private String userName;
private String status;
private String telephone;
private String idCardType;
private String idCard;
private String province;
private String city;
private String county;
private String address;
}
package com.laowu.vo.member;
import com.laowu.model.MemberCollegeMappingDO;
import lombok.Data;
@Data
public class MemberCollegeVO extends MemberCollegeMappingDO {
private String college;
private String major;
}
package com.laowu.vo.member;
import com.laowu.model.MemberJobInfoDO;
import lombok.Data;
@Data
public class MemberJobInfoVO extends MemberJobInfoDO {
private String companyName;
}
package com.laowu.vo.member;
import com.laowu.model.MemberDictDO;
import lombok.Data;
import java.util.List;
@Data
public class OneMemberVO extends MemberDictDO {
private String college;
private String major;
private List<MemberJobInfoVO> memberJobInfoVOS;
private List<MemberCollegeVO> memberCollegeVOS;
}
package com.laowu.vo.place;
import com.laowu.model.PlaceImgsDO;
import lombok.Data;
import java.util.List;
@Data
public class AllPlacesVO {
private Long id;
private String place;
private String secondTitle;
private String desc;
private Long cityId;
private String cityName;
private List<PlaceImgsDO> placeImgsDOS;
}
package com.laowu.vo.position;
import lombok.Data;
@Data
public class AloneHistoryVO {
private Long id;
private String userName;
private String module;
private String opr;
}
package com.laowu.vo.position;
import lombok.Data;
@Data
public class AloneRequirementsVO {
private Long id;
private Long companyId;
private String companyName;
private String positionStatus;
private String requireCounts;
private String positionName;
private String recruitType;
private String province;
private String city;
private String county;
private Long jobSortId;
private Long positionId;
private String jobId;
private String positionDesc;
private String positionRequire;
private String startSalary;
private String endSalary;
private String jobName;
private String positionType;
private Long stationId;
private String address;
}
package com.laowu.vo.position;
import lombok.Data;
@Data
public class AloneWorkVO {
private Long id;
private String workstationName;
private String createDate;
}
package com.laowu.vo.position;
import com.laowu.model.PositionAloneInfoDO;
import lombok.Data;
import java.util.List;
@Data
public class OneAloneRequirementVO extends PositionAloneInfoDO {
private String companyName;
private String jobName;
private String positionType;
private List<AloneWorkVO> aloneWorkVOS;
private List<AloneHistoryVO> aloneHistoryVOS;
}
package com.laowu.vo.position;
import com.laowu.model.LibJobSortDO;
import com.laowu.model.PositionRequireItemDO;
import lombok.Data;
import java.util.List;
@Data
public class OneRequirementVO extends PositionRequireItemDO {
private String companyName;
private Long positionId;
private List<RequireWorkstationsVO> requireWorkstationsVOS;
private List<RequireHistoryVO> requireHistoryVOS;
private List<PositionCountsVO> positionItemInfoDOS;
private List<LibJobSortDO> libJobSortDOS;
}
package com.laowu.vo.position;
import lombok.Data;
@Data
public class PositionCountsVO {
private Long id;
private String positionName;
private String positionStatus;
private Integer requireCounts;
private String address;
private String startSalary;
private String endSalary;
private Long positionId;
private String positionType;
}
package com.laowu.vo.position;
import lombok.Data;
@Data
public class RequireHistoryVO {
private Long id;
private String userName;
private String module;
private String opr;
}
package com.laowu.vo.position;
import lombok.Data;
@Data
public class RequireWorkstationsVO {
private Long id;
private String workstationName;
private String createDate;
}
package com.laowu.vo.position;
import com.laowu.model.LibJobSortDO;
import lombok.Data;
import java.util.List;
@Data
public class RequirementsVO {
private Long id;
private Long companyId;
private String companyName;
private String province;
private String city;
private String county;
private String itemName;
private String itemStatus;
private String jobId;
private String positionStatus;
private List<PositionCountsVO> positionItemInfoDOS;
private List<LibJobSortDO> libJobSortDOS;
}
package com.laowu.vo.station;
import lombok.Data;
@Data
public class AdministerVO {
private Long id;
private String userName;
}
package com.laowu.vo.station;
import com.laowu.model.WorkstationDictDO;
import lombok.Data;
import java.util.List;
@Data
public class OneStationAccountVO {
private Long id;
private String account;
private String password;
private String userName;
private String telephone;
private List<WorkstationDictDO> workstationDictDOS;
}
package com.laowu.vo.station;
import com.laowu.model.WorkstationDictDO;
import lombok.Data;
import java.util.List;
@Data
public class ProvinceStationsVO {
private String province;
private List<WorkstationDictDO> workstationDictDOS;
}
package com.laowu.vo.city; package com.laowu.vo.station;
import com.laowu.model.CityDictDO;
import lombok.Data; import lombok.Data;
import java.util.List; import java.util.List;
@Data @Data
public class AllCitiesVO extends CityDictDO{ public class RequireStationsVO {
private List<CityDictDO> cityDictDOS; private List<Long> ids;
} }
package com.laowu.vo.station;
import com.laowu.model.LibJobSortDO;
import com.laowu.vo.position.PositionCountsVO;
import lombok.Data;
import java.util.List;
@Data
public class RequiresVO {
private Long id;
private Long companyId;
private String companyName;
private String province;
private String city;
private String county;
private String itemName;
private String itemStatus;
private String jobId;
private Long stationId;
private List<PositionCountsVO> positionItemInfoDOS;
private List<LibJobSortDO> libJobSortDOS;
}
package com.laowu.vo.station;
import lombok.Data;
@Data
public class StationAccountVO {
private Integer id;
private String stationName;
private String userName;
private String account;
private String telephone;
private String password;
}
package com.laowu.vo.station;
import com.laowu.model.WorkstationDictDO;
import lombok.Data;
import java.util.List;
@Data
public class StationsVO extends WorkstationDictDO {
private List<AdministerVO> administerVOS;
}
package com.laowu.vo.team;
import lombok.Data;
@Data
public class HomepageVO {
}
package com.laowu.vo.team;
import lombok.Data;
@Data
public class LeaderMembersVO {
private Long id;
private String userName;
private String telephone;
private String idCardType;
private String idCard;
private String teamCnt;
private String teamTotalCnt;
}
package com.laowu.vo.team;
import lombok.Data;
@Data
public class MemberManagementVO {
private Long id;
private String userName;
private String jobStatus;
private String telephone;
private String idCardType;
private String idCard;
private String province;
private String city;
private String address;
private String startDate;
private String endDate;
private String isPoor;
private String isMigration;
private String isParty;
private String companyName;
private String jobMonth;
private String salary;
private String companyProvince;
private String companyCity;
private String companyCounty;
private String companyAddress;
}
package com.laowu.vo.team;
import com.laowu.model.MemberDictDO;
import com.laowu.model.TeamDictDO;
import lombok.Data;
import java.util.List;
@Data
public class OneTeamInfoVO extends TeamDictDO {
private List<MemberDictDO> memberDictDOS;
private String ct;
private String userName;
}
package com.laowu.vo.team;
import lombok.Data;
import java.util.List;
@Data
public class ProvinceStationTeamVO {
private String province;
private List<WorkstationDictVO> workstationDictVOS;
}
package com.laowu.vo.team;
import lombok.Data;
@Data
public class TeamsVO {
private Long id;
private String teamName;
private String ct;
private String userName;
private String comment;
}
package com.laowu.vo.team;
import lombok.Data;
@Data
public class TotalTeamsVO {
private Integer count;
}
package com.laowu.vo.team;
import com.laowu.model.TeamDictDO;
import com.laowu.model.WorkstationDictDO;
import lombok.Data;
import java.util.List;
@Data
public class WorkstationDictVO extends WorkstationDictDO {
private List<TeamDictDO> teamDictDOS;
}
...@@ -12,3 +12,5 @@ laowu.code-message[50001]=账号或密码错误 ...@@ -12,3 +12,5 @@ laowu.code-message[50001]=账号或密码错误
laowu.code-message[60001]=该经营范围已存在 laowu.code-message[60001]=该经营范围已存在
laowu.code-message[70001]=该记录已存在
...@@ -37,6 +37,24 @@ ...@@ -37,6 +37,24 @@
<if test="id !=null and id !=''"> <if test="id !=null and id !=''">
and t.administer_id = #{id} and t.administer_id = #{id}
</if> </if>
</select>
<select id="all" resultType="com.laowu.model.AdministerDO">
SELECT
id,
account,
user_name,
telephone,
STATUS,
remark,
create_date,
update_date,
delete_date
FROM
administer t
WHERE
t.delete_date IS NULL
and t.status = #{status}
</select> </select>
</mapper> </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.laowu.mapper.CollegeMajorMappingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.CollegeMajorMappingDO">
<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>
<select id="collegeMajors" parameterType="long" resultType="com.laowu.vo.major.CollegeMajorsVO">
SELECT
t.id,
t2.id as majorId,
t2.major,
t2.major_code,
t.student_cnt
FROM
college_major_mapping t
LEFT JOIN lib_major t2 ON t.major_id = t2.id
WHERE
t.delete_date is null
and t2.delete_date is null
and t.college_id = #{collegeId}
</select>
</mapper>
...@@ -4,14 +4,13 @@ ...@@ -4,14 +4,13 @@
<!-- 通用查询映射结果 --> <!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.CompanyDictDO"> <resultMap id="BaseResultMap" type="com.laowu.model.CompanyDictDO">
<id column="id" property="id" /> <id column="id" property="id"/>
<result column="create_date" property="createDate" /> <result column="create_date" property="createDate"/>
<result column="update_date" property="updateDate" /> <result column="update_date" property="updateDate"/>
<result column="delete_date" property="deleteDate" /> <result column="delete_date" property="deleteDate"/>
<result column="company_name" property="companyName" /> <result column="company_name" property="companyName"/>
<result column="place_id" property="placeId" /> <result column="company_code" property="companyCode"/>
<result column="company_code" property="companyCode" /> <result column="account" property="account"/>
<result column="account" property="account" />
</resultMap> </resultMap>
<!-- 通用查询结果列 --> <!-- 通用查询结果列 -->
...@@ -24,34 +23,99 @@ ...@@ -24,34 +23,99 @@
<select id="company" resultType="com.laowu.vo.company.CompanyVO"> <select id="company" resultType="com.laowu.vo.company.CompanyVO">
SELECT SELECT
t.id, t.id,
t2.id as city_id, t3.id as position_id,
t3.id as business_id, t.company_name,
t.company_name, t3.position_type,
t.company_logo, t.company_code,
t2.city, t.company_desc,
t3.business, t.province,
t.company_code, t.city,
t.account, t.county,
t.company_desc t.company_origin
FROM FROM
company_dict t company_dict t
LEFT JOIN city_dict t2 ON t.city_id = t2.id LEFT JOIN position_dict t3 ON t.position_id = t3.id
LEFT JOIN business_dict t3 ON t.business_id = t3.id
WHERE WHERE
t.delete_date IS NULL t.delete_date IS NULL
AND t3.delete_date IS NULL
<if test="province != null and province != ''">
and t.province = #{province}
</if>
<if test="city != null and city != ''">
and t.city = #{city}
</if>
<if test="county != null and county != ''">
and t.county = #{county}
</if>
<if test="companyName != null and companyName != ''">
AND t.company_name LIKE concat('%', #{companyName}, '%')
</if>
</select>
<select id="stationCompanyCount" parameterType="long" resultType="integer">
SELECT
count(distinct(t4.id))
FROM
workstation_dict t1
LEFT JOIN workstation_alone_mapping t2 ON t1.id = t2.station_id
LEFT JOIN position_alone_info t3 ON t2.alone_id = t3.id
LEFT JOIN company_dict t4 ON t3.company_id = t4.id
WHERE
t1.id = 1
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL
AND t4.delete_date IS NULL UNION
SELECT
t1.id,
t4.company_name
FROM
workstation_dict t1
LEFT JOIN workstation_require_mapping t2 ON t1.id = t2.station_id
LEFT JOIN position_require_item t3 ON t2.require_id = t3.id
LEFT JOIN company_dict t4 ON t3.company_id = t4.id
WHERE
t1.id = 1
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL
AND t4.delete_date IS NULL
</select>
<select id="stationCompany" resultType="com.laowu.vo.company.CompanyVO">
SELECT
t2.id,
t2.position_id,
t2.company_name,
t3.position_type,
t2.company_code,
t2.company_desc,
t2.province,
t2.city,
t2.county
FROM
company_relate_work t
LEFT JOIN company_dict t2 ON t.company_id = t2.id
LEFT JOIN position_dict t3 ON t2.position_id = t3.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL AND t2.delete_date IS NULL
AND t3.delete_date IS NULL AND t3.delete_date IS NULL
and t2.parent_id is null and t.station_id = #{stationId}
<if test="cityId != null and cityId != ''"> <if test="province != null and province != ''">
and t.city_id = #{cityId} and t2.province = #{province}
</if> </if>
<if test="businessId != null and businessId != ''"> <if test="city != null and city != ''">
and t.business_id = #{businessId} and t2.city = #{city}
</if> </if>
<if test="companyName != null and companyName != ''"> <if test="county != null and county != ''">
AND t.company_name LIKE concat('%', #{companyName}, '%') and t2.county = #{county}
</if> </if>
<if test="companyName != null and companyName != ''">
AND t2.company_name LIKE concat('%', #{companyName}, '%')
</if>
</select> </select>
</mapper> </mapper>
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.laowu.mapper.BusinessDictMapper"> <mapper namespace="com.laowu.mapper.CompanyLabelMapper">
<!-- 通用查询映射结果 --> <!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.BusinessDictDO"> <resultMap id="BaseResultMap" type="com.laowu.model.CompanyLabelDO">
<id column="id" property="id" /> <id column="id" property="id" />
<result column="create_date" property="createDate" /> <result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" /> <result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" /> <result column="delete_date" property="deleteDate" />
<result column="business" property="business" /> <result column="company_id" property="companyId" />
<result column="label" property="label" />
</resultMap> </resultMap>
<!-- 通用查询结果列 --> <!-- 通用查询结果列 -->
...@@ -16,7 +17,7 @@ ...@@ -16,7 +17,7 @@
create_date, create_date,
update_date, update_date,
delete_date, delete_date,
id, business id, company_id, label
</sql> </sql>
</mapper> </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.laowu.mapper.CompanyRelateWorkMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.CompanyRelateWorkDO">
<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_id" property="companyId" />
<result column="work_id" property="workId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, company_id, work_id
</sql>
<select id="relateWork" parameterType="long" resultType="com.laowu.vo.company.RelateWorkVO">
SELECT
t2.id,t2.station_id,t2.create_date
FROM
company_relate_work t2
WHERE
t2.delete_date IS NULL
AND t2.company_id = #{companyId}
</select>
<select id="relateWorkId" parameterType="long" resultType="long">
SELECT
t.id
FROM
relate_work t
LEFT JOIN company_relate_work t2 ON t.id = t2.work_id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
AND t2.company_id = #{companyId}
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.laowu.mapper.CityDictMapper"> <mapper namespace="com.laowu.mapper.CompanyUpdateHistoryMapper">
<!-- 通用查询映射结果 --> <!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.CityDictDO"> <resultMap id="BaseResultMap" type="com.laowu.model.CompanyUpdateHistoryDO">
<id column="id" property="id" /> <id column="id" property="id" />
<result column="create_date" property="createDate" /> <result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" /> <result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" /> <result column="delete_date" property="deleteDate" />
<result column="city" property="city" /> <result column="company_id" property="companyId" />
<result column="administer_id" property="administerId" />
<result column="module" property="module" />
</resultMap> </resultMap>
<!-- 通用查询结果列 --> <!-- 通用查询结果列 -->
...@@ -16,19 +18,21 @@ ...@@ -16,19 +18,21 @@
create_date, create_date,
update_date, update_date,
delete_date, delete_date,
id, province_id, city id, company_id, administer_id, module, content
</sql> </sql>
<select id="getCityName" parameterType="long" resultType="string"> <select id="companyUpdateHistory" parameterType="long" resultType="com.laowu.vo.company.CompanyUpdateHistoryVO">
SELECT SELECT
concat( t2.city, t.city ) AS cityName t.*,
t2.account
FROM FROM
city_dict t company_update_history t
LEFT JOIN city_dict t2 ON t.parent_id = t2.id LEFT JOIN administer t2 ON t.administer_id = t2.id
WHERE WHERE
t.delete_date IS NULL t.delete_date IS NULL
AND t2.delete_date IS NULL AND t2.delete_date IS NULL
and t2.parent_id is null AND t.company_id = #{companyId}
AND t.id = #{id} order by t.create_date desc
</select> </select>
</mapper> </mapper>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
t6.id as parent_position_id, t6.id as parent_position_id,
t6.position_type AS parentType, t6.position_type AS parentType,
t5.position_type AS sonType, t5.position_type AS sonType,
CONCAT( t6.position_code, t5.position_code, t.job_id ) AS jobId t.job_id AS jobId
FROM FROM
job_dict t job_dict t
LEFT JOIN recruit_dict t2 ON t.recruit_id = t2.id LEFT JOIN recruit_dict t2 ON t.recruit_id = t2.id
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
t2.recruit_type, t2.recruit_type,
t6.position_type AS parentType, t6.position_type AS parentType,
t5.position_type AS sonType, t5.position_type AS sonType,
CONCAT( t6.position_code, t5.position_code, t.job_id ) AS jobId, t.job_id AS jobId,
t.job_desc, t.job_desc,
t.job_requirement, t.job_requirement,
t7.company_desc, t7.company_desc,
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
t2.recruit_type, t2.recruit_type,
t6.position_type AS parentType, t6.position_type AS parentType,
t5.position_type AS sonType, t5.position_type AS sonType,
CONCAT( t6.position_code, t5.position_code, t.job_id ) AS jobId t.job_id AS jobId
FROM FROM
job_dict t job_dict t
LEFT JOIN recruit_dict t2 ON t.recruit_id = t2.id LEFT JOIN recruit_dict t2 ON t.recruit_id = t2.id
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
t.job_desc, t.job_desc,
t.start_salary, t.start_salary,
t.end_salary, t.end_salary,
CONCAT( t6.position_code, t5.position_code, t.job_id ) AS jobId t.job_id AS jobId
FROM FROM
job_dict t job_dict t
LEFT JOIN recruit_dict t2 ON t.recruit_id = t2.id LEFT JOIN recruit_dict t2 ON t.recruit_id = t2.id
......
<?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.laowu.mapper.LibCollegeMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.LibCollegeDO">
<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" property="college" />
<result column="province" property="province" />
<result column="city" property="city" />
<result column="county" property="county" />
<result column="town" property="town" />
<result column="college_type" property="collegeType" />
<result column="college_code" property="collegeCode" />
<result column="status" property="status" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, college, province, city, county, town, college_type, college_code, status
</sql>
<select id="colleges" parameterType="string" resultType="com.laowu.vo.college.CollegeVO">
SELECT
*
FROM
lib_college t
WHERE
t.delete_date IS NULL
<if test="status != null and status != ''">
AND t.STATUS = #{status}
</if>
<if test="province != null and province !=''">
AND t.province = #{province}
</if>
<if test="city != null and city != ''">
AND t.city = #{city}
</if>
<if test="county != null and county != ''">
AND t.county = #{county}
</if>
</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.laowu.mapper.LibGeoLocationMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.LibGeoLocationDO">
<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="province" property="province" />
<result column="city" property="city" />
<result column="town" property="town" />
<result column="village" property="village" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, province, city, town, village
</sql>
<select id="provinces" resultType="string">
SELECT DISTINCT
t.province
FROM
lib_geo_location t
WHERE
t.delete_date IS NULL
AND t.province IS NOT NULL
order by t.order_no
</select>
<select id="cities" resultType="string">
SELECT DISTINCT
t.city
FROM
lib_geo_location t
WHERE
t.delete_date IS NULL
AND t.city IS NOT NULL
and t.province =#{province}
order by t.order_no
</select>
<select id="county" resultType="string">
SELECT DISTINCT
t.county
FROM
lib_geo_location t
WHERE
t.delete_date IS NULL
AND t.county IS NOT NULL
AND t.province = #{province}
AND t.city = #{city}
order by t.order_no
</select>
<select id="geo" resultType="com.laowu.vo.geo.GeoVO">
SELECT
t1.id,
t1.province,
t1.city,
t1.county,
t1.town,
count(*) as cnt
FROM
lib_geo_location t1
WHERE
t1.delete_date IS NULL
<if test="province != null and province != ''">
AND t1.province = #{province}
</if>
<if test="city != null and city != ''">
AND t1.city = #{city}
</if>
<if test="county != null and county != ''">
AND t1.county = #{county}
</if>
<if test="town != null and town != ''">
AND ( t1.town LIKE concat('%', #{town}, '%') OR t1.village LIKE concat('%', #{town}, '%') )
</if>
GROUP BY t1.town
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.laowu.mapper.PlaceDictMapper"> <mapper namespace="com.laowu.mapper.LibJobSortMapper">
<!-- 通用查询映射结果 --> <!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.PlaceDictDO"> <resultMap id="BaseResultMap" type="com.laowu.model.LibJobSortDO">
<id column="id" property="id" /> <id column="id" property="id" />
<result column="create_date" property="createDate" /> <result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" /> <result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" /> <result column="delete_date" property="deleteDate" />
<result column="place" property="place" /> <result column="job_name" property="jobName" />
<result column="second_title" property="secondTitle" /> <result column="sort_code" property="sortCode" />
<result column="desc" property="desc" /> <result column="sort" property="sort" />
<result column="city_id" property="cityId" />
</resultMap> </resultMap>
<!-- 通用查询结果列 --> <!-- 通用查询结果列 -->
...@@ -19,7 +18,7 @@ ...@@ -19,7 +18,7 @@
create_date, create_date,
update_date, update_date,
delete_date, delete_date,
id, place, second_title, desc, city_id id, job_name, sort_code, sort, middle, small, tiny
</sql> </sql>
</mapper> </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.laowu.mapper.LibMajorMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.LibMajorDO">
<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_type" property="collegeType" />
<result column="major" property="major" />
<result column="major_code" property="majorCode" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, college_type, major, major_code
</sql>
<select id="allMajor" resultType="com.laowu.vo.major.AllMajorVO">
SELECT
*
FROM
lib_major t
WHERE
t.delete_date IS NULL
AND t.college_type = #{collegeType}
<if test="major != null and major != ''">
AND (t.major like concat('%', #{major}, '%') or t.major_code like concat('%', #{majorCode}))
</if>
</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.laowu.mapper.LibServiceProviderMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.LibServiceProviderDO">
<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="service_provider" property="serviceProvider" />
<result column="province" property="province" />
<result column="city" property="city" />
<result column="county" property="county" />
<result column="social_credit_code" property="socialCreditCode" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, service_provider, province, city, county, social_credit_code
</sql>
<select id="providers" resultType="com.laowu.model.LibServiceProviderDO">
SELECT
*
FROM
lib_service_provider t
WHERE
t.delete_date IS NULL
<if test="province != null and province !=''">
AND t.province = #{province}
</if>
<if test="city != null and city != ''">
AND t.city = #{city}
</if>
<if test="county != null and county != ''">
AND t.county = #{county}
</if>
<if test="serviceProvider != null and serviceProvider != ''">
AND t.service_provider = #{serviceProvider}
</if>
</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.laowu.mapper.MemberCollegeMappingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.MemberCollegeMappingDO">
<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="member_id" property="memberId" />
<result column="college_id" property="collegeId" />
<result column="start_date" property="startDate" />
<result column="end_date" property="endDate" />
<result column="major_id" property="majorId" />
<result column="rank" property="rank" />
<result column="education_type" property="educationType" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, member_id, college_id, start_date, end_date, major_id, rank, education_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.laowu.mapper.MemberDictMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.MemberDictDO">
<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="user_name" property="userName" />
<result column="status" property="status" />
<result column="telephone" property="telephone" />
<result column="id_card_type" property="idCardType" />
<result column="id_card" property="idCard" />
<result column="province" property="province" />
<result column="city" property="city" />
<result column="county" property="county" />
<result column="address" property="address" />
<result column="education" property="education" />
<result column="education_type" property="educationType" />
<result column="college_id" property="collegeId" />
<result column="start_date" property="startDate" />
<result column="end_date" property="endDate" />
<result column="major_id" property="majorId" />
<result column="rank" property="rank" />
<result column="is_poor" property="isPoor" />
<result column="is_migration" property="isMigration" />
<result column="is_party" property="isParty" />
<result column="job_status" property="jobStatus" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, user_name, status, telephone, id_card_type, id_card, province, city, town, address, education, education_type, college_id, start_date, end_date, major_id, rank, is_poor, is_migration, is_party, job_status
</sql>
<select id="allMembers" resultType="com.laowu.vo.member.AllMembersVO">
SELECT
t.id,
t.user_name,
t.STATUS,
t.telephone,
t.id_card_type,
t.id_card,
t.province,
t.city,
t.county,
t.address
FROM
member_dict t
WHERE
t.delete_date IS NULL
<if test="status != null and status != ''">
AND t.STATUS = #{status}
</if>
<if test="province != null and province != ''">
AND t.province = #{province}
</if>
<if test="city != null and city != ''">
AND t.city = #{city}
</if>
<if test="county != null and county != ''">
AND t.county = #{county}
</if>
<if test="userName != null and userName != ''">
AND t.user_name like concat('%', #{userName}, '%')
</if>
</select>
<select id="members" parameterType="long" resultType="long">
SELECT
t.id
FROM
member_dict t
left join member_team_mapping t2 on t.id = t2.member_id
WHERE
t.delete_date IS NULL
and t2.delete_date is null
AND t2.team_id = #{teamId}
</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.laowu.mapper.MemberJobInfoMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.MemberJobInfoDO">
<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="member_id" property="memberId" />
<result column="job_source" property="jobSource" />
<result column="job_type" property="jobType" />
<result column="job" property="job" />
<result column="province" property="province" />
<result column="city" property="city" />
<result column="town" property="town" />
<result column="address" property="address" />
<result column="company_id" property="companyId" />
<result column="start_date" property="startDate" />
<result column="end_date" property="endDate" />
<result column="job_month" property="jobMonth" />
<result column="salary" property="salary" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, member_id, job_source, job_type, job, province, city, town, address, company_id, start_date, end_date, job_month, salary
</sql>
<select id="recentJobInfo" parameterType="long" resultType="com.laowu.vo.job.RecentJobInfoVO">
SELECT
t.province,
t.city,
t.county,
t2.company_name,
t.job_month,
t.salary,
t.address
FROM
member_job_info t
LEFT JOIN company_dict t2 ON t.company_id = t2.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
AND t.member_id = #{memberId}
ORDER BY
t.start_date DESC
LIMIT 1
</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.laowu.mapper.MemberTeamMappingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.MemberTeamMappingDO">
<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="member_id" property="memberId" />
<result column="team_id" property="teamId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, member_id, team_id
</sql>
<select id="teamMembers" parameterType="long" resultType="com.laowu.model.MemberDictDO">
SELECT
t2.*
FROM
member_team_mapping t
LEFT JOIN member_dict t2 ON t.member_id = t2.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t.team_id = #{teamId}
</select>
<select id="noTeamMembers" parameterType="long" resultType="com.laowu.model.MemberDictDO">
SELECT
t1.id,t1.user_name,t1.id_card_type,t1.id_card
FROM
member_dict t1
WHERE
t1.delete_date IS NULL
AND t1.id NOT IN (
SELECT
t2.member_id
FROM
member_team_mapping t2
WHERE
t2.team_id = #{teamId}
AND t2.delete_date IS NULL
)
<if test="userName != null and userName != ''">
and t1.user_name LIKE concat('%', #{userName}, '%')
</if>
</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.laowu.mapper.MemberUpdateHistoryMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.MemberUpdateHistoryDO">
<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_id" property="companyId" />
<result column="administer_id" property="administerId" />
<result column="opr" property="opr" />
<result column="module" property="module" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, company_id, administer_id, opr, module
</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.laowu.mapper.PositionAloneHistoryMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.PositionAloneHistoryDO">
<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="require_id" property="requireId" />
<result column="administer_id" property="administerId" />
<result column="opr" property="opr" />
<result column="module" property="module" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, require_id, administer_id, opr, module
</sql>
<select id="aloneHistory" parameterType="long" resultType="com.laowu.vo.position.AloneHistoryVO">
SELECT
t.id,
t2.user_name,
t.module,
t.opr
FROM
position_alone_history t
LEFT JOIN administer t2 ON t.administer_id = t2.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
AND t.require_id = #{aloneId}
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.laowu.mapper.PositionAloneInfoMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.PositionAloneInfoDO">
<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_id" property="companyId" />
<result column="position_status" property="positionStatus" />
<result column="position_name" property="positionName" />
<result column="recruit_type" property="recruitType" />
<result column="province" property="province" />
<result column="city" property="city" />
<result column="county" property="county" />
<result column="job_sort_id" property="jobSortId" />
<result column="position_id" property="positionId" />
<result column="job_id" property="jobId" />
<result column="position_desc" property="positionDesc" />
<result column="position_require" property="positionRequire" />
<result column="start_salary" property="startSalary" />
<result column="end_salary" property="endSalary" />
</resultMap>
<select id="aloneRequirements" resultType="com.laowu.vo.position.AloneRequirementsVO">
SELECT
t.id,
company_id,
t2.company_name,
position_status,
require_counts,
position_name,
recruit_type,
t.province,
t.city,
t.county,
job_sort_id,
t3.job_name,
t4.position_type,
t.position_id,
job_id,
position_desc,
position_require,
start_salary,
end_salary,
t.address
FROM
position_alone_info t
LEFT JOIN company_dict t2 ON t.company_id = t2.id
LEFT JOIN lib_job_sort t3 ON t.job_sort_id = t3.id
LEFT JOIN position_dict t4 ON t.position_id = t4.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t3.delete_date IS NULL
and t4.delete_date IS NULL
<if test="positionStatus!= null and positionStatus!=''">
AND t.position_status = #{positionStatus}
</if>
<if test="positionName != null and positionName != ''">
AND t.position_name LIKE concat('%', #{positionName}, '%')
</if>
<if test="positionId != null and positionId != ''">
AND t.position_id = #{positionId}
</if>
<if test="province != null and province !=''">
AND t.province = #{province}
</if>
<if test="city != null and city != ''">
AND t.city = #{city}
</if>
<if test="county != null and county != ''">
AND t.county = #{county}
</if>
</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.laowu.mapper.PositionItemInfoMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.PositionItemInfoDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="position_name" property="positionName" />
<result column="position_id" property="positionId" />
<result column="start_salary" property="startSalary" />
<result column="end_salary" property="endSalary" />
</resultMap>
<select id="positionCounts" parameterType="long" resultType="com.laowu.vo.position.PositionCountsVO">
SELECT
t.id,
t.position_name,
t.position_status,
t.require_counts,
t.address,
t.start_salary,
t.end_salary,
t2.position_type,
t.position_id
FROM
position_item_info t
LEFT JOIN position_dict t2 ON t.position_id = t2.id
WHERE
t.delete_date IS NULL
and t.position_require_id = #{positionRequireId}
</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.laowu.mapper.PositionItemJobMappingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.PositionItemJobMappingDO">
<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="item_info_id" property="itemInfoId" />
<result column="job_sort_id" property="jobSortId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, item_info_id, job_sort_id
</sql>
<select id="positionSorts" parameterType="long" resultType="com.laowu.model.LibJobSortDO">
SELECT DISTINCT
t3.*
FROM
position_require_item t
LEFT JOIN position_item_info t1 ON t.id = t1.position_require_id
LEFT JOIN position_item_job_mapping t2 ON t2.item_info_id = t1.id
LEFT JOIN lib_job_sort t3 ON t2.job_sort_id = t3.id
WHERE
t.delete_date IS NULL
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL
AND t3.id IS NOT NULL
and t.id = #{requireId}
</select>
<select id="positionSortIds" parameterType="long" resultType="long">
SELECT
t2.job_sort_id
FROM
position_item_info t
LEFT JOIN position_item_job_mapping t2 ON t.position_id = t2.item_info_id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
AND t.id = #{itemInfoId}
</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.laowu.mapper.PositionRequireHistoryMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.PositionRequireHistoryDO">
<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="require_id" property="requireId" />
<result column="administer_id" property="administerId" />
<result column="opr" property="opr" />
<result column="module" property="module" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, require_id, administer_id, opr, module
</sql>
<select id="requireHistory" parameterType="long" resultType="com.laowu.vo.position.RequireHistoryVO">
SELECT
t.id,
t2.user_name,
t.module,
t.opr
FROM
position_require_history t
LEFT JOIN administer t2 ON t.administer_id = t2.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t.require_id = #{requireId}
</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.laowu.mapper.PositionRequireItemMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.PositionRequireItemDO">
<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="item_name" property="itemName"/>
<result column="company_id" property="companyId"/>
<result column="job_id" property="jobId"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, item_name, company_id, job_id
</sql>
<select id="requirements" resultType="com.laowu.vo.position.RequirementsVO">
SELECT
distinct t.id,
t.company_id,
t.item_status,
t2.company_name,
t.province,
t.city,
t.county,
t.item_name,
t.job_id,
t3.position_status
FROM
position_require_item t
LEFT JOIN company_dict t2 ON t.company_id = t2.id
LEFT JOIN position_item_info t3 ON t.id = t3.position_require_id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t3.delete_date is null
<if test="itemName != null and itemName != ''">
and t.item_name like concat('%', #{itemName}, '%')
</if>
<if test="itemStatus != null and itemStatus != ''">
and t.item_status = #{itemStatus}
</if>
<if test="province != null and province !=''">
AND t.province = #{province}
</if>
<if test="city != null and city != ''">
AND t.city = #{city}
</if>
<if test="county != null and county != ''">
AND t.county = #{county}
</if>
<if test="positionId != null and positionId != ''">
and t3.position_id = #{positionId}
</if>
</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.laowu.mapper.TeamDictMapper">
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, station_id, team_name, comment, administer_id
</sql>
<select id="teams" resultType="com.laowu.vo.team.TeamsVO">
SELECT
t3.id,
t3.team_name,
t3.ct,
t4.user_name,
t3.`comment`
FROM
(
SELECT
t1.id,
t1.team_name,
IF
(
t2.id IS NULL,
0,
count(*)) AS ct,
t1.member_id,
t1.`comment`
FROM
team_dict t1
LEFT JOIN member_team_mapping t5 ON t1.id = t5.team_id and t5.delete_date is null
LEFT JOIN member_dict t2 ON t2.id = t5.member_id
WHERE
t1.delete_date IS NULL
and t1.station_id = #{stationId}
<if test="teamName != null and teamName != ''">
and t1.team_name like concat('%', #{teamName}, '%')
</if>
GROUP BY
t1.id
) t3
LEFT JOIN member_dict t4 ON t3.member_id = t4.id and t4.delete_date IS NULL
</select>
<select id="leaderMemberCounts" parameterType="long" resultType="integer">
SELECT
count(
DISTINCT ( t.member_id ))
FROM
team_dict t
WHERE
t.delete_date IS NULL
AND t.station_id = #{stationId}
AND t.member_id IS NOT NULL
</select>
<select id="leaderMembers" resultType="com.laowu.vo.team.LeaderMembersVO">
SELECT
t7.mi AS id,
t7.user_name,
t7.telephone,
t7.id_card_type,
t7.id_card,
t7.tct as teamCnt,
t8.pct as teamTotalCnt
FROM
(
SELECT
t1.id AS mi,
t1.user_name,
t1.telephone,
t1.id_card_type,
t1.id_card,
count(*) AS tct
FROM
member_dict t1
LEFT JOIN team_dict t2 ON t1.id = t2.member_id
WHERE
t2.member_id IS NOT NULL
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t2.station_id = #{stationId}
GROUP BY
t1.id
) t7
LEFT JOIN (
SELECT
mi1,
ct1 - rpt AS pct
FROM
(
SELECT
t1.id AS mi1,
COUNT(*) AS ct1
FROM
member_dict t1
LEFT JOIN team_dict t2 ON t1.id = t2.member_id
LEFT JOIN member_team_mapping t3 ON t2.id = t3.team_id
WHERE
t2.member_id IS NOT NULL
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
and t3.delete_date IS NULL
AND t2.station_id = #{stationId}
GROUP BY
t1.id
) t4
LEFT JOIN ( SELECT t6.member_id AS mi2, COUNT(*)- 1 AS rpt FROM member_team_mapping t6 WHERE t6.delete_date IS NULL GROUP BY t6.member_id ) t5 ON t4.mi1 = t5.mi2
) t8 ON t7.mi = t8.mi1
WHERE
t7.user_name LIKE concat('%', #{userName}, '%')
</select>
<select id="memberManagement" resultType="com.laowu.vo.team.MemberManagementVO">
SELECT DISTINCT
t1.id,
t1.user_name,
t1.job_status,
t1.telephone,
t1.id_card_type,
t1.id_card,
t1.province,
t1.city,
t1.address,
t1.start_date,
t1.end_date,
t1.is_poor,
t1.is_migration,
t1.is_party
FROM
member_dict t1
LEFT JOIN member_team_mapping t2 ON t1.id = t2.member_id AND t2.delete_date IS NULL
LEFT JOIN team_dict t3 ON t2.team_id = t3.id AND t3.delete_date IS NULL
LEFT JOIN workstation_dict t4 ON t3.station_id = t4.id AND t4.delete_date IS NULL
WHERE
t1.delete_date IS NULL
<if test="jobStatus != null and jobStatus != ''">
AND t1.job_status = #{jobStatus}
</if>
<if test="teamId != null and teamId != ''">
AND t3.id = #{teamId}
</if>
<if test="province != null and province != ''">
AND t1.province = #{province}
</if>
<if test="stationId != null and stationId != ''">
AND t4.id = #{stationId}
</if>
<if test="userName != null and userName != ''">
and t1.user_name LIKE concat('%', #{userName}, '%')
</if>
</select>
<select id="memberManagementCount" resultType="integer">
SELECT count(DISTINCT
t1.id,
t1.user_name,
t1.job_status,
t1.telephone,
t1.id_card_type,
t1.id_card,
t1.province,
t1.city,
t1.address,
t1.start_date,
t1.end_date,
t1.is_poor,
t1.is_migration,
t1.is_party)
FROM
member_dict t1
LEFT JOIN member_team_mapping t2 ON t1.id = t2.member_id
LEFT JOIN team_dict t3 ON t2.team_id = t3.id
LEFT JOIN workstation_dict t4 ON t3.station_id = t4.id
WHERE
t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL
AND t4.delete_date IS NULL
<if test="jobStatus != null and jobStatus != ''">
AND t1.job_status = #{jobStatus}
</if>
<if test="teamId != null and teamId != ''">
AND t3.id = #{teamId}
</if>
<if test="province != null and province != ''">
AND t1.province = #{province}
</if>
<if test="stationId != null and stationId != ''">
AND t4.id = #{stationId}
</if>
<if test="userName != null and userName != ''">
and t1.user_name like LIKE concat('%', #{userName}, '%')
</if>
</select>
<update id="noLeader" parameterType="long">
update team_dict set member_id = null where id = #{id}
</update>
</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.laowu.mapper.WorkstationAdministersMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.WorkstationAdministersDO">
<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="workstation_id" property="workstationId" />
<result column="administer_id" property="administerId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, workstation_id, administer_id
</sql>
<select id="administers" parameterType="long" resultType="com.laowu.vo.station.AdministerVO">
SELECT
t2.id,
t2.user_name
FROM
workstation_administers t
LEFT JOIN administer t2 ON t.administer_id = t2.id
where t.delete_date is null
and t2.delete_date is null
AND t.administer_id IS NOT NULL
and t.workstation_id = #{id}
</select>
<select id="workstations" parameterType="long" resultType="com.laowu.model.WorkstationDictDO">
SELECT
t2.id,
t2.workstation_name
FROM
workstation_administers t
LEFT JOIN workstation_dict t2 ON t.workstation_id = t2.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
AND t.administer_id = #{administerId}
</select>
<select id="administerStations" parameterType="long" resultType="long">
SELECT
t2.id
FROM
workstation_administers t
LEFT JOIN workstation_dict t2 ON t.workstation_id = t2.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
AND t.administer_id = #{administerId}
</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.laowu.mapper.WorkstationDictMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.WorkstationDictDO">
<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="workstation_name" property="workstationName" />
<result column="province" property="province" />
<result column="city" property="city" />
<result column="county" property="county" />
<result column="comment" property="comment" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, workstation_name, province, city, county, administer_id, comment
</sql>
<select id="stations" resultType="com.laowu.vo.station.StationsVO">
SELECT
t.id,
t.workstation_name,
t.province,
t.city,
t.county,
t.`comment`
FROM
workstation_dict t
WHERE
t.delete_date IS NULL
<if test="province != null and province !=''">
AND t.province = #{province}
</if>
<if test="city != null and city != ''">
AND t.city = #{city}
</if>
<if test="county != null and county != ''">
AND t.county = #{county}
</if>
<if test="workstationName != null and workstationName != ''">
and t.workstation_name LIKE concat('%', #{workstationName}, '%')
</if>
</select>
<select id="stationAccount" parameterType="string" resultType="com.laowu.vo.station.StationAccountVO">
SELECT
t1.id,
GROUP_CONCAT( t3.workstation_name ) as stationName,
t1.user_name,
t1.account,
t1.telephone,
t1.`password`
FROM
administer t1
LEFT JOIN workstation_administers t2 ON t1.id = t2.administer_id
LEFT JOIN workstation_dict t3 ON t2.workstation_id = t3.id
WHERE
t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL
<if test=" workingstationName!= null and workingstationName != ''">
AND t3.workstation_name LIKE concat('%', #{workingstationName}, '%')
</if>
GROUP BY
t1.id
</select>
<select id="provinces" resultType="string">
SELECT DISTINCT
province
FROM
workstation_dict t
WHERE
t.delete_date IS NULL
</select>
<select id="homepage" parameterType="long">
SELECT
t1.workstation_name,
CONCAT( t1.province, "-", t1.city, "-", t1.county ),
IFNULL( t4.ct1, 0 ),
IFNULL( t5.ct2, 0 ),
IFNULL( t6.ct3, 0 ),
IFNULL( t7.ct4, 0 ),
IFNULL( t8.ct5, 0 )
FROM
workstation_dict t1
LEFT JOIN (
SELECT
t1.id,
count( DISTINCT t3.member_id ) AS ct1
FROM
workstation_dict t1
LEFT JOIN team_dict t2 ON t1.id = t2.station_id
LEFT JOIN member_team_mapping t3 ON t2.id = t3.team_id
WHERE
t1.id = #{stationId}
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL
) t4 ON t1.id = t4.id
LEFT JOIN (
SELECT
t1.id,
count( DISTINCT t2.member_id ) AS ct2
FROM
workstation_dict t1
LEFT JOIN team_dict t2 ON t1.id = t2.station_id
WHERE
t1.id = #{stationId}
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
) t5 ON t1.id = t5.id
LEFT JOIN (
SELECT
t1.id,
count(*) AS ct3
FROM
workstation_dict t1
LEFT JOIN team_dict t2 ON t1.id = t2.station_id
WHERE
t1.id = #{stationId}
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
GROUP BY
t2.station_id
) t6 ON t1.id = t6.id
LEFT JOIN (
SELECT
t5.id,
count(*) AS ct4
FROM
(
SELECT
t1.id,
t4.company_name
FROM
workstation_dict t1
LEFT JOIN workstation_alone_mapping t2 ON t1.id = t2.station_id
LEFT JOIN position_alone_info t3 ON t2.alone_id = t3.id
LEFT JOIN company_dict t4 ON t3.company_id = t4.id
WHERE
t1.id = 1
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL
AND t4.delete_date IS NULL UNION
SELECT
t1.id,
t4.company_name
FROM
workstation_dict t1
LEFT JOIN workstation_require_mapping t2 ON t1.id = t2.station_id
LEFT JOIN position_require_item t3 ON t2.require_id = t3.id
LEFT JOIN company_dict t4 ON t3.company_id = t4.id
WHERE
t1.id = #{stationId}
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL
AND t4.delete_date IS NULL
) t5
) t7 ON t1.id = t7.id
LEFT JOIN (
SELECT
t5.id,
sum( t5.require_counts ) AS ct5
FROM
(
SELECT
t1.id,
t3.require_counts
FROM
workstation_dict t1
LEFT JOIN workstation_alone_mapping t2 ON t1.id = t2.station_id
LEFT JOIN position_alone_info t3 ON t2.alone_id = t3.id
WHERE
t1.id = #{stationId}
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL UNION
SELECT
t1.id,
t4.require_counts
FROM
workstation_dict t1
LEFT JOIN workstation_require_mapping t2 ON t1.id = t2.station_id
LEFT JOIN position_require_item t3 ON t2.require_id = t3.id
LEFT JOIN position_item_info t4 ON t3.id = t4.position_require_id
WHERE
t1.id = #{stationId}
AND t1.delete_date IS NULL
AND t2.delete_date IS NULL
AND t3.delete_date IS NULL
AND t4.delete_date IS NULL
) t5
) t8 ON t1.id = t8.id
where t1.id = #{stationId}
</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.laowu.mapper.WorkstationMemberMappingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.WorkstationMemberMappingDO">
<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="member_id" property="memberId" />
<result column="station_id" property="stationId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, member_id, station_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.laowu.mapper.WorkstationRequireMappingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.WorkstationRequireMappingDO">
<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="station_id" property="stationId" />
<result column="require_id" property="requireId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, station_id, require_id
</sql>
<select id="requires" resultType="com.laowu.vo.station.RequiresVO">
SELECT
distinct t.id,
t.company_id,
t.item_status,
t2.company_name,
t.province,
t.city,
t.county,
t.item_name,
t.job_id,
t4.station_id
FROM
position_require_item t
LEFT JOIN company_dict t2 ON t.company_id = t2.id
LEFT JOIN position_item_info t3 ON t.id = t3.position_require_id
left join workstation_require_mapping t4 on t.id = t4.require_id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t3.delete_date is null
and t4.delete_date is null
<if test="itemName != null and itemName != ''">
and t.item_name like concat('%', #{itemName}, '%')
</if>
<if test="itemStatus != null and itemStatus != ''">
and t.item_status = #{itemStatus}
</if>
<if test="province != null and province !=''">
AND t.province = #{province}
</if>
<if test="city != null and city != ''">
AND t.city = #{city}
</if>
<if test="county != null and county != ''">
AND t.county = #{county}
</if>
<if test="positionId != null and positionId != ''">
and t3.position_id = #{positionId}
</if>
<if test="stationId != null and stationId != ''">
and t4.station_id = #{stationId}
</if>
</select>
<select id="requiresStations" parameterType="long" resultType="long">
SELECT
t.station_id
FROM
workstation_require_mapping t
WHERE
t.delete_date IS NULL
AND t.require_id = #{requireId}
</select>
<select id="requireWorkstations" parameterType="long" resultType="com.laowu.vo.position.RequireWorkstationsVO">
SELECT
t2.id,
t2.workstation_name,
t.create_date
FROM
workstation_require_mapping t
LEFT JOIN workstation_dict t2 ON t.station_id = t2.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
AND t.require_id = #{requireId}
</select>
</mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!