Commit 79dbfcff11f49c6db083d6ee20a8abd157164c0b

Authored by zhengjun@51feijin.com
0 parents

first commit

Showing 906 changed files with 174184 additions and 0 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 906 files are displayed.

.gitignore 0 → 100644
  1 +++ a/.gitignore
@@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
  1 +.idea
  2 +*.iml
  3 +out
  4 +gen
  5 +.gradle
  6 +build
  7 +doc
  8 +gradle
  9 +generated
  10 +metamodels
README.md 0 → 100644
  1 +++ a/README.md
@@ -0,0 +1,44 @@ @@ -0,0 +1,44 @@
  1 +
  2 +##语雀项目信息
  3 +https://www.yuque.com/koksgb/wrorgp/zooms0
  4 +
  5 +##设计文档
  6 +https://www.processon.com/diagrams
  7 +
  8 +##模块介绍
  9 +
  10 +###common
  11 +项目最基础的公用组件
  12 +
  13 +###common-app-push
  14 +app的推送组件,目前使用的是友盟的app推送支持
  15 +
  16 +###common-cache
  17 +分布式缓存组件,基于spring boot cache 并使用了Redisson的支持
  18 +
  19 +###common-cms
  20 +自研的后端管理自动生成组件,可通过简单的注解自动生成管理端界面
  21 +
  22 +###common-db
  23 +数据库组件,目前支持MYSQL数据库,ORM框架采用Hibernate,使用JPA及QueryDSL来提升效率
  24 +
  25 +###common-distributed
  26 +分布式调度组件,包括分布式锁
  27 +
  28 +###common-mq
  29 +消息队列组件,使用Redis实现消息队列
  30 +
  31 +###common-oss
  32 +对象存储组件,使用aliyun oss作为底层支持
  33 +
  34 +###common-security
  35 +安全组件,使用spring security实现安全控制
  36 +
  37 +###common-web
  38 +Web组件, 使用Spring boot 和 Spring MVC实现
  39 +
  40 +###common-web-admin
  41 +管理后台及管理员管理组件
  42 +
  43 +###common-web-base
  44 +Web开发的一些基础组件
0 \ No newline at end of file 45 \ No newline at end of file
boot-nunu/Dockerfile 0 → 100644
  1 +++ a/boot-nunu/Dockerfile
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +FROM openjdk:8-jdk-alpine
  2 +EXPOSE 8080
  3 +ARG JAR_FILE
  4 +COPY $JAR_FILE /home/app.jar
  5 +ENTRYPOINT ["java","-jar","/home/app.jar"]
0 \ No newline at end of file 6 \ No newline at end of file
boot-nunu/build.gradle 0 → 100644
  1 +++ a/boot-nunu/build.gradle
@@ -0,0 +1,79 @@ @@ -0,0 +1,79 @@
  1 +plugins {
  2 + id 'org.springframework.boot' version '2.1.7.RELEASE'
  3 + id 'io.spring.dependency-management' version '1.0.7.RELEASE'
  4 + id 'java'
  5 +}
  6 +
  7 +bootJar {
  8 + launchScript()
  9 +}
  10 +
  11 +
  12 +
  13 +configurations {
  14 + querydslapt
  15 +}
  16 +
  17 +sourceSets {
  18 + main {
  19 + java {
  20 + srcDir file("metamodels")
  21 + }
  22 + }
  23 +}
  24 +
  25 +task querymodels(type: JavaCompile, group: 'build') {
  26 + doFirst {
  27 + delete file("metamodels");
  28 + file("metamodels").mkdirs();
  29 + }
  30 +
  31 + classpath = configurations.compile + configurations.querydslapt
  32 + destinationDir = file("metamodels")
  33 +
  34 + source = sourceSets.main.java
  35 + options.compilerArgs = [
  36 + "-proc:only",
  37 + "-processor", "com.querydsl.apt.jpa.JPAAnnotationProcessor",
  38 + "-s", file("metamodels")
  39 + ]
  40 +}
  41 +
  42 +
  43 +dependencies {
  44 + // spring boot 单元测试支持
  45 + testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: springBootVersion
  46 + //pdf转换工具
  47 + compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.13'
  48 + //excel生成工具
  49 + compile group: 'org.apache.poi', name: 'poi-ooxml', version: '4.1.0'
  50 + //okhttp日志系统
  51 + compile 'com.squareup.okhttp3:logging-interceptor:3.9.1'
  52 + compile 'com.squareup.retrofit2:converter-gson:2.0.2'
  53 +
  54 + compile project(":common-web-admin")
  55 + compile project(":common-web-app-patch")
  56 + compile project(":common-app-push")
  57 + compile project(":common-db")
  58 + compile project(":common-security")
  59 + compile project(":common-oss")
  60 + compile project(":common-cms")
  61 + compile project(":common-distributed")
  62 + compile project(":common-mq")
  63 +
  64 + querydslapt("com.querydsl:querydsl-apt:4.2.1")
  65 +
  66 + compile('com.github.binarywang:weixin-java-mp:3.6.0')
  67 + compile('com.github.binarywang:weixin-java-pay:3.6.0')
  68 + compile('com.github.binarywang:weixin-java-miniapp:3.6.0')
  69 + compile('com.tencentcloudapi:tencentcloud-sdk-java:3.0.93')
  70 + //爬虫依赖
  71 + compile("org.jsoup:jsoup:1.11.3")
  72 +
  73 + // 支付宝支付支持
  74 + compile group: 'com.alipay.sdk', name: 'alipay-sdk-java', version: '4.8.10.ALL'
  75 + compile 'com.aliyun:aliyun-java-sdk-core:4.1.0'
  76 + // https://mvnrepository.com/artifact/org.freemarker/freemarker
  77 + compile group: 'org.freemarker', name: 'freemarker', version: '2.3.23'
  78 +
  79 +}
0 \ No newline at end of file 80 \ No newline at end of file
boot-nunu/src/libs/json.jar 0 → 100644
No preview for this file type
boot-nunu/src/libs/ueditor-1.1.2.jar 0 → 100644
No preview for this file type
boot-nunu/src/main/java/com/softwarebr/nunu/BootNunuApplication.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/BootNunuApplication.java
@@ -0,0 +1,53 @@ @@ -0,0 +1,53 @@
  1 +package com.softwarebr.nunu;
  2 +
  3 +import com.google.common.collect.Lists;
  4 +import org.springframework.boot.SpringApplication;
  5 +import org.springframework.boot.autoconfigure.SpringBootApplication;
  6 +import org.springframework.context.annotation.ComponentScan;
  7 +import org.springframework.context.annotation.EnableAspectJAutoProxy;
  8 +import org.springframework.scheduling.annotation.EnableScheduling;
  9 +import org.springframework.transaction.annotation.EnableTransactionManagement;
  10 +import springfox.documentation.swagger2.annotations.EnableSwagger2;
  11 +
  12 +import java.util.List;
  13 +
  14 +@SpringBootApplication
  15 +@EnableSwagger2
  16 +@EnableTransactionManagement
  17 +@ComponentScan(basePackages = {"com.brframework", "com.softwarebr.nunu"})
  18 +@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
  19 +@EnableScheduling
  20 +public class BootNunuApplication {
  21 +
  22 + public static void main(String[] args) {
  23 + //处理参数
  24 + args = handlerArgs(args);
  25 + SpringApplication.run(BootNunuApplication.class, args);
  26 +
  27 + }
  28 +
  29 + /**
  30 + * 处理参数
  31 + * @param args
  32 + * @return
  33 + */
  34 + private static String[] handlerArgs(String[] args){
  35 + boolean defActive = false;
  36 + for (String arg : args) {
  37 + if(arg.startsWith("--spring.profiles.active=")){
  38 + defActive = true;
  39 + break;
  40 + }
  41 + }
  42 +
  43 + if(!defActive){
  44 + //默认使用dev启动
  45 + List<String> argList = Lists.newArrayList(args);
  46 + argList.add("--spring.profiles.active=dev");
  47 + args = argList.toArray(new String[]{});
  48 + }
  49 +
  50 + return args;
  51 + }
  52 +
  53 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/AdminSwaggerConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/AdminSwaggerConfig.java
@@ -0,0 +1,67 @@ @@ -0,0 +1,67 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import com.brframework.commonweb.core.SwaggerContext;
  4 +import com.google.common.collect.Lists;
  5 +import lombok.Data;
  6 +import org.springframework.beans.factory.annotation.Value;
  7 +import org.springframework.context.annotation.Bean;
  8 +import org.springframework.context.annotation.Configuration;
  9 +import springfox.documentation.builders.ApiInfoBuilder;
  10 +import springfox.documentation.builders.ParameterBuilder;
  11 +import springfox.documentation.schema.ModelRef;
  12 +import springfox.documentation.service.ApiInfo;
  13 +import springfox.documentation.service.Contact;
  14 +import springfox.documentation.service.Parameter;
  15 +import springfox.documentation.spring.web.plugins.Docket;
  16 +
  17 +import java.util.List;
  18 +
  19 +/**
  20 + * 管理后台Swagger配置
  21 + * @Author xu
  22 + * @Date 2018/1/3 0003 下午 3:30
  23 + * Swagger api生成
  24 + */
  25 +@Configuration
  26 +@Data
  27 +public class AdminSwaggerConfig {
  28 +
  29 + @Value("${swagger.enable}")
  30 + private boolean enable;
  31 + private String groupName = "admin";
  32 + private String packageName = "com.softwarebr.nunu.web.admin";
  33 + private String title = "管理后台接口文档";
  34 + private String description = "管理后台接口文档";
  35 + private String termsOfServiceUrl = "";
  36 + private String version = "1.0";
  37 +
  38 + private String contactName = "beiru";
  39 + private String contactUrl = "https://www.software-br.com";
  40 + private String contactEmail = "";
  41 +
  42 +
  43 +
  44 + @Bean("adminDocket")
  45 + public Docket api() {
  46 +
  47 + List<Parameter> list = Lists.newArrayList();
  48 + ParameterBuilder tokenPar = new ParameterBuilder();
  49 + tokenPar.name("Authorization").description("token").modelRef(new ModelRef("string")).parameterType("header").required(false).build();
  50 + list.add(tokenPar.build());
  51 +
  52 + return SwaggerContext.createDocket(groupName, packageName, apiInfo(), list, enable);
  53 + }
  54 +
  55 + private ApiInfo apiInfo() {
  56 + return new ApiInfoBuilder()
  57 + .title(title)//大标题
  58 + .description(description)//详细描述
  59 + .version(version)//版本
  60 + .termsOfServiceUrl(termsOfServiceUrl)
  61 + .contact(new Contact(contactName, contactUrl, contactEmail))//作者
  62 + .license("The Apache License, Version 2.0")
  63 + .licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
  64 + .build();
  65 + }
  66 +
  67 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/AliPayConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/AliPayConfig.java
@@ -0,0 +1,81 @@ @@ -0,0 +1,81 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import cn.hutool.core.io.FileUtil;
  4 +import com.alipay.api.AlipayApiException;
  5 +import com.alipay.api.AlipayClient;
  6 +import com.alipay.api.CertAlipayRequest;
  7 +import com.alipay.api.DefaultAlipayClient;
  8 +import com.softwarebr.nunu.util.UUIDGenerator;
  9 +import com.softwarebr.nunu.config.domain.ConfigService;
  10 +import com.softwarebr.nunu.domain.PayConfig;
  11 +import lombok.extern.slf4j.Slf4j;
  12 +import org.springframework.beans.factory.annotation.Autowired;
  13 +import org.springframework.context.annotation.Bean;
  14 +import org.springframework.context.annotation.Configuration;
  15 +import org.springframework.util.StringUtils;
  16 +
  17 +import java.io.File;
  18 +import java.io.IOException;
  19 +import java.nio.charset.Charset;
  20 +
  21 +/**
  22 + * @author xu
  23 + * @date 2019/10/31 10:13
  24 + */
  25 +@Configuration
  26 +@Slf4j
  27 +public class AliPayConfig {
  28 +
  29 + private static final String crtPath;
  30 + static {
  31 + String path = null;
  32 + try {
  33 + path = FileUtil.file("").getCanonicalPath() + File.separator + "crt" + File.separator;
  34 + } catch (IOException e) {
  35 + }
  36 + crtPath = path;
  37 + FileUtil.del(crtPath);
  38 + FileUtil.file(crtPath).mkdir();
  39 + }
  40 +
  41 + @Autowired
  42 + ConfigService<PayConfig> payConfigConfigService;
  43 +
  44 + @Bean
  45 + public AlipayClient appAlipayClient() throws AlipayApiException, IOException {
  46 + PayConfig payConfig = this.payConfigConfigService.get();
  47 + if(StringUtils.isEmpty(payConfig.getAppApAlipayPublicCertContent())){
  48 + return null;
  49 + }
  50 +
  51 + String alipayPublicCertPath = crtPath + genFileName("crt");
  52 + String rootCertPath = crtPath + genFileName("crt");
  53 + String certPath = crtPath + genFileName("crt");
  54 +
  55 + FileUtil.writeString(payConfig.getAppApAlipayPublicCertContent(), alipayPublicCertPath, Charset.forName("UTF-8"));
  56 + log.info("证书alipayPublicCertPath加载完成,加载地址:{}", alipayPublicCertPath);
  57 + FileUtil.writeString(payConfig.getAppApRootCertContent(), rootCertPath, Charset.forName("UTF-8"));
  58 + log.info("证书rootCertPath加载完成,加载地址:{}", rootCertPath);
  59 + FileUtil.writeString(payConfig.getAppApCertContent(), certPath, Charset.forName("UTF-8"));
  60 + log.info("证书certPath加载完成,加载地址:{}", certPath);
  61 +
  62 + CertAlipayRequest request = new CertAlipayRequest();
  63 + request.setServerUrl(payConfig.getApServerUrl());
  64 + request.setAppId(payConfig.getAppApAppId());
  65 + request.setPrivateKey(payConfig.getAppApPrivateKey());
  66 + request.setFormat("json");
  67 + request.setCharset("utf-8");
  68 + request.setSignType("RSA2");
  69 +
  70 + request.setCertPath(certPath);
  71 + request.setAlipayPublicCertPath(alipayPublicCertPath);
  72 + request.setRootCertPath(rootCertPath);
  73 +
  74 + return new DefaultAlipayClient(request);
  75 + }
  76 +
  77 + private String genFileName(String format){
  78 + return UUIDGenerator.generateShortUuid() + "." + format;
  79 + }
  80 +
  81 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/ApiSwaggerConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/ApiSwaggerConfig.java
@@ -0,0 +1,70 @@ @@ -0,0 +1,70 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import com.brframework.commonweb.core.SwaggerContext;
  4 +import com.google.common.collect.Lists;
  5 +import lombok.Data;
  6 +import org.springframework.beans.factory.annotation.Value;
  7 +import org.springframework.context.annotation.Bean;
  8 +import org.springframework.context.annotation.Configuration;
  9 +import springfox.documentation.builders.ApiInfoBuilder;
  10 +import springfox.documentation.builders.ParameterBuilder;
  11 +import springfox.documentation.schema.ModelRef;
  12 +import springfox.documentation.service.ApiInfo;
  13 +import springfox.documentation.service.Contact;
  14 +import springfox.documentation.service.Parameter;
  15 +import springfox.documentation.spring.web.plugins.Docket;
  16 +
  17 +import java.util.List;
  18 +
  19 +/**
  20 + * api前端Swagger配置
  21 + * @Author laolian
  22 + * @Date 2019-8-28 09:44:32
  23 + * Swagger api生成
  24 + */
  25 +@Configuration
  26 +@Data
  27 +public class ApiSwaggerConfig {
  28 +
  29 + @Value("${swagger.enable}")
  30 + private boolean enable;
  31 + private String groupName = "api";
  32 + private String packageName = "com.softwarebr.nunu.web.api";
  33 + private String title = "api接口文档";
  34 + private String description = "api接口文档";
  35 + private String termsOfServiceUrl = "";
  36 + private String version = "1.0";
  37 +
  38 + private String contactName = "beiru";
  39 + private String contactUrl = "https://www.software-br.com";
  40 + private String contactEmail = "";
  41 +
  42 +
  43 +
  44 + @Bean("apiDocket")
  45 + public Docket api() {
  46 +
  47 + List<Parameter> list = Lists.newArrayList();
  48 + ParameterBuilder tokenPar = new ParameterBuilder();
  49 + tokenPar.name("Authorization").description("token").modelRef(new ModelRef("string")).parameterType("header").required(false).build();
  50 + ParameterBuilder requestFlagPar = new ParameterBuilder();
  51 + requestFlagPar.name("request-flag").description("请求标记").modelRef(new ModelRef("string")).parameterType("header").required(false).build();
  52 + list.add(requestFlagPar.build());
  53 + list.add(tokenPar.build());
  54 +
  55 + return SwaggerContext.createDocket(groupName, packageName, apiInfo(), list, enable);
  56 + }
  57 +
  58 + private ApiInfo apiInfo() {
  59 + return new ApiInfoBuilder()
  60 + .title(title)//大标题
  61 + .description(description)//详细描述
  62 + .version(version)//版本
  63 + .termsOfServiceUrl(termsOfServiceUrl)
  64 + .contact(new Contact(contactName, contactUrl, contactEmail))//作者
  65 + .license("The Apache License, Version 2.0")
  66 + .licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
  67 + .build();
  68 + }
  69 +
  70 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/DefaultDataSourceConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/DefaultDataSourceConfig.java
@@ -0,0 +1,58 @@ @@ -0,0 +1,58 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import org.springframework.beans.factory.annotation.Autowired;
  4 +import org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties;
  5 +import org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings;
  6 +import org.springframework.boot.autoconfigure.orm.jpa.JpaProperties;
  7 +import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
  8 +import org.springframework.context.annotation.Bean;
  9 +import org.springframework.context.annotation.Configuration;
  10 +import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
  11 +import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
  12 +
  13 +import javax.sql.DataSource;
  14 +import java.util.Map;
  15 +
  16 +/**
  17 + * @author xu
  18 + * @date 2019/8/20 16:50
  19 + */
  20 +@Configuration
  21 +@EnableJpaRepositories(
  22 + basePackages = {
  23 + "com.softwarebr.nunu.dao",
  24 + "com.brframework.commonapppush.dao",
  25 + "com.brframework.webapppatch.dao",
  26 + "com.brframework.commonwebbase.dao",
  27 + "com.brframework.commonwebadmin.dao"
  28 + }
  29 +)
  30 +public class DefaultDataSourceConfig {
  31 +
  32 + @Autowired
  33 + JpaProperties jpaProperties;
  34 +
  35 + @Autowired
  36 + HibernateProperties hibernateProperties;
  37 +
  38 + @Bean(name = "entityManagerFactory")
  39 + public LocalContainerEntityManagerFactoryBean
  40 + entityManagerFactory(
  41 + EntityManagerFactoryBuilder builder
  42 + , DataSource dataSource
  43 + ) {
  44 + Map<String, Object> properties = hibernateProperties
  45 + .determineHibernateProperties(jpaProperties.getProperties(), new HibernateSettings());
  46 + return builder
  47 + .dataSource(dataSource)
  48 + .packages("com.softwarebr.nunu.entity",
  49 + "com.brframework.commonapppush.entity",
  50 + "com.brframework.webapppatch.entity",
  51 + "com.brframework.commonwebbase.entity",
  52 + "com.brframework.commonwebadmin.entity")
  53 + .persistenceUnit("default")
  54 + .properties(properties)
  55 + .build();
  56 + }
  57 +
  58 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/MessageConverterConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/MessageConverterConfig.java
@@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import com.alibaba.fastjson.serializer.SerializerFeature;
  4 +import com.alibaba.fastjson.support.config.FastJsonConfig;
  5 +import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
  6 +import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
  7 +import org.springframework.context.annotation.Bean;
  8 +import org.springframework.context.annotation.Configuration;
  9 +
  10 +import static com.alibaba.fastjson.serializer.SerializerFeature.DisableCircularReferenceDetect;
  11 +
  12 +/**
  13 + * @Author: ljr
  14 + * @Date: 2019/9/5 15:39
  15 + * @Description:
  16 + */
  17 +@Configuration
  18 +public class MessageConverterConfig {
  19 +
  20 + @Bean
  21 + public HttpMessageConverters customConverters() {
  22 + FastJsonHttpMessageConverter converter = new FastJsonHttpMessageConverter();
  23 + FastJsonConfig config = new FastJsonConfig();
  24 + converter.setFastJsonConfig(config);
  25 + config.setSerializerFeatures(DisableCircularReferenceDetect,
  26 + //null的字段也会输出
  27 + SerializerFeature.WriteMapNullValue
  28 + //字符串为null字段返回""
  29 + //SerializerFeature.WriteNullStringAsEmpty,
  30 + //List字段如果为null,输出为[],而非null
  31 + //SerializerFeature.WriteNullListAsEmpty,
  32 + ////数值字段如果为null,输出为0,而非null
  33 + //SerializerFeature.WriteNullNumberAsZero,
  34 + ////Boolean字段如果为null,输出为false,而非null
  35 + //SerializerFeature.WriteNullBooleanAsFalse);
  36 + );
  37 + return new HttpMessageConverters(converter);
  38 + }
  39 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/SecurityConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/SecurityConfig.java
@@ -0,0 +1,125 @@ @@ -0,0 +1,125 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import com.brframework.commonsecurity.SecurityFilter;
  4 +import com.brframework.commonsecurity.core.SecurityExceptionHandling;
  5 +import com.brframework.commonsecurity.core.SecurityUserDetailsService;
  6 +import lombok.Data;
  7 +import org.springframework.beans.factory.annotation.Autowired;
  8 +import org.springframework.beans.factory.annotation.Qualifier;
  9 +import org.springframework.context.annotation.Bean;
  10 +import org.springframework.context.annotation.Configuration;
  11 +import org.springframework.core.annotation.Order;
  12 +import org.springframework.data.redis.core.StringRedisTemplate;
  13 +import org.springframework.security.config.annotation.web.builders.HttpSecurity;
  14 +import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
  15 +import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
  16 +import org.springframework.security.config.http.SessionCreationPolicy;
  17 +import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
  18 +
  19 +/**
  20 + * @author xu
  21 + * @date 2019/8/19 20:16
  22 + */
  23 +@EnableWebSecurity
  24 +@Configuration
  25 +@Data
  26 +public class SecurityConfig {
  27 +
  28 + @Autowired
  29 + SecurityUserDetailsConfig config;
  30 +
  31 + /**
  32 + *
  33 + * @param redisTemplate
  34 + * @return
  35 + */
  36 + @Bean("adminUserDetailsService")
  37 + public SecurityUserDetailsService adminUserDetailsService(@Autowired StringRedisTemplate redisTemplate) {
  38 + return new SecurityUserDetailsService(config.getAdminIss(), config.getAdminExp(), config.getAdminSecret(), config.isAdminSingleUser(), redisTemplate);
  39 + }
  40 +
  41 +
  42 + @Configuration
  43 + @Order(1)
  44 + public static class AdminSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter {
  45 +
  46 + @Autowired
  47 + @Qualifier("adminUserDetailsService")
  48 + SecurityUserDetailsService userDetailsService;
  49 +
  50 + protected void configure(HttpSecurity http) throws Exception {
  51 + http
  52 + .antMatcher("/admin/access/**")
  53 + .addFilterBefore(new SecurityFilter(userDetailsService), UsernamePasswordAuthenticationFilter.class)
  54 + .httpBasic().and()
  55 + // 基于token,所以不需要session
  56 + .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
  57 + //使用我们自己的异常处理机制
  58 + .exceptionHandling()
  59 + .authenticationEntryPoint(new SecurityExceptionHandling())
  60 + .accessDeniedHandler(new SecurityExceptionHandling()).and()
  61 + .csrf().disable() //禁用csrf攻击防护,因为使用的是jwt所以不存在csrf攻击的威胁
  62 + .logout().disable() //禁用security退出功能
  63 + .formLogin().disable() //禁用security登录功能
  64 + .headers().disable();
  65 + }
  66 + }
  67 +
  68 + @Configuration
  69 + @Order(3)
  70 + public static class AnySecurityConfigurerAdapter extends WebSecurityConfigurerAdapter {
  71 +
  72 + @Override
  73 + protected void configure(HttpSecurity http) throws Exception {
  74 + http
  75 + .authorizeRequests().anyRequest().permitAll().and()
  76 + .httpBasic().and()
  77 + // 基于token,所以不需要session
  78 + .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
  79 + .csrf().disable() //禁用csrf攻击防护,因为使用的是jwt所以不存在csrf攻击的威胁
  80 + .cors().disable() //禁用跨域控制
  81 + .logout().disable() //禁用security退出功能
  82 + .formLogin().disable() //禁用security登录功能
  83 + .headers().disable();
  84 + }
  85 + }
  86 +
  87 + /**
  88 + *
  89 + * @param redisTemplate
  90 + * @return
  91 + */
  92 + @Bean("apiUserDetailsService")
  93 + public SecurityUserDetailsService apiUserDetailsService(@Autowired StringRedisTemplate redisTemplate) {
  94 + return new SecurityUserDetailsService(config.getApiIss(), config.getApiExp(), config.getApiSecret(), config.isApiSingleUser(), redisTemplate);
  95 + }
  96 +
  97 +
  98 + @Configuration
  99 + @Order(2)
  100 + public static class ApiSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter {
  101 +
  102 + @Autowired
  103 + @Qualifier("apiUserDetailsService")
  104 + SecurityUserDetailsService userDetailsService;
  105 +
  106 + protected void configure(HttpSecurity http) throws Exception {
  107 + http
  108 + .antMatcher("/api/access/**").authorizeRequests()
  109 + .antMatchers("/api/access/**").hasRole("USER").and()
  110 + .addFilterBefore(new SecurityFilter(userDetailsService), UsernamePasswordAuthenticationFilter.class)
  111 + .httpBasic().and()
  112 + // 基于token,所以不需要session
  113 + .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
  114 +// //使用我们自己的异常处理机制
  115 + .exceptionHandling()
  116 + .authenticationEntryPoint(new SecurityExceptionHandling())
  117 + .accessDeniedHandler(new SecurityExceptionHandling()).and()
  118 + .csrf().disable() //禁用csrf攻击防护,因为使用的是jwt所以不存在csrf攻击的威胁
  119 + .logout().disable() //禁用security退出功能
  120 + .formLogin().disable() //禁用security登录功能
  121 + .headers().disable();
  122 + }
  123 + }
  124 +
  125 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/SecurityUserDetailsConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/SecurityUserDetailsConfig.java
@@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import lombok.Data;
  4 +import org.springframework.boot.context.properties.ConfigurationProperties;
  5 +import org.springframework.stereotype.Component;
  6 +
  7 +@Data
  8 +@Component
  9 +@ConfigurationProperties(value = "security.rest")
  10 +public class SecurityUserDetailsConfig {
  11 +
  12 + /** 该JWT的签发者 */
  13 + private String adminIss;
  14 + /** 有效期 (秒) */
  15 + private long adminExp;
  16 + /** 签名 */
  17 + private String adminSecret;
  18 + /** 一个签发者中一个用户只能拥有一个JWT */
  19 + private boolean adminSingleUser;
  20 +
  21 + /** api JWT的签发者 */
  22 + private String apiIss;
  23 + /** 有效期 (秒) */
  24 + private long apiExp;
  25 + /** 签名 */
  26 + private String apiSecret;
  27 + /** 一个签发者中一个用户只能拥有一个JWT */
  28 + private boolean apiSingleUser;
  29 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/SelectConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/SelectConfig.java
@@ -0,0 +1,37 @@ @@ -0,0 +1,37 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import com.brframework.commoncms.core.cms.Select;
  4 +import com.google.common.collect.Lists;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.context.annotation.Bean;
  7 +import org.springframework.stereotype.Component;
  8 +
  9 +import java.util.stream.Collectors;
  10 +
  11 +
  12 +/**
  13 + * @author xu
  14 + * @date 2019/8/30 15:35
  15 + */
  16 +@Component
  17 +public class SelectConfig {
  18 +
  19 + /**
  20 + * 下拉获取标签
  21 + */
  22 + public static final String SELECT_LABEL= "SELECT_LABEL";
  23 +
  24 + /**
  25 + * 多选框
  26 + *
  27 + * @return
  28 + */
  29 + @Bean
  30 + public Select selectOptions() {
  31 + return key -> {
  32 + switch (key) {
  33 + }
  34 + return null;
  35 + };
  36 + }
  37 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/WxMpConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/WxMpConfig.java
@@ -0,0 +1,38 @@ @@ -0,0 +1,38 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import com.softwarebr.nunu.config.domain.ConfigService;
  4 +import com.softwarebr.nunu.domain.PayConfig;
  5 +import me.chanjar.weixin.mp.api.WxMpService;
  6 +import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl;
  7 +import me.chanjar.weixin.mp.config.WxMpConfigStorage;
  8 +import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl;
  9 +import org.springframework.beans.factory.annotation.Autowired;
  10 +import org.springframework.context.annotation.Bean;
  11 +import org.springframework.stereotype.Component;
  12 +@Component
  13 +public class WxMpConfig {
  14 +
  15 + @Autowired
  16 + ConfigService<PayConfig> payConfigService;
  17 +
  18 + @Bean
  19 + public WxMpConfigStorage wxMpConfigStorage(){
  20 + PayConfig payConfig = payConfigService.get();
  21 + //设置为内存存储
  22 + WxMpDefaultConfigImpl configStorage = new WxMpDefaultConfigImpl();
  23 + configStorage.setAppId(payConfig.getWxAppId());
  24 + configStorage.setSecret(payConfig.getWxAppSecret());
  25 + //configStorage.setToken(payConfig.getWxToken());
  26 + //configStorage.setAesKey(payConfig.getWxAesKey());
  27 + return configStorage;
  28 + }
  29 +
  30 +
  31 + @Bean
  32 + public WxMpService wxMpService(WxMpConfigStorage wxMpConfigStorage){
  33 + WxMpService wxMpService = new WxMpServiceImpl();
  34 + wxMpService.setWxMpConfigStorage(wxMpConfigStorage);
  35 + return wxMpService;
  36 + }
  37 +
  38 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/WxPayConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/WxPayConfig.java
@@ -0,0 +1,52 @@ @@ -0,0 +1,52 @@
  1 +package com.softwarebr.nunu.config;
  2 +
  3 +import com.github.binarywang.wxpay.service.WxPayService;
  4 +import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl;
  5 +import com.softwarebr.nunu.config.domain.ConfigService;
  6 +import com.softwarebr.nunu.domain.PayConfig;
  7 +import lombok.extern.slf4j.Slf4j;
  8 +import org.springframework.beans.factory.annotation.Autowired;
  9 +import org.springframework.context.annotation.Bean;
  10 +import org.springframework.context.annotation.Configuration;
  11 +
  12 +import java.io.IOException;
  13 +
  14 +/**
  15 + * @author xu
  16 + * @date 2019/10/23 10:59
  17 + */
  18 +@Configuration
  19 +@Slf4j
  20 +public class WxPayConfig {
  21 +
  22 + @Autowired
  23 + ConfigService<PayConfig> payConfigService;
  24 +
  25 + public String appWeiXinCertPath() throws IOException {
  26 +
  27 + /* String newFilePath = FileUtil.file("").getCanonicalPath() + File.separator + "crt" + File.separator + "apiclient_cert.p12";
  28 + InputStream inputStream = WxPayConfig.class.getClassLoader().getResourceAsStream("apiclient_cert.p12");
  29 + FileUtil.writeFromStream(inputStream, newFilePath);*/
  30 + return null;
  31 + }
  32 +
  33 + @Bean
  34 + public com.github.binarywang.wxpay.config.WxPayConfig config() throws IOException {
  35 + PayConfig payConfig = payConfigService.get();
  36 + com.github.binarywang.wxpay.config.WxPayConfig wxPayConfig = new com.github.binarywang.wxpay.config.WxPayConfig();
  37 + wxPayConfig.setAppId(payConfig.getWxAppId());
  38 + wxPayConfig.setMchId(payConfig.getWxMchId());
  39 + wxPayConfig.setMchKey(payConfig.getWxMchKey());
  40 + wxPayConfig.setKeyPath(appWeiXinCertPath());
  41 + wxPayConfig.setSignType(payConfig.getWxSignType());
  42 + wxPayConfig.setNotifyUrl(payConfig.getWxOAuthRedirectUrl());
  43 + return wxPayConfig;
  44 + }
  45 +
  46 + @Bean
  47 + public WxPayService wxPayService(com.github.binarywang.wxpay.config.WxPayConfig payConfig) {
  48 + WxPayService wxPayService = new WxPayServiceImpl();
  49 + wxPayService.setConfig(payConfig);
  50 + return wxPayService;
  51 + }
  52 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/domain/AbstractConfigService.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/domain/AbstractConfigService.java
@@ -0,0 +1,43 @@ @@ -0,0 +1,43 @@
  1 +package com.softwarebr.nunu.config.domain;
  2 +
  3 +import com.alibaba.fastjson.JSON;
  4 +import com.brframework.commonweb.exception.HandleException;
  5 +import com.brframework.commonwebbase.service.DictionaryService;
  6 +import lombok.extern.slf4j.Slf4j;
  7 +import org.springframework.beans.factory.annotation.Autowired;
  8 +import org.springframework.util.StringUtils;
  9 +
  10 +/**
  11 + * @author xu
  12 + * @date 2019/10/28 17:29
  13 + */
  14 +@Slf4j
  15 +public abstract class AbstractConfigService<Domain> implements ConfigService<Domain> {
  16 +
  17 + @Autowired
  18 + DictionaryService dictionaryService;
  19 +
  20 + public abstract String getKey();
  21 +
  22 + public abstract Class<Domain> getDomainClass();
  23 +
  24 + @Override
  25 + public Domain get() {
  26 + String s = dictionaryService.get(getKey());
  27 + if(StringUtils.isEmpty(s)){
  28 + try {
  29 + return getDomainClass().newInstance();
  30 + } catch (Throwable e) {
  31 + log.error("对象实例化错误,请查看是否有无参构造方法", e);
  32 + throw new HandleException("对象实例化错误,请查看是否有无参构造方法");
  33 + }
  34 + }
  35 + return JSON.parseObject(s, getDomainClass());
  36 + }
  37 +
  38 + @Override
  39 + public void set(Domain config) {
  40 + dictionaryService.set(getKey(), JSON.toJSONString(config));
  41 + }
  42 +
  43 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/domain/ConfigService.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/domain/ConfigService.java
@@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
  1 +package com.softwarebr.nunu.config.domain;
  2 +
  3 +/**
  4 + * @author xu
  5 + * @date 2019/10/28 17:27
  6 + */
  7 +public interface ConfigService<Domain> {
  8 +
  9 + Domain get();
  10 +
  11 + void set(Domain config);
  12 +
  13 +}
boot-nunu/src/main/java/com/softwarebr/nunu/config/domain/impl/ConfigServiceImpl.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/config/domain/impl/ConfigServiceImpl.java
@@ -0,0 +1,57 @@ @@ -0,0 +1,57 @@
  1 +package com.softwarebr.nunu.config.domain.impl;
  2 +
  3 +import com.softwarebr.nunu.config.domain.AbstractConfigService;
  4 +import com.softwarebr.nunu.config.domain.ConfigService;
  5 +import com.softwarebr.nunu.domain.AgreementConfig;
  6 +import com.softwarebr.nunu.domain.PayConfig;
  7 +import com.softwarebr.nunu.domain.SMSConfig;
  8 +import com.softwarebr.nunu.domain.ServiceTerms;
  9 +import org.springframework.context.annotation.Bean;
  10 +import org.springframework.context.annotation.Configuration;
  11 +
  12 +;
  13 +
  14 +/**
  15 + * 配置
  16 + * 最大化适应需求变更
  17 + * @author xu
  18 + * @date 2019/10/28 17:49
  19 + */
  20 +@Configuration
  21 +public class ConfigServiceImpl {
  22 +
  23 + private <T> AbstractConfigService<T> createConfigService(String key, Class<T> domainClass){
  24 + return new AbstractConfigService<T>(){
  25 + @Override
  26 + public String getKey() {
  27 + return key;
  28 + }
  29 + @Override
  30 + public Class<T> getDomainClass() {
  31 + return domainClass;
  32 + }
  33 + };
  34 + }
  35 +
  36 + @Bean
  37 + public ConfigService<SMSConfig> smsConfig(){
  38 + return createConfigService(SMSConfig.KEY, SMSConfig.class);
  39 + }
  40 +
  41 + @Bean
  42 + public ConfigService<PayConfig> payConfig(){
  43 + return createConfigService(PayConfig.KEY, PayConfig.class);
  44 + }
  45 +
  46 +
  47 + @Bean
  48 + public ConfigService<ServiceTerms> serviceTerms(){
  49 + return createConfigService(ServiceTerms.KEY, ServiceTerms.class);
  50 + }
  51 +
  52 + @Bean
  53 + public ConfigService<AgreementConfig> agreement(){
  54 + return createConfigService(AgreementConfig.KEY, AgreementConfig.class);
  55 + }
  56 +
  57 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dao/go/LabelDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/go/LabelDao.java
@@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
  1 +package com.softwarebr.nunu.dao.go;
  2 +
  3 +import com.softwarebr.nunu.entity.go.Label;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.data.jpa.domain.Specification;
  6 +import org.springframework.data.jpa.repository.Query;
  7 +import org.springframework.stereotype.Repository;
  8 +
  9 +import java.util.List;
  10 +
  11 +/**
  12 + * @date 2020-02-19 14:03:47
  13 + * @author lilin
  14 + */
  15 +
  16 +@Repository
  17 +public interface LabelDao extends CommonRepository<Long, Label> {
  18 +
  19 + /**
  20 + * 根据父级查找标签
  21 + * @param parentId
  22 + * @param status 状态{@link Label}
  23 + * @return
  24 + */
  25 + List<Label> findByParentIdAndStatusOrderBySortAsc(Long parentId, Integer status);
  26 +
  27 + /**
  28 + * 查询所有未删除的标签
  29 + * @param status
  30 + * @return
  31 + */
  32 + List<Label> findByStatusOrderBySortAsc(Integer status);
  33 +}
0 \ No newline at end of file 34 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/go/PolicyApplyDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/go/PolicyApplyDao.java
@@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
  1 +package com.softwarebr.nunu.dao.go;
  2 +
  3 +import com.softwarebr.nunu.entity.go.PolicyApply;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +/**
  8 + * @date 2020-02-21 10:49:24
  9 + * @author lilin
  10 + */
  11 +
  12 +@Repository
  13 +public interface PolicyApplyDao extends CommonRepository<Long, PolicyApply> {
  14 +
  15 + PolicyApply findTopByPolicyId(Long policyId);
  16 +
  17 + /**
  18 + * 统计政策申报人数
  19 + * @param policyId 政策ID
  20 + * @return
  21 + */
  22 + Long countByPolicyId(Long policyId);
  23 +
  24 +}
0 \ No newline at end of file 25 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/go/PolicyDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/go/PolicyDao.java
@@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
  1 +package com.softwarebr.nunu.dao.go;
  2 +
  3 +import com.softwarebr.nunu.entity.go.Policy;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.time.LocalDateTime;
  8 +
  9 +/**
  10 + * @date 2020-02-19 15:35:44
  11 + * @author lilin
  12 + */
  13 +
  14 +@Repository
  15 +public interface PolicyDao extends CommonRepository<Long, Policy> {
  16 +
  17 + /**
  18 + * 检查会不会机器人发布重复政策
  19 + * @param source
  20 + * @param title
  21 + * @return
  22 + */
  23 + Long countBySourceAndTitle(String source, String title);
  24 +
  25 + /**
  26 + * 政策收集统计
  27 + * @param marker 删除标记
  28 + * @param startDate 开始时间
  29 + * @param endDate 结束时间
  30 + * @return
  31 + */
  32 + Long countByMarkerAndCreateDateBetween(Integer marker, LocalDateTime startDate, LocalDateTime endDate);
  33 +}
0 \ No newline at end of file 34 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/go/PolicyLabelDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/go/PolicyLabelDao.java
@@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
  1 +package com.softwarebr.nunu.dao.go;
  2 +
  3 +import com.brframework.commondb.core.CommonRepository;
  4 +import com.softwarebr.nunu.entity.go.PolicyLabel;
  5 +import org.springframework.data.jpa.repository.Query;
  6 +import org.springframework.data.repository.query.Param;
  7 +import org.springframework.stereotype.Repository;
  8 +
  9 +import java.util.List;
  10 +
  11 +/**
  12 + * @date 2020-02-19 16:28:24
  13 + * @author lilin
  14 + */
  15 +
  16 +@Repository
  17 +public interface PolicyLabelDao extends CommonRepository<Long, PolicyLabel> {
  18 +
  19 + /**
  20 + * 根据政策ID删除标签关系
  21 + * @param policyId
  22 + */
  23 + void deleteByPolicyId(Long policyId);
  24 +
  25 + /**
  26 + * 查询政策分类标签
  27 + * @param policyId
  28 + * @return
  29 + */
  30 + List<PolicyLabel> findByPolicyId(Long policyId);
  31 +
  32 + /**
  33 + * 二级标签筛选政策
  34 + * @param childIds 二级标签id
  35 + * @param childTotal 当前标签数
  36 + * @return
  37 + */
  38 + @Query(value = "SELECT * FROM go_policy_label WHERE child_id IN (:childIds) GROUP BY policy_id HAVING COUNT(id)>=:childTotal", nativeQuery = true)
  39 + List<PolicyLabel> findPolicyLabelByChildId(@Param("childIds") List<Long> childIds, @Param("childTotal") Integer childTotal);
  40 +
  41 +}
0 \ No newline at end of file 42 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/hall/InvestApplyDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/hall/InvestApplyDao.java
@@ -0,0 +1,48 @@ @@ -0,0 +1,48 @@
  1 +package com.softwarebr.nunu.dao.hall;
  2 +
  3 +import com.softwarebr.nunu.entity.hall.InvestApply;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @date 2020-02-25 15:27:45
  11 + * @author lilin
  12 + */
  13 +
  14 +@Repository
  15 +public interface InvestApplyDao extends CommonRepository<Long, InvestApply> {
  16 +
  17 + /**
  18 + * 查询创新项目的申请数量
  19 + * @param investId
  20 + * @return
  21 + */
  22 + Long countByInvestId(Long investId);
  23 +
  24 + /**
  25 + * 查询指定项目申请人审核通过信息
  26 + * @param proposer 申请人
  27 + * @param investId 项目Id
  28 + * @param verify 审核状态
  29 + * @return
  30 + */
  31 + InvestApply findTopByProposerAndInvestIdAndVerify(Long proposer, Long investId, Integer verify);
  32 +
  33 + /**
  34 + * 统计指定项目待审核数量
  35 + * @param verify 审核状态
  36 + * @param investId 项目ID
  37 + * @return
  38 + */
  39 + Long countByInvestIdAndVerify(Long investId, Integer verify);
  40 +
  41 + /**
  42 + * 查询待审核的数据
  43 + * @param verify 审核状态
  44 + * @return
  45 + */
  46 + List<InvestApply> findByVerify(Integer verify);
  47 +
  48 +}
0 \ No newline at end of file 49 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/hall/InvestDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/hall/InvestDao.java
@@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
  1 +package com.softwarebr.nunu.dao.hall;
  2 +
  3 +import com.softwarebr.nunu.entity.hall.Invest;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.time.LocalDateTime;
  8 +import java.util.List;
  9 +
  10 +/**
  11 + * @date 2020-02-25 12:03:51
  12 + * @author lilin
  13 + */
  14 +
  15 +@Repository
  16 +public interface InvestDao extends CommonRepository<Long, Invest> {
  17 +
  18 + /**
  19 + * 时间统计项目总数
  20 + * @param startDate 开始时间
  21 + * @param endDate 结束时间
  22 + * @return
  23 + */
  24 + Long countByCreateDateBetween(LocalDateTime startDate, LocalDateTime endDate);
  25 +
  26 +}
0 \ No newline at end of file 27 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/hall/InvestOrgDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/hall/InvestOrgDao.java
@@ -0,0 +1,42 @@ @@ -0,0 +1,42 @@
  1 +package com.softwarebr.nunu.dao.hall;
  2 +
  3 +import com.softwarebr.nunu.entity.hall.InvestOrg;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.time.LocalDateTime;
  8 +
  9 +/**
  10 + * @date 2020-02-25 15:59:36
  11 + * @author lilin
  12 + */
  13 +
  14 +@Repository
  15 +public interface InvestOrgDao extends CommonRepository<Long, InvestOrg> {
  16 +
  17 +
  18 + /**
  19 + * 查询用户审核通过投资机构信息
  20 + * @param memberId 用户Id
  21 + * @param verify 审核状态 {@link InvestOrg}
  22 + * @return
  23 + */
  24 + InvestOrg findTopByMemberIdAndVerifyOrderByCreateDateDesc(Long memberId, Integer verify);
  25 +
  26 + /**
  27 + * 查询用户投资机构认证信息
  28 + * @param memberId 用户id
  29 + * @return
  30 + */
  31 + InvestOrg findTopByMemberIdOrderByCreateDateDesc(Long memberId);
  32 +
  33 + /**
  34 + * 根据审核状态与时间区间统计认证机构数量
  35 + * @param verify 审核状态
  36 + * @param startDate 开始时间
  37 + * @param endDate 结束时间
  38 + * @return
  39 + */
  40 + Long countByVerifyAndCreateDateBetween(Integer verify, LocalDateTime startDate, LocalDateTime endDate);
  41 +
  42 +}
0 \ No newline at end of file 43 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/hall/TeamDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/hall/TeamDao.java
@@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
  1 +package com.softwarebr.nunu.dao.hall;
  2 +
  3 +import com.softwarebr.nunu.entity.hall.Team;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @date 2020-02-25 12:11:26
  11 + * @author lilin
  12 + */
  13 +
  14 +@Repository
  15 +public interface TeamDao extends CommonRepository<Long, Team> {
  16 +
  17 +
  18 + /**
  19 + * 查询项目团队信息
  20 + * @param investId
  21 + * @return
  22 + */
  23 + List<Team> findByInvestId(Long investId);
  24 +
  25 +}
0 \ No newline at end of file 26 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/oper/AdvertisementDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/oper/AdvertisementDao.java
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
  1 +package com.softwarebr.nunu.dao.oper;
  2 +
  3 +import com.softwarebr.nunu.entity.oper.Advertisement;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.data.jpa.repository.Query;
  6 +import org.springframework.data.repository.query.Param;
  7 +import org.springframework.stereotype.Repository;
  8 +
  9 +import java.time.LocalDateTime;
  10 +import java.util.List;
  11 +
  12 +/**
  13 + * @date 2020-02-18 10:58:32
  14 + * @author lilin
  15 + */
  16 +
  17 +@Repository
  18 +public interface AdvertisementDao extends CommonRepository<Long, Advertisement> {
  19 +
  20 + /**
  21 + * 查询时间区间上架广告信息
  22 + * @param status 状态
  23 + * @param newTime 时间
  24 + * @param position 广告位置
  25 + * @return
  26 + */
  27 + @Query("from Advertisement where position = :position and status = :status and :newTime between startDate and endDate order by sortValue asc ")
  28 + List<Advertisement> findByStatusDateOrderBySortValue(@Param("status") Integer status, @Param("newTime") LocalDateTime newTime, @Param("position") Integer position);
  29 +
  30 +}
0 \ No newline at end of file 31 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/oper/AreaDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/oper/AreaDao.java
@@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
  1 +package com.softwarebr.nunu.dao.oper;
  2 +
  3 +import com.brframework.commondb.core.CommonRepository;
  4 +import com.softwarebr.nunu.entity.oper.Area;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @date: 2019-10-21 17:33:17
  11 + * @author: lilin
  12 + * @description: 省市区数据
  13 + */
  14 +
  15 +@Repository
  16 +public interface AreaDao extends CommonRepository<Long, Area> {
  17 +
  18 + /**
  19 + * 根据父级id查询数据
  20 + * @param parentId
  21 + * @return
  22 + */
  23 + List<Area> findByParentId(Long parentId);
  24 +
  25 + /**
  26 + * 查询地址名称
  27 + * @param parentId
  28 + * @param cityName
  29 + * @return
  30 + */
  31 + Area findByParentIdAndCityName(Long parentId, String cityName);
  32 +}
0 \ No newline at end of file 33 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/pay/PayInfoDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/pay/PayInfoDao.java
@@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
  1 +package com.softwarebr.nunu.dao.pay;
  2 +
  3 +import com.brframework.commondb.core.CommonRepository;
  4 +import com.softwarebr.nunu.entity.pay.PayInfo;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +/**
  8 + * @Author ljr
  9 + * @Date 2020/01/08 15:41:59
  10 + */
  11 +
  12 +@Repository
  13 +public interface PayInfoDao extends CommonRepository<Long, PayInfo> {
  14 +
  15 + PayInfo findTopByPayOrderNo(String payOrderNo);
  16 +
  17 + PayInfo findTopByMemberIdAndTypeAndTargetId(Long memberId, Integer type, Long targetId);
  18 +}
0 \ No newline at end of file 19 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/pay/PayNotifyLogDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/pay/PayNotifyLogDao.java
@@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
  1 +package com.softwarebr.nunu.dao.pay;
  2 +
  3 +import com.brframework.commondb.core.CommonRepository;
  4 +import com.softwarebr.nunu.entity.pay.PayNotifyLog;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +/**
  8 + * 支付通知记录
  9 + * @author xu
  10 + * @date 2019/11/1 17:49
  11 + */
  12 +@Repository
  13 +public interface PayNotifyLogDao extends CommonRepository<Long, PayNotifyLog> {
  14 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dao/res/InviteDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/res/InviteDao.java
@@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
  1 +package com.softwarebr.nunu.dao.res;
  2 +
  3 +import com.softwarebr.nunu.entity.res.Invite;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @date 2020-02-21 11:48:30
  11 + * @author lilin
  12 + */
  13 +
  14 +@Repository
  15 +public interface InviteDao extends CommonRepository<Long, Invite> {
  16 +
  17 +
  18 +}
0 \ No newline at end of file 19 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/res/ProjectDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/res/ProjectDao.java
@@ -0,0 +1,37 @@ @@ -0,0 +1,37 @@
  1 +package com.softwarebr.nunu.dao.res;
  2 +
  3 +import com.softwarebr.nunu.entity.res.Project;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.data.jpa.repository.Modifying;
  6 +import org.springframework.data.jpa.repository.Query;
  7 +import org.springframework.data.repository.query.Param;
  8 +import org.springframework.stereotype.Repository;
  9 +
  10 +import java.util.List;
  11 +
  12 +/**
  13 + * @date 2020-02-21 11:47:29
  14 + * @author lilin
  15 + */
  16 +
  17 +@Repository
  18 +public interface ProjectDao extends CommonRepository<Long, Project> {
  19 +
  20 + /**
  21 + * 修改项目的对接状态
  22 + * @param projectId
  23 + * @param status
  24 + */
  25 + @Modifying
  26 + @Query("update Project set status = :status where id = :projectId")
  27 + void updateStatus(@Param("projectId") Long projectId, @Param("status") Integer status);
  28 +
  29 + /**
  30 + * 项目类型数据统计
  31 + * @param type 类型{@link Project}
  32 + * @param marker 删除标记{@link Project}
  33 + * @return
  34 + */
  35 + Long countByTypeAndMarker(Integer type, Integer marker);
  36 +
  37 +}
0 \ No newline at end of file 38 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/res/PropertyApplyDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/res/PropertyApplyDao.java
@@ -0,0 +1,45 @@ @@ -0,0 +1,45 @@
  1 +package com.softwarebr.nunu.dao.res;
  2 +
  3 +import com.brframework.commondb.core.CommonRepository;
  4 +import com.softwarebr.nunu.entity.res.PropertyApply;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @date 2020-02-24 12:19:06
  11 + * @author lilin
  12 + */
  13 +
  14 +@Repository
  15 +public interface PropertyApplyDao extends CommonRepository<Long, PropertyApply> {
  16 +
  17 +
  18 + /**
  19 + * 查询指定资源申请审核通过数据
  20 + * @param resourceType 资源类型{@link PropertyApply}
  21 + * @param targetId 资源对象ID
  22 + * @param proposer 申请人
  23 + * @param verify 审核状态
  24 + * @return
  25 + */
  26 + PropertyApply findTopByResourceTypeAndTargetIdAndProposerAndVerify(Integer resourceType, Long targetId, Long proposer, Integer verify);
  27 +
  28 + /**
  29 + * 查询指定资源并根据审核状态筛选数据
  30 + * @param resourceType 资源类型 {@link PropertyApply}
  31 + * @param targetId 资源对象id
  32 + * @param verify 审核状态
  33 + * @return
  34 + */
  35 + Long countByResourceTypeAndTargetIdAndVerify(Integer resourceType, Long targetId, Integer verify);
  36 +
  37 + /**
  38 + * 查询指定资源类型待审核数据
  39 + * @param resourceType 资源类型 {@link PropertyApply}
  40 + * @param verify 审核状态
  41 + * @return
  42 + */
  43 + List<PropertyApply> findByResourceTypeAndVerify(Integer resourceType, Integer verify);
  44 +
  45 +}
0 \ No newline at end of file 46 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/res/PropertyDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/res/PropertyDao.java
@@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
  1 +package com.softwarebr.nunu.dao.res;
  2 +
  3 +import com.softwarebr.nunu.entity.res.Property;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.data.jpa.domain.Specification;
  6 +import org.springframework.data.jpa.repository.Modifying;
  7 +import org.springframework.data.jpa.repository.Query;
  8 +import org.springframework.data.repository.query.Param;
  9 +import org.springframework.stereotype.Repository;
  10 +
  11 +import java.util.List;
  12 +
  13 +/**
  14 + * @date 2020-02-21 11:49:00
  15 + * @author lilin
  16 + */
  17 +
  18 +@Repository
  19 +public interface PropertyDao extends CommonRepository<Long, Property> {
  20 +
  21 +
  22 + /**
  23 + * 修改项目的对接状态
  24 + * @param propertyId
  25 + * @param status
  26 + */
  27 + @Modifying
  28 + @Query("update Property set status = :status where id = :propertyId")
  29 + void updateStatus(@Param("propertyId") Long propertyId, @Param("status") Integer status);
  30 +
  31 +
  32 +}
0 \ No newline at end of file 33 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/ser/PlatformDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/ser/PlatformDao.java
@@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
  1 +package com.softwarebr.nunu.dao.ser;
  2 +
  3 +import com.softwarebr.nunu.entity.ser.Platform;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @date 2020-02-24 13:22:47
  11 + * @author lilin
  12 + */
  13 +
  14 +@Repository
  15 +public interface PlatformDao extends CommonRepository<Long, Platform> {
  16 +
  17 +
  18 + /**
  19 + * 查询平台认证信息
  20 + * @param publisher
  21 + * @return
  22 + */
  23 + Platform findTopByPublisherOrderByCreateDateDesc(Long publisher);
  24 +
  25 + /**
  26 + * 查询已上架服务平台
  27 + * @param status
  28 + * @return
  29 + */
  30 + List<Platform> findByStatus(Integer status);
  31 +
  32 +}
0 \ No newline at end of file 33 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/train/ActivityDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/train/ActivityDao.java
@@ -0,0 +1,35 @@ @@ -0,0 +1,35 @@
  1 +package com.softwarebr.nunu.dao.train;
  2 +
  3 +import com.brframework.commondb.core.CommonRepository;
  4 +import com.softwarebr.nunu.entity.train.Activity;
  5 +import org.springframework.data.jpa.repository.Modifying;
  6 +import org.springframework.data.jpa.repository.Query;
  7 +import org.springframework.data.repository.query.Param;
  8 +import org.springframework.stereotype.Repository;
  9 +
  10 +/**
  11 + * @date 2020-02-26 11:02:46
  12 + * @author lilin
  13 + */
  14 +
  15 +@Repository
  16 +public interface ActivityDao extends CommonRepository<Long, Activity> {
  17 +
  18 + /**
  19 + * 活动名称查询活动信息
  20 + * @param name
  21 + * @return
  22 + */
  23 + Activity findFirstByName(String name);
  24 +
  25 + /**
  26 + * 更新活动报名人数
  27 + * @param activityId 活动id
  28 + * @param enrolment 报名人数
  29 + */
  30 + @Modifying
  31 + @Query("update Activity set enrolment = enrolment+ :enrolment where id = :activityId")
  32 + void updateEnrolment(@Param("activityId") Long activityId, @Param("enrolment") Integer enrolment);
  33 +
  34 +
  35 +}
0 \ No newline at end of file 36 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/train/ActivityLogDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/train/ActivityLogDao.java
@@ -0,0 +1,80 @@ @@ -0,0 +1,80 @@
  1 +package com.softwarebr.nunu.dao.train;
  2 +
  3 +import com.softwarebr.nunu.entity.train.ActivityLog;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.data.jpa.repository.Modifying;
  6 +import org.springframework.data.jpa.repository.Query;
  7 +import org.springframework.data.repository.query.Param;
  8 +import org.springframework.stereotype.Repository;
  9 +
  10 +import java.time.LocalDateTime;
  11 +import java.util.List;
  12 +
  13 +/**
  14 + * @date 2020/03/11 15:30:46
  15 + * @author lilin
  16 + */
  17 +
  18 +@Repository
  19 +public interface ActivityLogDao extends CommonRepository<Long, ActivityLog> {
  20 +
  21 + /**
  22 + * 订单号查询入场码
  23 + * @param orderNo
  24 + * @return
  25 + */
  26 + ActivityLog findByOrderNo(String orderNo);
  27 +
  28 + /**
  29 + * 更新报名信息入场码
  30 + * @param orderNo 订单号
  31 + * @param voucherCode 入场码
  32 + * @param failureStatus 入场码有效状态
  33 + */
  34 + @Modifying
  35 + @Query("update ActivityLog set voucherCode = :voucherCode, failureStatus = :failureStatus where orderNo = :orderNo")
  36 + void updateVoucherCode(@Param("orderNo") String orderNo, @Param("voucherCode") String voucherCode, @Param("failureStatus") Integer failureStatus);
  37 +
  38 + /**
  39 + * 更新入场码状态
  40 + * @param orderNo 订单号
  41 + * @param failureStatus 入场码有效状态
  42 + */
  43 + @Modifying
  44 + @Query("update ActivityLog set failureStatus = :failureStatus where orderNo = :orderNo")
  45 + void updateFailureStatus(@Param("orderNo") String orderNo, @Param("failureStatus") Integer failureStatus);
  46 +
  47 +
  48 + /**
  49 + * 更新报名人数
  50 + * @param orderNo 订单号
  51 + * @param enrolment 报名人数
  52 + */
  53 + @Modifying
  54 + @Query("update ActivityLog set enrolment = :enrolment where orderNo = :orderNo")
  55 + void updateEnrolment(@Param("orderNo") String orderNo, @Param("enrolment") Integer enrolment);
  56 +
  57 +
  58 + /**
  59 + * 根据活动ID查询报名信息
  60 + * @param activityId 活动ID
  61 + * @param failureStatus 入场码有效状态
  62 + * @return
  63 + */
  64 + List<ActivityLog> findByActivityIdAndFailureStatus(Long activityId, Integer failureStatus);
  65 +
  66 +
  67 + /**
  68 + * 活动时间区间与活动类型统计报名数据
  69 + * @param type 活动类型
  70 + * @param startDate 开始时间
  71 + * @param endDate 结束时间
  72 + * @return
  73 + */
  74 + @Query(value = "SELECT COUNT(*) FROM train_activity_log WHERE activity_id IN (SELECT id FROM train_activity WHERE TYPE = :type " +
  75 + "AND category = :category AND start_date >= :startDate AND end_date <= :endDate)", nativeQuery = true)
  76 + Long countActivityLogByType(@Param("type") Integer type, @Param("category") Integer category ,
  77 + @Param("startDate") LocalDateTime startDate, @Param("endDate") LocalDateTime endDate);
  78 +
  79 +
  80 +}
0 \ No newline at end of file 81 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/user/MemberDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/user/MemberDao.java
@@ -0,0 +1,44 @@ @@ -0,0 +1,44 @@
  1 +package com.softwarebr.nunu.dao.user;
  2 +
  3 +import com.softwarebr.nunu.entity.user.Member;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +import java.time.LocalDateTime;
  8 +
  9 +/**
  10 + * 用户
  11 + * @Author lilin
  12 + * @Date 2020-02-17 14:07:07
  13 + */
  14 +
  15 +@Repository
  16 +public interface MemberDao extends CommonRepository<Long, Member> {
  17 +
  18 +
  19 + /**
  20 + * 根据手机号码查询用户信息
  21 + *
  22 + * @param phone
  23 + * @return
  24 + */
  25 + Member findByPhone(String phone);
  26 +
  27 + /**
  28 + * 微信openId查找用户信息
  29 + * @param wxOpenId
  30 + * @return
  31 + */
  32 + Member findByWxOpenId(String wxOpenId);
  33 +
  34 + /**
  35 + * 根据身份及时间区间查询总数
  36 + * @param identityType 身份类型{@link Member}
  37 + * @param startDate 开始时间
  38 + * @param entDate 结束时间
  39 + * @return
  40 + */
  41 + Long countByIdentityTypeAndCreateDateBetween(Integer identityType, LocalDateTime startDate, LocalDateTime entDate);
  42 +
  43 +
  44 +}
0 \ No newline at end of file 45 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/user/MessageDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/user/MessageDao.java
@@ -0,0 +1,66 @@ @@ -0,0 +1,66 @@
  1 +package com.softwarebr.nunu.dao.user;
  2 +
  3 +import com.brframework.commondb.core.CommonRepository;
  4 +import com.softwarebr.nunu.entity.user.Member;
  5 +import com.softwarebr.nunu.entity.user.Message;
  6 +import org.springframework.data.domain.Page;
  7 +import org.springframework.data.domain.Pageable;
  8 +import org.springframework.data.jpa.repository.Query;
  9 +import org.springframework.data.repository.query.Param;
  10 +import org.springframework.stereotype.Repository;
  11 +
  12 +import java.time.LocalDateTime;
  13 +import java.util.List;
  14 +
  15 +/**
  16 + * @date 2020/03/17 15:40:01
  17 + * @author lilin
  18 + */
  19 +
  20 +@Repository
  21 +public interface MessageDao extends CommonRepository<Long, Message> {
  22 +
  23 + /**
  24 + * 根据用户id查询记录
  25 + * @param memberId
  26 + * @param id
  27 + * @return
  28 + */
  29 + @Query(value= "select m.* from u_message as m where m.member_id = :memberId and m.id < :id order by create_date DESC LIMIT 12", nativeQuery = true)
  30 + List<Message> findByMemberId(@Param("memberId") Long memberId, @Param("id") Long id);
  31 +
  32 + /**
  33 + * 根据用户id查询记录
  34 + * @param memberId
  35 + * @return
  36 + */
  37 + @Query(value= "select m.* from u_message as m where m.member_id = :memberId order by create_date DESC LIMIT 12", nativeQuery = true)
  38 + List<Message> findByMemberId(@Param("memberId") Long memberId);
  39 +
  40 + /**
  41 + * 根据用户id查询其最后一条记录
  42 + * @param memberId
  43 + * @return
  44 + */
  45 + Message findTopByMemberIdOrderByCreateDateDesc(Long memberId);
  46 +
  47 + /**
  48 + * 查询多个id的消息进行分页
  49 + * @param memberId
  50 + * @param pageable
  51 + * @return
  52 + */
  53 + Page<Message> findByMemberId(Long memberId, Pageable pageable);
  54 +
  55 + /**
  56 + * 查询多个id的消息
  57 + *
  58 + * @param createDate
  59 + * @param sendUserIds
  60 + * @return
  61 + */
  62 + List<Message> findByCreateDateGreaterThanAndMemberIdIn(LocalDateTime createDate, List<Long> sendUserIds);
  63 +
  64 +
  65 +
  66 +}
0 \ No newline at end of file 67 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/user/OrderDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/user/OrderDao.java
@@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
  1 +package com.softwarebr.nunu.dao.user;
  2 +
  3 +import com.brframework.commondb.core.CommonRepository;
  4 +import com.softwarebr.nunu.entity.user.Order;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +/**
  8 + * @date 2020-02-27 12:00:43
  9 + * @author lilin
  10 + */
  11 +
  12 +@Repository
  13 +public interface OrderDao extends CommonRepository<Long, Order> {
  14 +
  15 +
  16 + /**
  17 + * 订单号查询订单
  18 + * @param orderNo 订单
  19 + * @return
  20 + */
  21 + Order findByOrderNo(String orderNo);
  22 +
  23 +}
0 \ No newline at end of file 24 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/dao/user/RefundInfoDao.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dao/user/RefundInfoDao.java
@@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
  1 +package com.softwarebr.nunu.dao.user;
  2 +
  3 +import com.softwarebr.nunu.entity.user.RefundInfo;
  4 +import com.brframework.commondb.core.CommonRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +/**
  8 + * @date 2020-02-27 13:36:08
  9 + * @author lilin
  10 + */
  11 +
  12 +@Repository
  13 +public interface RefundInfoDao extends CommonRepository<Long, RefundInfo> {
  14 +
  15 + /**
  16 + * 订单Id查询退款信息
  17 + * @param orderId
  18 + * @return
  19 + */
  20 + RefundInfo findTopByOrderId(Long orderId);
  21 +
  22 +}
0 \ No newline at end of file 23 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/domain/ActivityLogExcel.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/ActivityLogExcel.java
@@ -0,0 +1,43 @@ @@ -0,0 +1,43 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModel;
  5 +import io.swagger.annotations.ApiModelProperty;
  6 +import lombok.Data;
  7 +
  8 +import java.time.LocalDateTime;
  9 +/**
  10 + * 活动报名信息下载
  11 + * @author lilin
  12 + * @date 2020-03-12 10:38:00
  13 + */
  14 +@Data
  15 +@ApiModel
  16 +public class ActivityLogExcel {
  17 +
  18 + @ApiModelProperty(value = "序号", required = true, example = "1")
  19 + private String id;
  20 +
  21 + @ApiModelProperty(value = "姓名", required = true, example = "")
  22 + private String name;
  23 +
  24 + @ApiModelProperty(value = "入场码", required = true, example = "")
  25 + private String voucherCode;
  26 +
  27 + @ApiModelProperty(value = "联系方式", required = true, example = "")
  28 + private String contact;
  29 +
  30 + @ApiModelProperty(value = "公司名称", required = true, example = "")
  31 + private String companyName;
  32 +
  33 + @ApiModelProperty(value = "职位", required = true, example = "")
  34 + private String position;
  35 +
  36 + @ApiModelProperty(value = "报名人数", required = true, example = "")
  37 + private String enrolment;
  38 +
  39 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  40 + @ApiModelProperty(value = "报名时间", required = true, example = "2018-03-12 21:32:33")
  41 + private LocalDateTime createDate;
  42 +
  43 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/AgreementConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/AgreementConfig.java
@@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import com.brframework.commoncms.annatotion.column.RichTextColumn;
  4 +import io.swagger.annotations.ApiModel;
  5 +import io.swagger.annotations.ApiModelProperty;
  6 +import lombok.Data;
  7 +
  8 +/**
  9 + * 用户协议
  10 + * @author lilin
  11 + * @date 2020-02-25 15:59:36
  12 + */
  13 +@Data
  14 +@ApiModel
  15 +public class AgreementConfig {
  16 +
  17 + public static final String KEY = "KEY_AGREEMENT";
  18 +
  19 + @RichTextColumn
  20 + @ApiModelProperty(value = "内容描述", required = true, example = "")
  21 + private String content;
  22 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/Attachments.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/Attachments.java
@@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +/**
  8 + * 附件处理
  9 + * @author lilin
  10 + * @date 2020/2/26 16:53
  11 + */
  12 +@Data
  13 +@ApiModel
  14 +public class Attachments {
  15 +
  16 + @ApiModelProperty(value = "文件名", required = true, example = "")
  17 + private String name;
  18 +
  19 + @ApiModelProperty(value = "文件地址", required = true, example = "")
  20 + private String url;
  21 +
  22 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/Calculation.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/Calculation.java
@@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import java.math.BigDecimal;
  8 +
  9 +/**
  10 + * 价格计算
  11 + * @author lilin
  12 + * @date 2020-03-13 10:16:00
  13 + */
  14 +@Data
  15 +@ApiModel
  16 +public class Calculation {
  17 +
  18 + @ApiModelProperty(value = "订单总价", required = true, example = "")
  19 + private BigDecimal totalPrice;
  20 +
  21 + @ApiModelProperty(value = "活动价格", required = true, example = "")
  22 + private BigDecimal price;
  23 +
  24 + @ApiModelProperty(value = "订单数量", required = true, example = "")
  25 + private Integer orderAmount;
  26 +
  27 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/HotDemand.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/HotDemand.java
@@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import javax.validation.constraints.NotNull;
  8 +
  9 +/**
  10 + * 热门需求
  11 + * @author lilin
  12 + * @date 2020/2/26 16:53
  13 + */
  14 +@Data
  15 +@ApiModel
  16 +public class HotDemand {
  17 +
  18 + @ApiModelProperty(value = "资源类型(1.项目资源 2.招聘资源 3.载体资源 )", required = true, example = "")
  19 + @NotNull(message = "资源类型不能为空")
  20 + private Integer resourceType;
  21 +
  22 + @ApiModelProperty(value = "资源对象id", required = true, example = "")
  23 + @NotNull(message = "资源对象id能为空")
  24 + private Long targetId;
  25 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/InvestInfo.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/InvestInfo.java
@@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +/**
  8 + *
  9 + * 投资机构
  10 + * @date 2020-02-25 15:59:36
  11 + * @author lilin
  12 + */
  13 +
  14 +@Data
  15 +@ApiModel
  16 +public class InvestInfo {
  17 +
  18 + @ApiModelProperty(value = "项目名称", required = true, example = "")
  19 + private String investName;
  20 +
  21 + @ApiModelProperty(value = "项目图片", required = true, example = "")
  22 + private String coverUri;
  23 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/InviteJob.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/InviteJob.java
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import javax.validation.constraints.NotEmpty;
  8 +
  9 +/**
  10 + * @date 2020-02-25 15:59:36
  11 + * @author lilin
  12 + */
  13 +
  14 +@Data
  15 +@ApiModel
  16 +public class InviteJob {
  17 +
  18 + @ApiModelProperty(value = "岗位", required = true, example = "")
  19 + @NotEmpty(message = "岗位不能为空")
  20 + private String station;
  21 +
  22 + @ApiModelProperty(value = "薪资", required = true, example = "")
  23 + @NotEmpty(message = "薪资不能为空")
  24 + private String salary;
  25 +
  26 + @ApiModelProperty(value = "职责", required = true, example = "")
  27 + @NotEmpty(message = "职责不能为空")
  28 + private String duty;
  29 +
  30 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/OrderOnlinePay.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/OrderOnlinePay.java
@@ -0,0 +1,28 @@ @@ -0,0 +1,28 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +
  10 +/**
  11 + * 订单在线支付
  12 + * @author xu
  13 + * @date 2019/12/10 11:15
  14 + */
  15 +@ApiModel
  16 +@Data
  17 +@Builder
  18 +@AllArgsConstructor
  19 +@NoArgsConstructor
  20 +public class OrderOnlinePay {
  21 +
  22 + @ApiModelProperty(value = "支付方式 1.支付宝 2.微信", required = true, example = "1")
  23 + private Integer payMethod;
  24 +
  25 + @ApiModelProperty(value = "支付信息", required = true, example = "1")
  26 + private String payInfo;
  27 +
  28 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/PayConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/PayConfig.java
@@ -0,0 +1,69 @@ @@ -0,0 +1,69 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import com.brframework.commoncms.annatotion.column.TextAreaColumn;
  4 +import io.swagger.annotations.ApiModel;
  5 +import io.swagger.annotations.ApiModelProperty;
  6 +import lombok.Data;
  7 +
  8 +/**
  9 + * 订单支付配置
  10 + *
  11 + * @author xu
  12 + * @date 2019/10/23 9:58
  13 + */
  14 +@ApiModel
  15 +@Data
  16 +public class PayConfig {
  17 + public static final String KEY = "KEY_PAY_CONFIG";
  18 +
  19 + @ApiModelProperty(value = "支付宝商户id", example = "12453464565")
  20 + String apPid;
  21 + @ApiModelProperty(value = "支付宝网关", example = "")
  22 + String apServerUrl;
  23 + @ApiModelProperty(value = "信用服务ID", example = "")
  24 + String apServiceId;
  25 +
  26 +
  27 + /**------------------ PC支付宝支付 -------------------**/
  28 + @ApiModelProperty(value = "PC支付宝支付回调", example = "http://...")
  29 + String appApPayNotifyUrl;
  30 + @ApiModelProperty(value = "PC支付宝公钥证书", example = "")
  31 + @TextAreaColumn
  32 + String appApAlipayPublicCertContent;
  33 + @ApiModelProperty(value = "PC支付宝根证书", example = "")
  34 + @TextAreaColumn
  35 + String appApRootCertContent;
  36 + @ApiModelProperty(value = "PC支付宝App证书", example = "")
  37 + @TextAreaColumn
  38 + String appApCertContent;
  39 + @ApiModelProperty(value = "PC支付宝AppId", example = "")
  40 + String appApAppId;
  41 + @ApiModelProperty(value = "PC支付宝私钥", example = "")
  42 + @TextAreaColumn
  43 + String appApPrivateKey;
  44 +
  45 + /**------------------ PC微信支付 -------------------**/
  46 + @ApiModelProperty(value = "微信PC的APPId", example = "4334dfgdfgdfgd")
  47 + String wxAppId;
  48 + @ApiModelProperty(value = "微信PC的AppSecret", example = "4334dfgdfgdfgd")
  49 + String wxAppSecret;
  50 + @ApiModelProperty(value = "微信支付商户号", example = "15053434911")
  51 + String wxMchId;
  52 + @ApiModelProperty(value = "微信支付商户密钥", example = "XeZjSKqy3bgfd345435gwI34OFW")
  53 + String wxMchKey;
  54 + @ApiModelProperty(value = "签名方法", example = "MD5")
  55 + String wxSignType;
  56 + @ApiModelProperty(value = "微信Token", example = "XeZjSKqy3bgfd345435gwI34OFW")
  57 + String wxToken;
  58 + @ApiModelProperty(value = "微信EncodingAESKey", example = "XeZjSKqy3bgfd345435gwI34OFW")
  59 + String wxAesKey;
  60 + @ApiModelProperty(value = "微信PC回调地址", example = "http://...")
  61 + String wxOAuthRedirectUrl;
  62 +
  63 + @ApiModelProperty(value = "微信公众号的APPId", example = "4334dfgdfgdfgd")
  64 + String wxAppletAppId;
  65 + @ApiModelProperty(value = "微信公众号的AppSecret", example = "4334dfgdfgdfgd")
  66 + String wxAppletAppSecret;
  67 + @ApiModelProperty(value = "微信公众号回调地址", example = "http://...")
  68 + String wxAppletRedirectUrl;
  69 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/PlatformModular.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/PlatformModular.java
@@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +/**
  8 + * @date 2020-02-25 15:59:36
  9 + * @author lilin
  10 + */
  11 +
  12 +@Data
  13 +@ApiModel
  14 +public class PlatformModular {
  15 +
  16 + @ApiModelProperty(value = "模块名称", required = true, example = "")
  17 + private String name;
  18 +
  19 + @ApiModelProperty(value = "模块内容", required = true, example = "")
  20 + private String content;
  21 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/SMSConfig.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/SMSConfig.java
@@ -0,0 +1,34 @@ @@ -0,0 +1,34 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +/**
  8 + * 短信配置
  9 + * @author xu
  10 + * @date 2019/10/22 16:24
  11 + */
  12 +@ApiModel
  13 +@Data
  14 +public class SMSConfig {
  15 + public static final String KEY = "KEY_SMS_CONFIG";
  16 +
  17 + @ApiModelProperty(value = "阿里AK", example = "dfd")
  18 + String aliAk;
  19 + @ApiModelProperty(value = "阿里AS", example = "fdsfdf")
  20 + String aliSk;
  21 + @ApiModelProperty(value = "阿里签名", example = "fdsfdf")
  22 + String aliSign;
  23 + @ApiModelProperty(value = "验证码长度", example = "60")
  24 + Integer length;
  25 + @ApiModelProperty(value = "发送间隔(秒)", example = "60")
  26 + Integer interval;
  27 + @ApiModelProperty(value = "超时时间(分钟)", example = "15")
  28 + Integer timeout;
  29 + @ApiModelProperty(value = "最大错误重试次数", example = "1")
  30 + Integer tautology;
  31 + @ApiModelProperty(value = "通用验证码(不填为不开启)", example = "1")
  32 + String generalCaptcha;
  33 +
  34 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/SendMessage.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/SendMessage.java
@@ -0,0 +1,34 @@ @@ -0,0 +1,34 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +/**
  8 + * 热门需求
  9 + * @author lilin
  10 + * @date 2020/2/26 16:53
  11 + */
  12 +@Data
  13 +@ApiModel
  14 +public class SendMessage {
  15 +
  16 + @ApiModelProperty(value = "用户", required = true, example = "")
  17 + private Long memberId;
  18 +
  19 + @ApiModelProperty(value = "消息类型 1.审核提醒 2.项目联系方式审核提醒 3.项目提交方收到申请提醒", required = true, example = "1")
  20 + private Integer type;
  21 +
  22 + @ApiModelProperty(value = "消息标题", required = true, example = "您的项目智能产品试点示范项目已审核通过")
  23 + private String title;
  24 +
  25 + @ApiModelProperty(value = "消息内容", required = true, example = "我对您的智能产品试点示范项目很感兴趣,可以查看您的联系方式和附件吗?我想了解具体情况,谢谢")
  26 + private String description;
  27 +
  28 + @ApiModelProperty(value = "跳转类型", required = true, example = "1")
  29 + private Integer targetType;
  30 +
  31 + @ApiModelProperty(value = "对象ID", required = true, example = "1454456544")
  32 + private String targetId;
  33 +
  34 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/ServiceTerms.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/ServiceTerms.java
@@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import com.brframework.commoncms.annatotion.column.RichTextColumn;
  4 +import io.swagger.annotations.ApiModel;
  5 +import io.swagger.annotations.ApiModelProperty;
  6 +import lombok.Data;
  7 +
  8 +/**
  9 + * 服务条款
  10 + * @author lilin
  11 + * @date 2020-02-25 15:59:36
  12 + */
  13 +@Data
  14 +@ApiModel
  15 +public class ServiceTerms {
  16 +
  17 + public static final String KEY = "KEY_SERVICE_TERMS";
  18 +
  19 + @RichTextColumn
  20 + @ApiModelProperty(value = "内容描述", required = true, example = "")
  21 + private String content;
  22 +
  23 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/VerifyPageTotal.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/VerifyPageTotal.java
@@ -0,0 +1,54 @@ @@ -0,0 +1,54 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +/**
  8 + * 数据展示各状态数据统计
  9 + *
  10 + * @author lilin
  11 + * @date 2019/11/8
  12 + * @time 16:51
  13 + */
  14 +@Data
  15 +@ApiModel
  16 +public class VerifyPageTotal {
  17 +
  18 + @ApiModelProperty(value = "全部", required = true, example = "10")
  19 + private Integer totalCount;
  20 +
  21 + @ApiModelProperty(value = "待审核", required = true, example = "10")
  22 + private Integer verifyAwaitCount;
  23 +
  24 + @ApiModelProperty(value = "审核通过", required = true, example = "10")
  25 + private Integer verifyAdoptCount;
  26 +
  27 + @ApiModelProperty(value = "审核不通过", required = true, example = "10")
  28 + private Integer verifyRejectCount;
  29 +
  30 + @ApiModelProperty(value = "已下架", required = true, example = "10")
  31 + private Integer lowerCount;
  32 +
  33 + @ApiModelProperty(value = "上架中", required = true, example = "10")
  34 + private Integer upperCount;
  35 +
  36 + @ApiModelProperty(value = "待受理", required = true, example = "10")
  37 + private Integer waitAcceptCount;
  38 +
  39 + @ApiModelProperty(value = "受理中", required = true, example = "10")
  40 + private Integer acceptanceCount;
  41 +
  42 + @ApiModelProperty(value = "服务完成", required = true, example = "10")
  43 + private Integer successCount;
  44 +
  45 + @ApiModelProperty(value = "项目需求资源", required = true, example = "10")
  46 + private Integer projectCount;
  47 +
  48 + @ApiModelProperty(value = "场地资源", required = true, example = "10")
  49 + private Integer propertyCount;
  50 +
  51 + @ApiModelProperty(value = "招聘会资源", required = true, example = "10")
  52 + private Integer inviteCount;
  53 +
  54 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/VisualizationDate.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/VisualizationDate.java
@@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import java.time.LocalDateTime;
  8 +
  9 +/**
  10 + * 可视化数据时间区间处理
  11 + * @date 2020-02-25 15:59:36
  12 + * @author lilin
  13 + */
  14 +@Data
  15 +@ApiModel
  16 +public class VisualizationDate {
  17 +
  18 + @ApiModelProperty(value = " 区间最大时间 ", required = true, example = "")
  19 + private LocalDateTime maxDate;
  20 +
  21 + @ApiModelProperty(value = "区间最小时间", required = true, example = "")
  22 + private LocalDateTime minDate;
  23 +
  24 + @ApiModelProperty(value = "时间差(天)", required = true, example = "10")
  25 + private Long days;
  26 +
  27 +}
boot-nunu/src/main/java/com/softwarebr/nunu/domain/WxPayOrder.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/domain/WxPayOrder.java
@@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
  1 +package com.softwarebr.nunu.domain;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +/**
  8 + * 微信支付返回数据
  9 + * @author lilin
  10 + * @date 2019/11/8
  11 + * @time 16:51
  12 + */
  13 +@Data
  14 +@ApiModel
  15 +public class WxPayOrder {
  16 +
  17 + @ApiModelProperty(value = "签名", required = true, example = "22D9B4E54AB1950F51E0649E8810ACD6")
  18 + private String sign;
  19 +
  20 + @ApiModelProperty(value = "微信支付返回数据", required = true, example = "")
  21 + private String wxPayResult;
  22 +
  23 + @ApiModelProperty(value = "时间戳", required = true, example = "254855552552")
  24 + private String timeStamp;
  25 +
  26 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/go/PolicyLabelParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/go/PolicyLabelParamDTO.java
@@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
  1 +package com.softwarebr.nunu.dto.go;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import lombok.Data;
  5 +
  6 +/**
  7 + * @date 2020-02-19 15:35:44
  8 + * @author lilin
  9 + */
  10 +
  11 +@Data
  12 +public class PolicyLabelParamDTO {
  13 +
  14 + @ApiModelProperty(value = "一级分类", required = true, example = "")
  15 + private Long parentLevelId;
  16 +
  17 + @ApiModelProperty(value = "二级分类", required = true, example = "")
  18 + private Long childLevelId;
  19 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/go/PolicyParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/go/PolicyParamDTO.java
@@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
  1 +package com.softwarebr.nunu.dto.go;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import lombok.Data;
  5 +
  6 +/**
  7 + * @date 2020-02-19 15:35:44
  8 + * @author lilin
  9 + */
  10 +
  11 +@Data
  12 +public class PolicyParamDTO {
  13 +
  14 + @ApiModelProperty(value = "政策名称", required = true, example = "")
  15 + private String title;
  16 +
  17 + @ApiModelProperty(value = "政策详情 ", required = true, example = "")
  18 + private String content;
  19 +
  20 + @ApiModelProperty(value = "省份", required = true, example = "")
  21 + private Long provinceId;
  22 +
  23 + @ApiModelProperty(value = "城市", required = true, example = "")
  24 + private Long cityId;
  25 +
  26 + @ApiModelProperty(value = "区县", required = true, example = "")
  27 + private Long areaId;
  28 +
  29 + @ApiModelProperty(value = "申报状态0.仅显示 1.可申报", required = true, example = "")
  30 + private Integer applyStatus;
  31 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/hall/InvestParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/hall/InvestParamDTO.java
@@ -0,0 +1,65 @@ @@ -0,0 +1,65 @@
  1 +package com.softwarebr.nunu.dto.hall;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import lombok.Data;
  5 +
  6 +/**
  7 + * @date 2020-02-25 12:03:51
  8 + * @author lilin
  9 + */
  10 +
  11 +@Data
  12 +public class InvestParamDTO {
  13 +
  14 + @ApiModelProperty(value = "项目名称", required = true, example = "")
  15 + private String name;
  16 +
  17 + @ApiModelProperty(value = "项目阶段(1初创期 2成长期)", required = true, example = "")
  18 + private Integer state;
  19 +
  20 + @ApiModelProperty(value = "融资阶段(1种子轮 2天使轮 3A轮 4 B轮 5C轮 6C轮后)", required = true, example = "")
  21 + private Integer investState;
  22 +
  23 + @ApiModelProperty(value = "行业分类(1互联网 2新材料 3新能源 4环保技术 5先进制造 6高端装备 7新一代信息技术 8生物医药 9大健康 10电子商务 11其它)", required = true, example = "")
  24 + private Integer industry;
  25 +
  26 + @ApiModelProperty(value = "省份", required = true, example = "")
  27 + private Long provinceId;
  28 +
  29 + @ApiModelProperty(value = "城市", required = true, example = "")
  30 + private Long cityId;
  31 +
  32 + @ApiModelProperty(value = "区县", required = true, example = "")
  33 + private Long areaId;
  34 +
  35 + @ApiModelProperty(value = "项目封面图", required = true, example = "")
  36 + private String coverUri;
  37 +
  38 + @ApiModelProperty(value = "项目图片(多图逗号隔开)", required = true, example = "")
  39 + private String detailImagesUri;
  40 +
  41 + @ApiModelProperty(value = "项目视频", required = true, example = "")
  42 + private String mediaUri;
  43 +
  44 + @ApiModelProperty(value = "附件", required = true, example = "")
  45 + private String attachment;
  46 +
  47 + @ApiModelProperty(value = "项目简介(text)", required = true, example = "")
  48 + private String description;
  49 +
  50 + @ApiModelProperty(value = "项目亮点(text)", required = true, example = "")
  51 + private String lightPoint;
  52 +
  53 + @ApiModelProperty(value = "项目联系人", required = true, example = "")
  54 + private String contact;
  55 +
  56 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  57 + private String contactPhone;
  58 +
  59 + @ApiModelProperty(value = "电子邮箱", required = true, example = "")
  60 + private String email;
  61 +
  62 + @ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
  63 + private Integer publicity;
  64 +
  65 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/hall/TeamParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/hall/TeamParamDTO.java
@@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
  1 +package com.softwarebr.nunu.dto.hall;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import lombok.Data;
  5 +
  6 +/**
  7 + * 团队介绍
  8 + * @date 2020-02-25 12:11:26
  9 + * @author lilin
  10 + */
  11 +
  12 +@Data
  13 +public class TeamParamDTO {
  14 +
  15 + @ApiModelProperty(value = "id(修改时必填,添加时忽略)", example = "1")
  16 + private Long id;
  17 +
  18 + @ApiModelProperty(value = "个人照片", required = true, example = "")
  19 + private String pictureUri;
  20 +
  21 + @ApiModelProperty(value = "个人姓名", required = true, example = "")
  22 + private String name;
  23 +
  24 + @ApiModelProperty(value = "所属职责", required = true, example = "")
  25 + private String duty;
  26 +
  27 + @ApiModelProperty(value = "个人简介", required = true, example = "")
  28 + private String synopsis;
  29 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/oper/AdvertisementParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/oper/AdvertisementParamDTO.java
@@ -0,0 +1,45 @@ @@ -0,0 +1,45 @@
  1 +package com.softwarebr.nunu.dto.oper;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import java.time.LocalDateTime;
  8 +
  9 +/**
  10 + * @date 2020-02-18 10:58:32
  11 + * @author lilin
  12 + */
  13 +
  14 +@Data
  15 +public class AdvertisementParamDTO {
  16 +
  17 + @ApiModelProperty(value = "广告位置", required = true, example = "")
  18 + private Integer position;
  19 +
  20 + @ApiModelProperty(value = "广告名称", required = true, example = "")
  21 + private String name;
  22 +
  23 + @ApiModelProperty(value = "广告图片", required = true, example = "")
  24 + private String advertUri;
  25 +
  26 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  27 + @ApiModelProperty(value = "开始时间", required = true, example = "")
  28 + private LocalDateTime startDate;
  29 +
  30 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  31 + @ApiModelProperty(value = "结束时间", required = true, example = "")
  32 + private LocalDateTime endDate;
  33 +
  34 + @ApiModelProperty(value = "排序值", required = true, example = "")
  35 + private Integer sortValue;
  36 +
  37 + @ApiModelProperty(value = "链接类型", required = true, example = "")
  38 + private Integer linkType;
  39 +
  40 + @ApiModelProperty(value = "跳转类型", required = true, example = "")
  41 + private Integer type;
  42 +
  43 + @ApiModelProperty(value = "跳转地址", required = true, example = "")
  44 + private String linkUri;
  45 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/org/InvestOrgParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/org/InvestOrgParamDTO.java
@@ -0,0 +1,40 @@ @@ -0,0 +1,40 @@
  1 +package com.softwarebr.nunu.dto.org;
  2 +
  3 +import com.softwarebr.nunu.domain.InvestInfo;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * @date 2020-02-25 15:59:36
  11 + * @author lilin
  12 + */
  13 +
  14 +@Data
  15 +public class InvestOrgParamDTO {
  16 +
  17 + @ApiModelProperty(value = "公司名称", required = true, example = "")
  18 + private String companyName;
  19 +
  20 + @ApiModelProperty(value = "公司类型(1投资机构公司 2投资基金公司)", required = true, example = "")
  21 + private Integer companyType;
  22 +
  23 + @ApiModelProperty(value = "公司封面图", required = true, example = "")
  24 + private String coverUri;
  25 +
  26 + @ApiModelProperty(value = "公司简介", required = true, example = "")
  27 + private String description;
  28 +
  29 + @ApiModelProperty(value = "公司背景(text)", required = true, example = "")
  30 + private String backGround;
  31 +
  32 + @ApiModelProperty(value = "已投项目", required = true, example = "")
  33 + private List<InvestInfo> investInfo;
  34 +
  35 + @ApiModelProperty(value = "联系人", required = true, example = "")
  36 + private String contact;
  37 +
  38 + @ApiModelProperty(value = "联系方式", required = true, example = "")
  39 + private String contactPhone;
  40 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/res/InviteParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/res/InviteParamDTO.java
@@ -0,0 +1,60 @@ @@ -0,0 +1,60 @@
  1 +package com.softwarebr.nunu.dto.res;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import java.time.LocalDateTime;
  8 +
  9 +/**
  10 + * @date 2020-02-21 11:48:30
  11 + * @author lilin
  12 + */
  13 +
  14 +@Data
  15 +public class InviteParamDTO {
  16 +
  17 + @ApiModelProperty(value = "招聘会名称", required = true, example = "")
  18 + private String inviteName;
  19 +
  20 + @ApiModelProperty(value = "公司名称", required = true, example = "")
  21 + private String companyName;
  22 +
  23 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  24 + @ApiModelProperty(value = "招聘开始时间", required = true, example = "")
  25 + private LocalDateTime startDate;
  26 +
  27 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  28 + @ApiModelProperty(value = "招聘结束时间", required = true, example = "")
  29 + private LocalDateTime endDate;
  30 +
  31 + @ApiModelProperty(value = "招聘封面图", required = true, example = "")
  32 + private String coverUri;
  33 +
  34 + @ApiModelProperty(value = "招聘省份", required = true, example = "")
  35 + private Long provinceId;
  36 +
  37 + @ApiModelProperty(value = "招聘城市", required = true, example = "")
  38 + private Long cityId;
  39 +
  40 + @ApiModelProperty(value = "招聘区县", required = true, example = "")
  41 + private Long areaId;
  42 +
  43 + @ApiModelProperty(value = "招聘岗位", required = true, example = "")
  44 + private String jobJson;
  45 +
  46 + @ApiModelProperty(value = "招聘详情", required = true, example = "")
  47 + private String detail;
  48 +
  49 + @ApiModelProperty(value = "项目联系人", required = true, example = "")
  50 + private String contact;
  51 +
  52 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  53 + private String contactPhone;
  54 +
  55 + @ApiModelProperty(value = "电子邮箱", required = true, example = "")
  56 + private String email;
  57 +
  58 + @ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
  59 + private Integer publicity;
  60 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/res/ProjectParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/res/ProjectParamDTO.java
@@ -0,0 +1,51 @@ @@ -0,0 +1,51 @@
  1 +package com.softwarebr.nunu.dto.res;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import lombok.Data;
  5 +
  6 +import java.math.BigDecimal;
  7 +
  8 +/**
  9 + * @date 2020-02-21 11:47:29
  10 + * @author lilin
  11 + */
  12 +
  13 +@Data
  14 +public class ProjectParamDTO {
  15 +
  16 + @ApiModelProperty(value = "项目名称", required = true, example = "")
  17 + private String projectName;
  18 +
  19 + @ApiModelProperty(value = "项目编号", required = true, example = "")
  20 + private String projectNo;
  21 +
  22 + @ApiModelProperty(value = "项目状态(1征集中 2已对接 3已终止)", required = true, example = "")
  23 + private Integer status;
  24 +
  25 + @ApiModelProperty(value = "项目类型(1技术开发 2知识产权许可 3成果转让 4技术咨询 5成果转移合作)", required = true, example = "")
  26 + private Integer type;
  27 +
  28 + @ApiModelProperty(value = "项目价格(-1面议)", required = true, example = "")
  29 + private BigDecimal price;
  30 +
  31 + @ApiModelProperty(value = "项目封面图", required = true, example = "")
  32 + private String coverUri;
  33 +
  34 + @ApiModelProperty(value = "项目简介", required = true, example = "")
  35 + private String description;
  36 +
  37 + @ApiModelProperty(value = "交易流程(text)", required = true, example = "")
  38 + private String tradeProcess;
  39 +
  40 + @ApiModelProperty(value = "项目联系人", required = true, example = "")
  41 + private String contact;
  42 +
  43 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  44 + private String contactPhone;
  45 +
  46 + @ApiModelProperty(value = "电子邮箱", required = true, example = "")
  47 + private String email;
  48 +
  49 + @ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
  50 + private Integer publicity;
  51 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/res/PropertyParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/res/PropertyParamDTO.java
@@ -0,0 +1,75 @@ @@ -0,0 +1,75 @@
  1 +package com.softwarebr.nunu.dto.res;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import javax.validation.constraints.NotNull;
  8 +import java.math.BigDecimal;
  9 +import java.time.LocalDateTime;
  10 +
  11 +/**
  12 + * @date 2020-02-21 11:49:00
  13 + * @author lilin
  14 + */
  15 +
  16 +@Data
  17 +public class PropertyParamDTO {
  18 +
  19 + @ApiModelProperty(value = "载体名称", required = true, example = "")
  20 + private String name;
  21 +
  22 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  23 + @ApiModelProperty(value = "出租开始时间", required = true, example = "")
  24 + private LocalDateTime startDate;
  25 +
  26 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  27 + @ApiModelProperty(value = "出租结束时间", required = true, example = "")
  28 + private LocalDateTime endDate;
  29 +
  30 + @ApiModelProperty(value = "项目价格(-1面议)", required = true, example = "")
  31 + private BigDecimal price;
  32 +
  33 + @ApiModelProperty(value = "最小容量", required = true, example = "")
  34 + private Integer minCapacity;
  35 +
  36 + @ApiModelProperty(value = "最大容量", required = true, example = "")
  37 + private Integer maxCapacity;
  38 +
  39 + @ApiModelProperty(value = "出售类型(1出租 2出售)", required = true, example = "")
  40 + private Integer type;
  41 +
  42 + @ApiModelProperty(value = "出售状态(1未出租 2已出租)", required = true, example = "")
  43 + private Integer status;
  44 +
  45 + @ApiModelProperty(value = "载体封面图", required = true, example = "")
  46 + private String coverUri;
  47 +
  48 + @ApiModelProperty(value = "出租省份", required = true, example = "")
  49 + @NotNull(message = "请选择省份")
  50 + private Long provinceId;
  51 +
  52 + @ApiModelProperty(value = "出租城市", required = true, example = "")
  53 + private Long cityId;
  54 +
  55 + @ApiModelProperty(value = "出租区县", required = true, example = "")
  56 + private Long areaId;
  57 +
  58 + @ApiModelProperty(value = "出租镇", required = true, example = "")
  59 + private Long streetId;
  60 +
  61 + @ApiModelProperty(value = "出租详情(text)", required = true, example = "")
  62 + private String detail;
  63 +
  64 + @ApiModelProperty(value = "项目联系人", required = true, example = "")
  65 + private String contact;
  66 +
  67 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  68 + private String contactPhone;
  69 +
  70 + @ApiModelProperty(value = "电子邮箱", required = true, example = "")
  71 + private String email;
  72 +
  73 + @ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
  74 + private Integer publicity;
  75 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/ser/PlatformParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/ser/PlatformParamDTO.java
@@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
  1 +package com.softwarebr.nunu.dto.ser;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import lombok.Data;
  5 +
  6 +/**
  7 + * @date 2020-02-24 13:22:47
  8 + * @author lilin
  9 + */
  10 +
  11 +@Data
  12 +public class PlatformParamDTO {
  13 +
  14 + @ApiModelProperty(value = "平台名称", required = true, example = "")
  15 + private String name;
  16 +
  17 + @ApiModelProperty(value = "平台logo", required = true, example = "")
  18 + private String logoUri;
  19 +
  20 + @ApiModelProperty(value = "平台封面图", required = true, example = "")
  21 + private String coverUri;
  22 +
  23 + @ApiModelProperty(value = "平台简介(text)", required = true, example = "")
  24 + private String description;
  25 +
  26 + @ApiModelProperty(value = "模板类型(1.模板一 2.模板二 3.模板三)", required = true, example = "")
  27 + private Integer template;
  28 +
  29 + @ApiModelProperty(value = "模块(json(模块名 模块内容))", required = true, example = "")
  30 + private String modularJson;
  31 +
  32 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/train/ActivityParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/train/ActivityParamDTO.java
@@ -0,0 +1,71 @@ @@ -0,0 +1,71 @@
  1 +package com.softwarebr.nunu.dto.train;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import javax.validation.constraints.NotEmpty;
  8 +import java.math.BigDecimal;
  9 +import java.time.LocalDateTime;
  10 +
  11 +/**
  12 + * @date 2020-02-26 11:02:46
  13 + * @author lilin
  14 + */
  15 +
  16 +@Data
  17 +public class ActivityParamDTO {
  18 +
  19 + @ApiModelProperty(value = "活动名称", required = true, example = "")
  20 + private String name;
  21 +
  22 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  23 + @ApiModelProperty(value = "报名开始时间", required = true, example = "")
  24 + private LocalDateTime signStartDate;
  25 +
  26 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  27 + @ApiModelProperty(value = "报名结束时间", required = true, example = "")
  28 + private LocalDateTime signEndDate;
  29 +
  30 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  31 + @ApiModelProperty(value = "活动开始时间", required = true, example = "")
  32 + private LocalDateTime startDate;
  33 +
  34 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  35 + @ApiModelProperty(value = "活动结束时间", required = true, example = "")
  36 + private LocalDateTime endDate;
  37 +
  38 + @ApiModelProperty(value = "活动价格(-1免费)", required = true, example = "")
  39 + private BigDecimal price;
  40 +
  41 + @ApiModelProperty(value = "省份编号", required = true, example = "")
  42 + private Long provinceId;
  43 +
  44 + @ApiModelProperty(value = "城市编号", required = true, example = "")
  45 + private Long cityId;
  46 +
  47 + @ApiModelProperty(value = "区县编号", required = true, example = "")
  48 + private Long areaId;
  49 +
  50 + @ApiModelProperty(value = "上线人数", required = true, example = "")
  51 + private Integer capacity;
  52 +
  53 + @ApiModelProperty(value = "活动类别 1.创新活动 2.培训活动", required = true, example = "")
  54 + private Integer category;
  55 +
  56 + @ApiModelProperty(value = "活动类型(创新->1.沙龙会2.论坛3.讲座4.项目路演5.创新创业大赛6.私董会7.分享会 培训->1.讲座2.培训班3.研修班)", required = true, example = "")
  57 + private Integer type;
  58 +
  59 + @ApiModelProperty(value = "活动封面图", required = true, example = "")
  60 + @NotEmpty(message = "请上传活动封面图")
  61 + private String coverUri;
  62 +
  63 + @ApiModelProperty(value = "活动简介", required = true, example = "")
  64 + private String description;
  65 +
  66 + @ApiModelProperty(value = "活动信息", required = true, example = "")
  67 + private String information;
  68 +
  69 + @ApiModelProperty(value = "活动详情", required = true, example = "")
  70 + private String detail;
  71 +}
boot-nunu/src/main/java/com/softwarebr/nunu/dto/user/MemberParamDTO.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/dto/user/MemberParamDTO.java
@@ -0,0 +1,37 @@ @@ -0,0 +1,37 @@
  1 +package com.softwarebr.nunu.dto.user;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +/**
  8 + * 用户
  9 + * @Author lilin
  10 + * @Date 2020-02-17 14:07:07
  11 + */
  12 +@Data
  13 +@ApiModel
  14 +public class MemberParamDTO {
  15 +
  16 + @ApiModelProperty(value = "手机号码", required = true, example = "15220276660")
  17 + private String phone;
  18 +
  19 + @ApiModelProperty(value = "密码", required = true, example = "123456")
  20 + private String password;
  21 +
  22 + @ApiModelProperty(value = "姓名", required = true, example = "彭于晏")
  23 + private String username;
  24 +
  25 + @ApiModelProperty(value = "企业名称", required = true, example = "贝如科技")
  26 + private String companyName;
  27 +
  28 + @ApiModelProperty(value = "身份(1用户 2企业)", required = true, example = "")
  29 + private Integer identityType;
  30 +
  31 + @ApiModelProperty(value = "第三方登录类型1.PC微信 2.h5微信", required = true, example = "1")
  32 + Integer type;
  33 +
  34 + @ApiModelProperty(value = "openId", required = true, example = "aDjshsKlIhsyXhRhsh")
  35 + String thirdPartyId;
  36 +
  37 +}
boot-nunu/src/main/java/com/softwarebr/nunu/entity/go/Label.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/go/Label.java
@@ -0,0 +1,48 @@ @@ -0,0 +1,48 @@
  1 +package com.softwarebr.nunu.entity.go;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * 标签
  14 + * @date 2020-02-19 14:03:47
  15 + * @author lilin
  16 + */
  17 +
  18 +@Entity
  19 +@Data
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +@Table(name="go_label")
  23 +@Builder
  24 +public class Label {
  25 +
  26 +
  27 + @Id
  28 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  29 + @ApiModelProperty(value = "id", required = true, example = "1")
  30 + private Long id;
  31 +
  32 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  33 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  34 + private LocalDateTime createDate;
  35 +
  36 + @ApiModelProperty(value = "父级标签id(一级标签设置为0)", required = true, example = "")
  37 + private Long parentId;
  38 +
  39 + @ApiModelProperty(value = "标签名称", required = true, example = "")
  40 + private String labelName;
  41 +
  42 + @ApiModelProperty(value = "排序(一级标签ui上不需要,设置为0)", required = true, example = "")
  43 + private Integer sort;
  44 +
  45 + @ApiModelProperty(value = "状态0.已删除 1.未删除", required = true, example = "")
  46 + private Integer status;
  47 +
  48 +}
0 \ No newline at end of file 49 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/go/Policy.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/go/Policy.java
@@ -0,0 +1,101 @@ @@ -0,0 +1,101 @@
  1 +package com.softwarebr.nunu.entity.go;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +
  10 +import javax.persistence.*;
  11 +import java.time.LocalDateTime;
  12 +
  13 +/**
  14 + * 政策
  15 + *
  16 + * @author lilin
  17 + * @date 2020-02-19 15:35:44
  18 + */
  19 +
  20 +@Entity
  21 +@Data
  22 +@NoArgsConstructor
  23 +@AllArgsConstructor
  24 +@Table(name = "go_policy")
  25 +@Builder
  26 +public class Policy {
  27 +
  28 + /**
  29 + * 仅显示
  30 + */
  31 + public final static Integer APPLY_STATUS_DISPLAY = 0;
  32 + /**
  33 + * 可申报
  34 + */
  35 + public final static Integer APPLY_STATUS_YES = 1;
  36 +
  37 + /**
  38 + * 来源类型1.平台
  39 + */
  40 + public final static Integer SOURCE_TYPE_ADMIN = 1;
  41 +
  42 + /**
  43 + * 来源类型2.爬虫
  44 + */
  45 + public final static Integer SOURCE_TYPE_REPTILE = 2;
  46 +
  47 +
  48 + @Id
  49 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  50 + @ApiModelProperty(value = "id", required = true, example = "1")
  51 + private Long id;
  52 +
  53 + @ApiModelProperty(value = "省份id", required = true, example = "1")
  54 + private Long provinceId;
  55 +
  56 + @ApiModelProperty(value = "城市id", required = true, example = "1")
  57 + private Long cityId;
  58 +
  59 + @ApiModelProperty(value = "区域id", required = true, example = "1")
  60 + private Long areaId;
  61 +
  62 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  63 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  64 + private LocalDateTime createDate;
  65 +
  66 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  67 + @ApiModelProperty(value = "发布时间", required = true, example = "2018-03-12 21:32:33")
  68 + private LocalDateTime publishDate;
  69 +
  70 + @ApiModelProperty(value = "来源", required = true, example = "")
  71 + @Column(length = Integer.MAX_VALUE)
  72 + private String source;
  73 +
  74 + @ApiModelProperty(value = "来源类型(1.平台 2.爬虫)", required = true, example = "")
  75 + private Integer sourceType;
  76 +
  77 + @ApiModelProperty(value = "政策名称", required = true, example = "")
  78 + private String title;
  79 +
  80 + @ApiModelProperty(value = "政策详情 ", required = true, example = "")
  81 + @Column(length = Integer.MAX_VALUE)
  82 + private String content;
  83 +
  84 + @ApiModelProperty(value = "是否推荐至首页(0否 1是)", required = true, example = "")
  85 + private Integer indexType;
  86 +
  87 + @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
  88 + private Integer status;
  89 +
  90 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  91 + private Integer verify;
  92 +
  93 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  94 + private String remark;
  95 +
  96 + @ApiModelProperty(value = "申报状态0.仅显示 1.可申报", required = true, example = "")
  97 + private Integer applyStatus;
  98 +
  99 + @ApiModelProperty(value = "删除标记0.已删除 1.未删除", required = true, example = "")
  100 + private Integer marker;
  101 +}
0 \ No newline at end of file 102 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/go/PolicyApply.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/go/PolicyApply.java
@@ -0,0 +1,78 @@ @@ -0,0 +1,78 @@
  1 +package com.softwarebr.nunu.entity.go;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * @date 2020-02-21 10:49:24
  14 + * @author lilin
  15 + */
  16 +
  17 +@Entity
  18 +@Data
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +@Table(name="go_policy_apply")
  22 +@Builder
  23 +public class PolicyApply {
  24 +
  25 + /**
  26 + * 1待受理
  27 + */
  28 + public final static Integer STATUS_WAIT_ACCEPTANCE = 1;
  29 +
  30 + /**
  31 + * 2受理中
  32 + */
  33 + public final static Integer STATUS_IN_ACCEPTANCE = 2;
  34 +
  35 + /**
  36 + * 3服务完成
  37 + */
  38 + public final static Integer STATUS_SERVICE_SUCCESS = 3;
  39 +
  40 + @Id
  41 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  42 + @ApiModelProperty(value = "id", required = true, example = "1")
  43 + private Long id;
  44 +
  45 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  46 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  47 + private LocalDateTime createDate;
  48 +
  49 + @ApiModelProperty(value = "政策id", required = true, example = "")
  50 + private Long policyId;
  51 +
  52 + @ApiModelProperty(value = "申报人", required = true, example = "")
  53 + private Long memberId;
  54 +
  55 + @ApiModelProperty(value = "政策需求详情(text) ", required = true, example = "")
  56 + @Column(length = Integer.MAX_VALUE)
  57 + private String content;
  58 +
  59 + @ApiModelProperty(value = "联系人", required = true, example = "")
  60 + private String contact;
  61 +
  62 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  63 + private String contactPhone;
  64 +
  65 + @ApiModelProperty(value = "电子邮箱", required = true, example = "")
  66 + private String email;
  67 +
  68 + @ApiModelProperty(value = "服务状态(1待受理 2受理中 3服务完成)", required = true, example = "")
  69 + private Integer status;
  70 +
  71 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  72 + @ApiModelProperty(value = "审核时间", required = true, example = "2018-03-12 21:32:33")
  73 + private LocalDateTime verifyDate;
  74 +
  75 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  76 + private String remark;
  77 +
  78 +}
0 \ No newline at end of file 79 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/go/PolicyLabel.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/go/PolicyLabel.java
@@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
  1 +package com.softwarebr.nunu.entity.go;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * @date 2020-02-19 16:28:24
  14 + * @author lilin
  15 + */
  16 +
  17 +@Entity
  18 +@Data
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +@Table(name="go_policy_label")
  22 +@Builder
  23 +public class PolicyLabel {
  24 +
  25 + @Id
  26 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  27 + @ApiModelProperty(value = "id", required = true, example = "1")
  28 + private Long id;
  29 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  30 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  31 + private LocalDateTime createDate;
  32 +
  33 + @ApiModelProperty(value = "政策id", required = true, example = "")
  34 + private Long policyId;
  35 +
  36 + @ApiModelProperty(value = "一级标签", required = true, example = "")
  37 + private Long parentId;
  38 +
  39 + @ApiModelProperty(value = "二级标签", required = true, example = "")
  40 + private Long childId;
  41 +}
0 \ No newline at end of file 42 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/hall/Invest.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/hall/Invest.java
@@ -0,0 +1,114 @@ @@ -0,0 +1,114 @@
  1 +package com.softwarebr.nunu.entity.hall;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * 创新项目
  14 + * @date 2020-02-25 12:03:51
  15 + * @author lilin
  16 + */
  17 +
  18 +@Entity
  19 +@Data
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +@Table(name="hall_invest")
  23 +@Builder
  24 +public class Invest {
  25 +
  26 + @Id
  27 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  28 + @ApiModelProperty(value = "id", required = true, example = "1")
  29 + private Long id;
  30 +
  31 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  32 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  33 + private LocalDateTime createDate;
  34 +
  35 + @ApiModelProperty(value = "发布者", required = true, example = "")
  36 + private Long publisher;
  37 +
  38 + @ApiModelProperty(value = "项目名称", required = true, example = "")
  39 + private String name;
  40 +
  41 + @ApiModelProperty(value = "项目阶段(1初创期 2成长期)", required = true, example = "")
  42 + private Integer state;
  43 +
  44 + @ApiModelProperty(value = "融资阶段(1种子轮 2天使轮 3A轮 4 B轮 5C轮 6C轮后)", required = true, example = "")
  45 + private Integer investState;
  46 +
  47 + @ApiModelProperty(value = "行业分类(1互联网 2新材料 3新能源 4环保技术 5先进制造 6高端装备 7新一代信息技术 8生物医药 9大健康 10电子商务 11其它)", required = true, example = "")
  48 + private Integer industry;
  49 +
  50 + @ApiModelProperty(value = "省份", required = true, example = "")
  51 + private Long provinceId;
  52 +
  53 + @ApiModelProperty(value = "城市", required = true, example = "")
  54 + private Long cityId;
  55 +
  56 + @ApiModelProperty(value = "区县", required = true, example = "")
  57 + private Long areaId;
  58 +
  59 + @ApiModelProperty(value = "项目封面图", required = true, example = "")
  60 + @Column(length = Integer.MAX_VALUE)
  61 + private String coverUri;
  62 +
  63 + @ApiModelProperty(value = "项目图片(多图逗号隔开)", required = true, example = "")
  64 + @Column(length = Integer.MAX_VALUE)
  65 + private String detailImagesUri;
  66 +
  67 + @ApiModelProperty(value = "项目视频", required = true, example = "")
  68 + @Column(length = Integer.MAX_VALUE)
  69 + private String mediaUri;
  70 +
  71 + @ApiModelProperty(value = "附件", required = true, example = "")
  72 + @Column(length = Integer.MAX_VALUE)
  73 + private String attachment;
  74 +
  75 + @ApiModelProperty(value = "项目简介(text)", required = true, example = "")
  76 + @Column(length = Integer.MAX_VALUE)
  77 + private String description;
  78 +
  79 + @ApiModelProperty(value = "项目亮点(text)", required = true, example = "")
  80 + @Column(length = Integer.MAX_VALUE)
  81 + private String lightPoint;
  82 +
  83 + @ApiModelProperty(value = "团队人数", required = true, example = "")
  84 + private Integer teamNumber;
  85 +
  86 + @ApiModelProperty(value = "项目联系人", required = true, example = "")
  87 + private String contact;
  88 +
  89 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  90 + private String contactPhone;
  91 +
  92 + @ApiModelProperty(value = "电子邮箱", required = true, example = "")
  93 + private String email;
  94 +
  95 + @ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
  96 + private Integer publicity;
  97 +
  98 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  99 + private Integer verify;
  100 +
  101 + @ApiModelProperty(value = "审核时间", required = true, example = "2018-03-12 21:32:33")
  102 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  103 + private LocalDateTime verifyDate;
  104 +
  105 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  106 + private String verifyRemark;
  107 +
  108 + @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
  109 + private Integer upperStatus;
  110 +
  111 + @ApiModelProperty(value = "是否推荐至首页(0否 1是)", required = true, example = "")
  112 + private Integer indexType;
  113 +
  114 +}
0 \ No newline at end of file 115 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/hall/InvestApply.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/hall/InvestApply.java
@@ -0,0 +1,52 @@ @@ -0,0 +1,52 @@
  1 +package com.softwarebr.nunu.entity.hall;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * @date 2020-02-25 15:27:45
  14 + * @author lilin
  15 + */
  16 +
  17 +@Entity
  18 +@Data
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +@Table(name="hall_invest_apply")
  22 +@Builder
  23 +public class InvestApply {
  24 +
  25 + @Id
  26 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  27 + @ApiModelProperty(value = "id", required = true, example = "1")
  28 + private Long id;
  29 +
  30 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  31 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  32 + private LocalDateTime createDate;
  33 +
  34 + @ApiModelProperty(value = "申请原因", required = true, example = "")
  35 + private String reason;
  36 +
  37 + @ApiModelProperty(value = "项目id", required = true, example = "")
  38 + private Long investId;
  39 +
  40 + @ApiModelProperty(value = "申请人", required = true, example = "")
  41 + private Long proposer;
  42 +
  43 + @ApiModelProperty(value = "发布者", required = true, example = "")
  44 + private Long publisher;
  45 +
  46 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  47 + private Integer verify;
  48 +
  49 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  50 + private String verifyRemark;
  51 +
  52 +}
0 \ No newline at end of file 53 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/hall/InvestOrg.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/hall/InvestOrg.java
@@ -0,0 +1,75 @@ @@ -0,0 +1,75 @@
  1 +package com.softwarebr.nunu.entity.hall;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * 投资机构
  14 + * @date 2020-02-25 15:59:36
  15 + * @author lilin
  16 + */
  17 +@Entity
  18 +@Data
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +@Table(name="hall_invest_org")
  22 +@Builder
  23 +public class InvestOrg {
  24 +
  25 + @Id
  26 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  27 + @ApiModelProperty(value = "id", required = true, example = "1")
  28 + private Long id;
  29 +
  30 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  31 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  32 + private LocalDateTime createDate;
  33 +
  34 + @ApiModelProperty(value = "用户id", required = true, example = "")
  35 + private Long memberId;
  36 +
  37 + @ApiModelProperty(value = "公司名称", required = true, example = "")
  38 + private String companyName;
  39 +
  40 + @ApiModelProperty(value = "公司类型(1投资机构公司 2投资基金公司)", required = true, example = "")
  41 + private Integer companyType;
  42 +
  43 + @ApiModelProperty(value = "公司封面图", required = true, example = "")
  44 + @Column(length = Integer.MAX_VALUE)
  45 + private String coverUri;
  46 +
  47 + @ApiModelProperty(value = "公司简介", required = true, example = "")
  48 + @Column(length = Integer.MAX_VALUE)
  49 + private String description;
  50 +
  51 + @ApiModelProperty(value = "公司背景(text)", required = true, example = "")
  52 + @Column(length = Integer.MAX_VALUE)
  53 + private String backGround;
  54 +
  55 + @ApiModelProperty(value = "已投项目(text,json字符串)", required = true, example = "")
  56 + @Column(length = Integer.MAX_VALUE)
  57 + private String investInfos;
  58 +
  59 + @ApiModelProperty(value = "联系人", required = true, example = "")
  60 + private String contact;
  61 +
  62 + @ApiModelProperty(value = "联系方式", required = true, example = "")
  63 + private String contactPhone;
  64 +
  65 + @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
  66 + private Integer status;
  67 +
  68 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  69 + private Integer verify;
  70 +
  71 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  72 + private String verifyRemark;
  73 +
  74 +
  75 +}
0 \ No newline at end of file 76 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/hall/Team.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/hall/Team.java
@@ -0,0 +1,52 @@ @@ -0,0 +1,52 @@
  1 +package com.softwarebr.nunu.entity.hall;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * @date 2020-02-25 12:11:26
  14 + * @author lilin
  15 + */
  16 +
  17 +@Entity
  18 +@Data
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +@Table(name="hall_team")
  22 +@Builder
  23 +public class Team {
  24 +
  25 + @Id
  26 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  27 + @ApiModelProperty(value = "id", required = true, example = "1")
  28 + private Long id;
  29 +
  30 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  31 + @Column(updatable = false)
  32 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  33 + private LocalDateTime createDate;
  34 +
  35 + @ApiModelProperty(value = "项目id", required = true, example = "")
  36 + private Long investId;
  37 +
  38 + @ApiModelProperty(value = "个人照片", required = true, example = "")
  39 + @Column(length = Integer.MAX_VALUE)
  40 + private String pictureUri;
  41 +
  42 + @ApiModelProperty(value = "个人姓名", required = true, example = "")
  43 + private String name;
  44 +
  45 + @ApiModelProperty(value = "所属职责", required = true, example = "")
  46 + private String duty;
  47 +
  48 + @ApiModelProperty(value = "个人简介", required = true, example = "")
  49 + @Column(length = Integer.MAX_VALUE)
  50 + private String synopsis;
  51 +
  52 +}
0 \ No newline at end of file 53 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/oper/Advertisement.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/oper/Advertisement.java
@@ -0,0 +1,68 @@ @@ -0,0 +1,68 @@
  1 +package com.softwarebr.nunu.entity.oper;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +
  10 +import javax.persistence.*;
  11 +import java.time.LocalDateTime;
  12 +
  13 +/**
  14 + * 运营-广告
  15 + * @date 2020-02-18 10:58:32
  16 + * @author lilin
  17 + */
  18 +
  19 +@Entity
  20 +@Data
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
  23 +@Table(name="oper_advertisement")
  24 +@Builder
  25 +public class Advertisement {
  26 +
  27 + @Id
  28 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  29 + @ApiModelProperty(value = "id", required = true, example = "1")
  30 + private Long id;
  31 +
  32 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  33 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  34 + private LocalDateTime createDate;
  35 +
  36 + @ApiModelProperty(value = "广告名称", required = true, example = "")
  37 + private String name;
  38 +
  39 + @ApiModelProperty(value = "广告图片", required = true, example = "")
  40 + @Column(length = Integer.MAX_VALUE)
  41 + private String advertUri;
  42 +
  43 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  44 + @ApiModelProperty(value = "开始时间", required = true, example = "")
  45 + private LocalDateTime startDate;
  46 +
  47 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  48 + @ApiModelProperty(value = "结束时间", required = true, example = "")
  49 + private LocalDateTime endDate;
  50 +
  51 + @ApiModelProperty(value = "排序值", required = true, example = "")
  52 + private Integer sortValue;
  53 +
  54 + @ApiModelProperty(value = "链接类型1.内链 2.外链", required = true, example = "")
  55 + private Integer linkType;
  56 +
  57 + @ApiModelProperty(value = "跳转类型 1.政策 2.创新资源交易区 3.服务平台 4.创新项目路演厅 5.培训学院", required = true, example = "")
  58 + private Integer type;
  59 +
  60 + @ApiModelProperty(value = "跳转地址", required = true, example = "")
  61 + private String linkUri;
  62 +
  63 + @ApiModelProperty(value = "上下架状态 0.下架 1.上架", required = true, example = "")
  64 + private Integer status;
  65 +
  66 + @ApiModelProperty(value = "广告位置1.首页 2.创新项目路演厅", required = true, example = "")
  67 + private Integer position;
  68 +}
0 \ No newline at end of file 69 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/oper/Area.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/oper/Area.java
@@ -0,0 +1,36 @@ @@ -0,0 +1,36 @@
  1 +package com.softwarebr.nunu.entity.oper;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Builder;
  6 +import lombok.Data;
  7 +import lombok.NoArgsConstructor;
  8 +
  9 +import javax.persistence.*;
  10 +
  11 +/**
  12 + * @date: 2019-10-21 17:33:17
  13 + * @author: lilin
  14 + * @description: 省市区数据
  15 + */
  16 +
  17 +@Entity
  18 +@Data
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +@Table(name="app_area")
  22 +@Builder
  23 +public class Area {
  24 +
  25 + @Id
  26 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  27 + @ApiModelProperty(value = "id 区域编号", required = true, example = "1")
  28 + private Long id;
  29 +
  30 + @ApiModelProperty(value = "对应的父级区域编号", required = true, example = "0")
  31 + private Long parentId;
  32 +
  33 + @ApiModelProperty(value = "区域名称", required = true, example = "广东省")
  34 + private String cityName;
  35 +
  36 +}
0 \ No newline at end of file 37 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/pay/PayInfo.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/pay/PayInfo.java
@@ -0,0 +1,66 @@ @@ -0,0 +1,66 @@
  1 +package com.softwarebr.nunu.entity.pay;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * @Author ljr
  14 + * @Date 2020/01/08 15:41:59
  15 + */
  16 +
  17 +@Entity
  18 +@Data
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +@Table(name="pay_pay_info")
  22 +@Builder
  23 +public class PayInfo {
  24 +
  25 + /**
  26 + * 支付押金
  27 + */
  28 + public static final int CONSTANT_PAY_INFO_TYPE_DEPOSIT = 1;
  29 + /**
  30 + * 支付订单
  31 + */
  32 + public static final int CONSTANT_PAY_INFO_TYPE_BUY_ORDER = 2;
  33 + /**
  34 + * 待前端支付状态
  35 + */
  36 + public static final int CONSTANT_PAY_INFO_STATUS_WAIT = 1;
  37 + /**
  38 + * 已回调状态
  39 + */
  40 + public static final int CONSTANT_PAY_INFO_STATUS_CALLBACK = 2;
  41 +
  42 + @Id
  43 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  44 + @ApiModelProperty(value = "id", required = true, example = "1")
  45 + private Long id;
  46 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  47 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  48 + private LocalDateTime createDate;
  49 + @ApiModelProperty(value = "支付订单号", required = true, example = "")
  50 + private String payOrderNo;
  51 + @ApiModelProperty(value = "付款用户", required = true, example = "")
  52 + private Long memberId;
  53 + @ApiModelProperty(value = "总金额", required = true, example = "")
  54 + private Long totalAmount;
  55 + @ApiModelProperty(value = "支付方式", required = true, example = "")
  56 + private Integer payMethod;
  57 + @ApiModelProperty(value = "支付信息", required = true, example = "")
  58 + private String message;
  59 + @ApiModelProperty(value = "状态(1待前端支付 2已回调)", required = true, example = "")
  60 + private Integer status;
  61 + @ApiModelProperty(value = "支付类型(1押金auctionLogId 2商品订单buyOrderId)", required = true, example = "")
  62 + private Integer type;
  63 + @ApiModelProperty(value = "目标对象", required = true, example = "")
  64 + private Long targetId;
  65 +
  66 +}
0 \ No newline at end of file 67 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/pay/PayNotifyLog.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/pay/PayNotifyLog.java
@@ -0,0 +1,55 @@ @@ -0,0 +1,55 @@
  1 +package com.softwarebr.nunu.entity.pay;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import com.brframework.commoncms.annatotion.column.RichTextColumn;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import lombok.AllArgsConstructor;
  8 +import lombok.Builder;
  9 +import lombok.Data;
  10 +import lombok.NoArgsConstructor;
  11 +
  12 +import javax.persistence.*;
  13 +import java.time.LocalDateTime;
  14 +
  15 +/**
  16 + * 支付平台通知记录
  17 + * @author xu
  18 + * @date 2019/11/1 17:38
  19 + */
  20 +@Entity
  21 +@Data
  22 +@NoArgsConstructor
  23 +@AllArgsConstructor
  24 +@Table(name="shop_pay_notify_log")
  25 +@ApiModel
  26 +@Builder
  27 +public class PayNotifyLog {
  28 +
  29 + @Id
  30 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  31 + @ApiModelProperty(value = "id", required = true, example = "1")
  32 + private Long id;
  33 +
  34 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  35 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  36 + private LocalDateTime createDate;
  37 +
  38 + @ApiModelProperty(value = "交易单号", required = true, example = "11441578154756")
  39 + private String outTradeNo;
  40 +
  41 + @ApiModelProperty(value = "回调平台", required = true, example = "11441578154756")
  42 + private String platform;
  43 +
  44 + @ApiModelProperty(value = "通知类型", required = true, example = "11441578154756")
  45 + private String notifyType;
  46 +
  47 + @ApiModelProperty(value = "回调结果", required = true, example = "11441578154756")
  48 + @Column(length = Integer.MAX_VALUE)
  49 + @RichTextColumn
  50 + private String notifyResult;
  51 +
  52 + @ApiModelProperty(value = "通知内容", required = true, example = "11441578154756")
  53 + @Column(length = Integer.MAX_VALUE)
  54 + private String content;
  55 +}
boot-nunu/src/main/java/com/softwarebr/nunu/entity/res/Invite.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/res/Invite.java
@@ -0,0 +1,106 @@ @@ -0,0 +1,106 @@
  1 +package com.softwarebr.nunu.entity.res;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * 招聘资源
  14 + * @date 2020-02-21 11:48:30
  15 + * @author lilin
  16 + */
  17 +
  18 +@Entity
  19 +@Data
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +@Table(name="res_invite")
  23 +@Builder
  24 +public class Invite {
  25 +
  26 + @Id
  27 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  28 + @ApiModelProperty(value = "id", required = true, example = "1")
  29 + private Long id;
  30 +
  31 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  32 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  33 + private LocalDateTime createDate;
  34 +
  35 + @ApiModelProperty(value = "发布者", required = true, example = "")
  36 + private Long publisher;
  37 +
  38 + @ApiModelProperty(value = "招聘会名称", required = true, example = "")
  39 + private String inviteName;
  40 +
  41 + @ApiModelProperty(value = "公司名称", required = true, example = "")
  42 + private String companyName;
  43 +
  44 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  45 + @ApiModelProperty(value = "招聘开始时间", required = true, example = "")
  46 + private LocalDateTime startDate;
  47 +
  48 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  49 + @ApiModelProperty(value = "招聘结束时间", required = true, example = "")
  50 + private LocalDateTime endDate;
  51 +
  52 + @ApiModelProperty(value = "招聘封面图", required = true, example = "")
  53 + @Column(length = Integer.MAX_VALUE)
  54 + private String coverUri;
  55 +
  56 + @ApiModelProperty(value = "招聘省份", required = true, example = "")
  57 + private Long provinceId;
  58 +
  59 + @ApiModelProperty(value = "招聘城市", required = true, example = "")
  60 + private Long cityId;
  61 +
  62 + @ApiModelProperty(value = "招聘区县", required = true, example = "")
  63 + private Long areaId;
  64 +
  65 + @ApiModelProperty(value = "招聘岗位(json)", required = true, example = "")
  66 + @Column(length = Integer.MAX_VALUE)
  67 + private String job;
  68 +
  69 + @ApiModelProperty(value = "招聘详情(text)", required = true, example = "")
  70 + @Column(length = Integer.MAX_VALUE)
  71 + private String detail;
  72 +
  73 + @ApiModelProperty(value = "项目联系人", required = true, example = "")
  74 + private String contact;
  75 +
  76 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  77 + private String contactPhone;
  78 +
  79 + @ApiModelProperty(value = "电子邮箱", required = true, example = "")
  80 + private String email;
  81 +
  82 + @ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
  83 + private Integer publicity;
  84 +
  85 + @ApiModelProperty(value = "是否推荐至首页(0否 1是)", required = true, example = "")
  86 + private Integer indexType;
  87 +
  88 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  89 + private Integer verify;
  90 +
  91 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  92 + private String verifyRemark;
  93 +
  94 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  95 + @ApiModelProperty(value = "审核时间", required = true, example = "2018-03-12 21:32:33")
  96 + private LocalDateTime verifyDate;
  97 +
  98 + @ApiModelProperty(value = "删除标记0.已删除 1.未删除", required = true, example = "")
  99 + private Integer marker;
  100 +
  101 + @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
  102 + private Integer upperStatus;
  103 +
  104 +
  105 +
  106 +}
0 \ No newline at end of file 107 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/res/Project.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/res/Project.java
@@ -0,0 +1,112 @@ @@ -0,0 +1,112 @@
  1 +package com.softwarebr.nunu.entity.res;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.math.BigDecimal;
  11 +import java.time.LocalDateTime;
  12 +
  13 +/**
  14 + * 项目需求资源
  15 + * @date 2020-02-21 11:47:29
  16 + * @author lilin
  17 + */
  18 +
  19 +@Entity
  20 +@Data
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
  23 +@Table(name="res_project")
  24 +@Builder
  25 +public class Project {
  26 +
  27 + /** 项目类型(1技术开发)*/
  28 + public final static Integer TYPE_TECHNOLOGICAL_DEVELOPMENT = 1;
  29 +
  30 + /** 项目类型(2知识产权许可)*/
  31 + public final static Integer TYPE_INTELLECTUAL_PROPERTY_LICENSING = 2;
  32 +
  33 + /** 项目类型(3成果转让)*/
  34 + public final static Integer TYPE_ACHIEVEMENT_TRANSFER = 3;
  35 +
  36 + /** 项目类型(4技术咨询)*/
  37 + public final static Integer TYPE_TECHNICAL_CONSULTATION = 4;
  38 +
  39 + /** 项目类型(5成果转移合作)*/
  40 + public final static Integer TYPE_RESULTS_TRANSFER_COOPERATION = 5;
  41 +
  42 + @Id
  43 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  44 + @ApiModelProperty(value = "id", required = true, example = "1")
  45 + private Long id;
  46 +
  47 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  48 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  49 + private LocalDateTime createDate;
  50 +
  51 + @ApiModelProperty(value = "项目名称", required = true, example = "")
  52 + private String projectName;
  53 +
  54 + @ApiModelProperty(value = "项目编号", required = true, example = "")
  55 + private String projectNo;
  56 +
  57 + @ApiModelProperty(value = "发布者", required = true, example = "")
  58 + private Long publisher;
  59 +
  60 + @ApiModelProperty(value = "项目状态(1征集中 2已对接 3已终止)", required = true, example = "")
  61 + private Integer status;
  62 +
  63 + @ApiModelProperty(value = "项目类型(1技术开发 2知识产权许可 3成果转让 4技术咨询 5成果转移合作)", required = true, example = "")
  64 + private Integer type;
  65 +
  66 + @ApiModelProperty(value = "项目价格(-1 面议 单位分)", required = true, example = "")
  67 + private BigDecimal price;
  68 +
  69 + @ApiModelProperty(value = "项目封面图", required = true, example = "")
  70 + @Column(length = Integer.MAX_VALUE)
  71 + private String coverUri;
  72 +
  73 + @ApiModelProperty(value = "项目简介", required = true, example = "")
  74 + @Column(length = Integer.MAX_VALUE)
  75 + private String description;
  76 +
  77 + @ApiModelProperty(value = "交易流程(text)", required = true, example = "")
  78 + @Column(length = Integer.MAX_VALUE)
  79 + private String tradeProcess;
  80 +
  81 + @ApiModelProperty(value = "项目联系人", required = true, example = "")
  82 + private String contact;
  83 +
  84 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  85 + private String contactPhone;
  86 +
  87 + @ApiModelProperty(value = "电子邮箱", required = true, example = "")
  88 + private String email;
  89 +
  90 + @ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
  91 + private Integer publicity;
  92 +
  93 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  94 + private Integer verify;
  95 +
  96 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  97 + @ApiModelProperty(value = "审核时间", required = true, example = "2018-03-12 21:32:33")
  98 + private LocalDateTime verifyDate;
  99 +
  100 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  101 + private String verifyRemark;
  102 +
  103 + @ApiModelProperty(value = "删除标记0.已删除 1.未删除", required = true, example = "")
  104 + private Integer marker;
  105 +
  106 + @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
  107 + private Integer upperStatus;
  108 +
  109 + @ApiModelProperty(value = "是否推荐至首页(0否 1是)", required = true, example = "")
  110 + private Integer indexType;
  111 +
  112 +}
0 \ No newline at end of file 113 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/res/Property.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/res/Property.java
@@ -0,0 +1,116 @@ @@ -0,0 +1,116 @@
  1 +package com.softwarebr.nunu.entity.res;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.math.BigDecimal;
  11 +import java.time.LocalDateTime;
  12 +
  13 +/**
  14 + * 载体资源
  15 + * @date 2020-02-21 11:49:00
  16 + * @author lilin
  17 + */
  18 +
  19 +@Entity
  20 +@Data
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
  23 +@Table(name="res_property")
  24 +@Builder
  25 +public class Property {
  26 +
  27 + @Id
  28 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  29 + @ApiModelProperty(value = "id", required = true, example = "1")
  30 + private Long id;
  31 +
  32 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  33 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  34 + private LocalDateTime createDate;
  35 +
  36 + @ApiModelProperty(value = "发布者", required = true, example = "")
  37 + private Long publisher;
  38 +
  39 + @ApiModelProperty(value = "载体名称", required = true, example = "")
  40 + private String name;
  41 +
  42 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  43 + @ApiModelProperty(value = "出租开始时间", required = true, example = "")
  44 + private LocalDateTime startDate;
  45 +
  46 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  47 + @ApiModelProperty(value = "出租结束时间", required = true, example = "")
  48 + private LocalDateTime endDate;
  49 +
  50 + @ApiModelProperty(value = "项目价格(-1免费)", required = true, example = "")
  51 + private BigDecimal price;
  52 +
  53 + @ApiModelProperty(value = "最小容量", required = true, example = "")
  54 + private Integer minCapacity;
  55 +
  56 + @ApiModelProperty(value = "最大容量", required = true, example = "")
  57 + private Integer maxCapacity;
  58 +
  59 + @ApiModelProperty(value = "出售类型(1出租 2出售)", required = true, example = "")
  60 + private Integer type;
  61 +
  62 + @ApiModelProperty(value = "出售状态(1未出租 2已出租)", required = true, example = "")
  63 + private Integer status;
  64 +
  65 + @ApiModelProperty(value = "出租封面图", required = true, example = "")
  66 + @Column(length = Integer.MAX_VALUE)
  67 + private String coverUri;
  68 +
  69 + @ApiModelProperty(value = "出租省份", required = true, example = "")
  70 + private Long provinceId;
  71 +
  72 + @ApiModelProperty(value = "出租城市", required = true, example = "")
  73 + private Long cityId;
  74 +
  75 + @ApiModelProperty(value = "出租区县", required = true, example = "")
  76 + private Long areaId;
  77 +
  78 + @ApiModelProperty(value = "出租乡镇街道办", required = true, example = "")
  79 + private Long streetId;
  80 +
  81 + @ApiModelProperty(value = "出租详情(text)", required = true, example = "")
  82 + @Column(length = Integer.MAX_VALUE)
  83 + private String detail;
  84 +
  85 + @ApiModelProperty(value = "项目联系人", required = true, example = "")
  86 + private String contact;
  87 +
  88 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  89 + private String contactPhone;
  90 +
  91 + @ApiModelProperty(value = "电子邮箱", required = true, example = "")
  92 + private String email;
  93 +
  94 + @ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
  95 + private Integer publicity;
  96 +
  97 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  98 + private Integer verify;
  99 +
  100 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  101 + private String verifyRemark;
  102 +
  103 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  104 + @ApiModelProperty(value = "审核时间", required = true, example = "2018-03-12 21:32:33")
  105 + private LocalDateTime verifyDate;
  106 +
  107 + @ApiModelProperty(value = "删除标记0.已删除 1.未删除", required = true, example = "")
  108 + private Integer marker;
  109 +
  110 + @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
  111 + private Integer upperStatus;
  112 +
  113 + @ApiModelProperty(value = "是否推荐至首页(0否 1是)", required = true, example = "")
  114 + private Integer indexType;
  115 +
  116 +}
0 \ No newline at end of file 117 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/res/PropertyApply.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/res/PropertyApply.java
@@ -0,0 +1,71 @@ @@ -0,0 +1,71 @@
  1 +package com.softwarebr.nunu.entity.res;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * 资源申请
  14 + * @date 2020-02-24 12:19:06
  15 + * @author lilin
  16 + */
  17 +
  18 +@Entity
  19 +@Data
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +@Table(name="res_property_apply")
  23 +@Builder
  24 +public class PropertyApply {
  25 +
  26 + /**
  27 + * 资源类型(1.项目资源)
  28 + */
  29 + public final static int RESOURCE_TYPE_PROJECT = 1;
  30 +
  31 + /**
  32 + * 资源类型(2.招聘资源)
  33 + */
  34 + public final static int RESOURCE_TYPE_INVITE = 2;
  35 +
  36 + /**
  37 + * 资源类型(3.载体资源)
  38 + */
  39 + public final static int RESOURCE_TYPE_PROPERTY = 3;
  40 +
  41 + @Id
  42 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  43 + @ApiModelProperty(value = "id", required = true, example = "1")
  44 + private Long id;
  45 +
  46 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  47 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  48 + private LocalDateTime createDate;
  49 +
  50 + @ApiModelProperty(value = "申请原因", required = true, example = "")
  51 + private String reason;
  52 +
  53 + @ApiModelProperty(value = "资源类型(1.项目资源 2.招聘资源 3.载体资源 )", required = true, example = "")
  54 + private Integer resourceType;
  55 +
  56 + @ApiModelProperty(value = "对象id", required = true, example = "")
  57 + private Long targetId;
  58 +
  59 + @ApiModelProperty(value = "申请人", required = true, example = "")
  60 + private Long proposer;
  61 +
  62 + @ApiModelProperty(value = "发布者", required = true, example = "")
  63 + private Long publisher;
  64 +
  65 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  66 + private Integer verify;
  67 +
  68 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  69 + private String verifyRemark;
  70 +
  71 +}
0 \ No newline at end of file 72 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/ser/Platform.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/ser/Platform.java
@@ -0,0 +1,72 @@ @@ -0,0 +1,72 @@
  1 +package com.softwarebr.nunu.entity.ser;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * 服务平台
  14 + * @date 2020-02-24 13:22:47
  15 + * @author lilin
  16 + */
  17 +
  18 +@Entity
  19 +@Data
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +@Table(name="ser_platform")
  23 +@Builder
  24 +public class Platform {
  25 +
  26 + @Id
  27 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  28 + @ApiModelProperty(value = "id", required = true, example = "1")
  29 + private Long id;
  30 +
  31 + @ApiModelProperty(value = "发布者", required = true, example = "")
  32 + private Long publisher;
  33 +
  34 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  35 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  36 + private LocalDateTime createDate;
  37 +
  38 + @ApiModelProperty(value = "平台名称", required = true, example = "")
  39 + private String name;
  40 +
  41 + @ApiModelProperty(value = "平台logo", required = true, example = "")
  42 + @Column(length = Integer.MAX_VALUE)
  43 + private String logoUri;
  44 +
  45 + @ApiModelProperty(value = "平台封面图", required = true, example = "")
  46 + @Column(length = Integer.MAX_VALUE)
  47 + private String coverUri;
  48 +
  49 + @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
  50 + private Integer status;
  51 +
  52 + @ApiModelProperty(value = "平台简介(text)", required = true, example = "")
  53 + @Column(length = Integer.MAX_VALUE)
  54 + private String description;
  55 +
  56 + @ApiModelProperty(value = "模板类型(1.模板一 2.模板二 3.模板三)", required = true, example = "")
  57 + private Integer template;
  58 +
  59 + @ApiModelProperty(value = "模块(json(模块名 模块内容))", required = true, example = "")
  60 + @Column(length = Integer.MAX_VALUE)
  61 + private String modular;
  62 +
  63 + @ApiModelProperty(value = "是否推荐至首页(0否 1是)", required = true, example = "")
  64 + private Integer indexType;
  65 +
  66 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  67 + private Integer verify;
  68 +
  69 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  70 + private String verifyRemark;
  71 +
  72 +}
0 \ No newline at end of file 73 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/train/Activity.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/train/Activity.java
@@ -0,0 +1,139 @@ @@ -0,0 +1,139 @@
  1 +package com.softwarebr.nunu.entity.train;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.math.BigDecimal;
  11 +import java.time.LocalDateTime;
  12 +
  13 +/**
  14 + * 创新培训活动
  15 + * @date 2020-02-26 11:02:46
  16 + * @author lilin
  17 + */
  18 +
  19 +@Entity
  20 +@Data
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
  23 +@Table(name="train_activity")
  24 +@Builder
  25 +public class Activity {
  26 +
  27 + /**
  28 + * 1未总结
  29 + */
  30 + public final static Integer SUMMARY_STATUS_NO = 1;
  31 + /**
  32 + * 2已总结
  33 + */
  34 + public final static Integer SUMMARY_STATUS_YES = 2;
  35 +
  36 + /**
  37 + * 1.创新活动
  38 + */
  39 + public final static Integer CATEGORY_INNOVATE = 1;
  40 + /**
  41 + * 2.培训活动
  42 + */
  43 + public final static Integer CATEGORY_TRAIN = 2;
  44 +
  45 + @Id
  46 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  47 + @ApiModelProperty(value = "id", required = true, example = "1")
  48 + private Long id;
  49 +
  50 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  51 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  52 + private LocalDateTime createDate;
  53 +
  54 + @ApiModelProperty(value = "发布者", required = true, example = "1")
  55 + private Long publisher;
  56 +
  57 + @ApiModelProperty(value = "活动名称", required = true, example = "")
  58 + private String name;
  59 +
  60 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  61 + @ApiModelProperty(value = "报名开始时间", required = true, example = "")
  62 + private LocalDateTime signStartDate;
  63 +
  64 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  65 + @ApiModelProperty(value = "报名结束时间", required = true, example = "")
  66 + private LocalDateTime signEndDate;
  67 +
  68 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  69 + @ApiModelProperty(value = "活动开始时间", required = true, example = "")
  70 + private LocalDateTime startDate;
  71 +
  72 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  73 + @ApiModelProperty(value = "活动结束时间", required = true, example = "")
  74 + private LocalDateTime endDate;
  75 +
  76 + @ApiModelProperty(value = "活动价格(-1免费)", required = true, example = "")
  77 + private BigDecimal price;
  78 +
  79 + @ApiModelProperty(value = "省份编号", required = true, example = "")
  80 + private Long provinceId;
  81 +
  82 + @ApiModelProperty(value = "城市编号", required = true, example = "")
  83 + private Long cityId;
  84 +
  85 + @ApiModelProperty(value = "区县编号", required = true, example = "")
  86 + private Long areaId;
  87 +
  88 + @ApiModelProperty(value = "上线人数", required = true, example = "")
  89 + private Integer capacity;
  90 +
  91 + @ApiModelProperty(value = "已报名人数", required = true, example = "")
  92 + private Integer enrolment;
  93 +
  94 + @ApiModelProperty(value = "活动类别 1.创新活动 2.培训活动", required = true, example = "")
  95 + private Integer category;
  96 +
  97 + @ApiModelProperty(value = "活动类型(创新->1.沙龙会2.论坛3.讲座4.项目路演5.创新创业大赛6.私董会7.分享会 培训->1.讲座2.培训班3.研修班)", required = true, example = "")
  98 + private Integer type;
  99 +
  100 + @ApiModelProperty(value = "封面图", required = true, example = "")
  101 + @Column(length = Integer.MAX_VALUE)
  102 + private String coverUri;
  103 +
  104 + @ApiModelProperty(value = "活动简介", required = true, example = "")
  105 + @Column(length = Integer.MAX_VALUE)
  106 + private String description;
  107 +
  108 + @ApiModelProperty(value = "活动信息(text)", required = true, example = "")
  109 + @Column(length = Integer.MAX_VALUE)
  110 + private String information;
  111 +
  112 + @ApiModelProperty(value = "活动详情(text)", required = true, example = "")
  113 + @Column(length = Integer.MAX_VALUE)
  114 + private String detail;
  115 +
  116 + @ApiModelProperty(value = "是否推荐至首页(0否 1是)", required = true, example = "")
  117 + private Integer indexType;
  118 +
  119 + @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
  120 + private Integer status;
  121 +
  122 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  123 + private Integer verify;
  124 +
  125 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  126 + @ApiModelProperty(value = "审核时间", required = true, example = "")
  127 + private LocalDateTime verifyDate;
  128 +
  129 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  130 + private String verifyRemark;
  131 +
  132 + @ApiModelProperty(value = "活动总结状态(1未总结 2已总结 )", required = true, example = "")
  133 + private Integer summaryStatus;
  134 +
  135 + @ApiModelProperty(value = "活动总结(text)", required = true, example = "")
  136 + @Column(length = Integer.MAX_VALUE)
  137 + private String summary;
  138 +
  139 +}
0 \ No newline at end of file 140 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/train/ActivityLog.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/train/ActivityLog.java
@@ -0,0 +1,73 @@ @@ -0,0 +1,73 @@
  1 +package com.softwarebr.nunu.entity.train;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * 活动报名记录
  14 + * @date 2020/03/11 15:30:46
  15 + * @author lilin
  16 + */
  17 +@Entity
  18 +@Data
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +@Table(name="train_activity_log")
  22 +@Builder
  23 +public class ActivityLog {
  24 +
  25 + /**
  26 + * 失效
  27 + */
  28 + public final static Integer FAILURE_STATUS_NO= 0;
  29 + /**
  30 + * 有效
  31 + */
  32 + public final static Integer FAILURE_STATUS_YES = 1;
  33 +
  34 + @Id
  35 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  36 + @ApiModelProperty(value = "id", required = true, example = "1")
  37 + private Long id;
  38 +
  39 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  40 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  41 + private LocalDateTime createDate;
  42 +
  43 + @ApiModelProperty(value = "活动id", required = true, example = "")
  44 + private Long activityId;
  45 +
  46 + @ApiModelProperty(value = "用户id", required = true, example = "")
  47 + private Long memberId;
  48 +
  49 + @ApiModelProperty(value = "姓名", required = true, example = "")
  50 + private String name;
  51 +
  52 + @ApiModelProperty(value = "联系方式", required = true, example = "")
  53 + private String contact;
  54 +
  55 + @ApiModelProperty(value = "公司名称", required = true, example = "")
  56 + private String companyName;
  57 +
  58 + @ApiModelProperty(value = "职位", required = true, example = "")
  59 + private String position;
  60 +
  61 + @ApiModelProperty(value = "报名人数", required = true, example = "")
  62 + private Integer enrolment;
  63 +
  64 + @ApiModelProperty(value = "入场码", required = true, example = "")
  65 + private String voucherCode;
  66 +
  67 + @ApiModelProperty(value = "订单号", required = true, example = "")
  68 + private String orderNo;
  69 +
  70 + @ApiModelProperty(value = "入场码失效状态0.失效 1.有效", required = true, example = "")
  71 + private Integer failureStatus;
  72 +
  73 +}
0 \ No newline at end of file 74 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/user/Member.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/user/Member.java
@@ -0,0 +1,110 @@ @@ -0,0 +1,110 @@
  1 +package com.softwarebr.nunu.entity.user;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +
  10 +import javax.persistence.*;
  11 +import java.time.LocalDateTime;
  12 +
  13 +/**
  14 + * 用户
  15 + *
  16 + * @Author lilin
  17 + * @Date 2020-02-17 14:07:07
  18 + */
  19 +
  20 +@Entity
  21 +@Data
  22 +@NoArgsConstructor
  23 +@AllArgsConstructor
  24 +@Table(name = "u_member")
  25 +@Builder
  26 +public class Member {
  27 +
  28 + /**
  29 + * 禁用
  30 + */
  31 + public final static Integer STATUS_PROHIBIT = 0;
  32 +
  33 + /**
  34 + * 正常
  35 + */
  36 + public final static Integer STATUS_ENABLE = 1;
  37 +
  38 + /**
  39 + * PC微信登录
  40 + */
  41 + public final static Integer USER_THIRD_PARTY_PC_WECHAT = 1;
  42 +
  43 + /**
  44 + * h5微信登录
  45 + */
  46 + public final static Integer USER_THIRD_PARTY_H5_WECHAT = 2;
  47 +
  48 + /**
  49 + * 身份-用户
  50 + */
  51 + public final static Integer IDENTITY_TYPE_MEMBER = 1;
  52 +
  53 + /**
  54 + * 身份-企业
  55 + */
  56 + public final static Integer IDENTITY_TYPE_ENTERPRISE = 2;
  57 +
  58 + /** 注册检查-未注册 */
  59 + public final static Integer MEMBER_CHECK_REGISTER_PASS = 1001;
  60 +
  61 + /** 注册检查-号码已绑定微信第三方 */
  62 + public final static Integer MEMBER_CHECK_REGISTER_BINDING = 1002;
  63 +
  64 + /** 注册检查-已注册 */
  65 + public final static Integer MEMBER_CHECK_REGISTER_REJECT = 1003;
  66 +
  67 + /** 注册检查-已注册未绑定微信第三方*/
  68 + public final static Integer MEMBER_CHECK_REGISTER_BINDING_NO = 1004;
  69 +
  70 + @Id
  71 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  72 + @ApiModelProperty(value = "id", required = true, example = "1")
  73 + private Long id;
  74 +
  75 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  76 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  77 + private LocalDateTime createDate;
  78 +
  79 + @ApiModelProperty(value = "手机号码", required = true, example = "")
  80 + private String phone;
  81 +
  82 + @ApiModelProperty(value = "密码", required = true, example = "")
  83 + private String password;
  84 +
  85 + @ApiModelProperty(value = "昵称", required = true, example = "")
  86 + private String nickname;
  87 +
  88 + @ApiModelProperty(value = "头像", required = true, example = "")
  89 + @Column(length = Integer.MAX_VALUE)
  90 + private String headImgUri;
  91 +
  92 + @ApiModelProperty(value = "身份(1用户 2企业)", required = true, example = "")
  93 + private Integer identityType;
  94 +
  95 + @ApiModelProperty(value = "省份", required = true, example = "")
  96 + private String customerName;
  97 +
  98 + @ApiModelProperty(value = "姓名", required = true, example = "")
  99 + private String username;
  100 +
  101 + @ApiModelProperty(value = "企业名称", required = true, example = "")
  102 + private String companyName;
  103 +
  104 + @ApiModelProperty(value = "微信openId", required = true, example = "")
  105 + private String wxOpenId;
  106 +
  107 + @ApiModelProperty(value = "账号状态(0.禁用1.正常)", required = true, example = "")
  108 + private Integer status;
  109 +
  110 +}
0 \ No newline at end of file 111 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/user/Message.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/user/Message.java
@@ -0,0 +1,72 @@ @@ -0,0 +1,72 @@
  1 +package com.softwarebr.nunu.entity.user;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.time.LocalDateTime;
  11 +
  12 +/**
  13 + * 个人消息
  14 + * @date 2020/03/17 15:40:01
  15 + * @author lilin
  16 + */
  17 +
  18 +@Entity
  19 +@Data
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +@Table(name="u_message")
  23 +@Builder
  24 +public class Message {
  25 +
  26 + /** 1 审核提醒 */
  27 + public final static Integer MESSAGE_TYPE_VERIFY = 1;
  28 +
  29 + /** 2 项目联系方式审核提醒 */
  30 + public final static Integer MESSAGE_TYPE_CONTACT_VERIFY = 2;
  31 +
  32 + /** 3 项目提交方收到申请提醒 */
  33 + public final static Integer MESSAGE_TYPE_APPLY = 3;
  34 +
  35 +
  36 + /** 审核提醒-1.政策申报 */
  37 + public final static Integer MESSAGE_TARGET_TYPE_ONE_POLICY = 1;
  38 + /** 审核提醒-2.创新资源-项目资源 */
  39 + public final static Integer MESSAGE_TARGET_TYPE_ONE_PROJECT = 2;
  40 + /** 审核提醒-3.创新资源-招聘资源 */
  41 + public final static Integer MESSAGE_TARGET_TYPE_ONE_INVITE = 3;
  42 + /** 审核提醒-4.创新资源-载体资源 */
  43 + public final static Integer MESSAGE_TARGET_TYPE_ONE_PROPERTY = 4;
  44 + /** 审核提醒-5.创新资源服务平台 */
  45 + public final static Integer MESSAGE_TARGET_TYPE_ONE_PLATFORM = 5;
  46 + /** 审核提醒-6.项目入驻 */
  47 + public final static Integer MESSAGE_TARGET_TYPE_ONE_INVEST = 6;
  48 + /** 审核提醒-7.创新培训学院 */
  49 + public final static Integer MESSAGE_TARGET_TYPE_ONE_ACTIVITY = 7;
  50 + /** 项目联系方式审核提醒|项目提交方收到申请提醒-1.创新项目路演厅 */
  51 + public final static Integer MESSAGE_TARGET_TYPE_TWO_INVEST = 1;
  52 +
  53 + @Id
  54 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  55 + @ApiModelProperty(value = "id", required = true, example = "1")
  56 + private Long id;
  57 +
  58 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  59 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  60 + private LocalDateTime createDate;
  61 +
  62 + @ApiModelProperty(value = "消息类型 1.审核提醒 2.项目联系方式审核提醒 3.项目提交方收到申请提醒", required = true, example = "")
  63 + private Integer type;
  64 +
  65 + @ApiModelProperty(value = "用户", required = true, example = "")
  66 + private Long memberId;
  67 +
  68 + @Column(length = Integer.MAX_VALUE)
  69 + @ApiModelProperty(value = "消息内容(json)", required = true, example = "")
  70 + private String content;
  71 +
  72 +}
0 \ No newline at end of file 73 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/user/Order.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/user/Order.java
@@ -0,0 +1,106 @@ @@ -0,0 +1,106 @@
  1 +package com.softwarebr.nunu.entity.user;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +import javax.persistence.*;
  10 +import java.math.BigDecimal;
  11 +import java.time.LocalDateTime;
  12 +
  13 +/**
  14 + * 订单
  15 + * @date 2020-02-27 12:00:43
  16 + * @author lilin
  17 + */
  18 +@Entity
  19 +@Data
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +@Table(name="u_order")
  23 +@Builder
  24 +public class Order {
  25 +
  26 + /**
  27 + * 1待付款
  28 + */
  29 + public final static Integer ORDER_STATUS_AWAITING = 1;
  30 +
  31 + /**
  32 + * 2已付款
  33 + */
  34 + public final static Integer ORDER_STATUS_RECEIVED = 2;
  35 +
  36 +
  37 + /**
  38 + * 3退款中
  39 + */
  40 + public final static Integer ORDER_STATUS_REFUNDING = 3;
  41 +
  42 + /**
  43 + * 4已退款
  44 + */
  45 + public final static Integer ORDER_STATUS_REFUNDED = 4;
  46 +
  47 + /**
  48 + * 5已拒绝
  49 + */
  50 + public final static Integer ORDER_STATUS_REJECTED = 5;
  51 +
  52 + /**
  53 + * 6已取消
  54 + */
  55 + public final static Integer ORDER_STATUS_CANCEL = 6;
  56 +
  57 +
  58 + /**
  59 + * 支付方式(1微信)
  60 + */
  61 + public final static Integer PAY_TYPE_WECHAT = 1;
  62 +
  63 + /**
  64 + * 支付方式(2支付宝)
  65 + */
  66 + public final static Integer PAY_TYPE_ALIPAY = 2;
  67 +
  68 +
  69 + @Id
  70 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  71 + @ApiModelProperty(value = "id", required = true, example = "1")
  72 + private Long id;
  73 +
  74 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  75 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  76 + private LocalDateTime createDate;
  77 +
  78 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  79 + @ApiModelProperty(value = "自动取消时间", required = true, example = "")
  80 + private LocalDateTime autoCancelDate;
  81 +
  82 + @ApiModelProperty(value = "活动id", required = true, example = "")
  83 + private Long activityId;
  84 +
  85 + @ApiModelProperty(value = "用户id", required = true, example = "")
  86 + private Long memberId;
  87 +
  88 + @ApiModelProperty(value = "订单号", required = true, example = "")
  89 + private String orderNo;
  90 +
  91 + @ApiModelProperty(value = "订单数量", required = true, example = "")
  92 + private Integer orderAmount;
  93 +
  94 + @ApiModelProperty(value = "活动价格", required = true, example = "")
  95 + private BigDecimal price;
  96 +
  97 + @ApiModelProperty(value = "订单总价", required = true, example = "")
  98 + private BigDecimal totalPrice;
  99 +
  100 + @ApiModelProperty(value = "支付方式(1微信 2支付宝)", required = true, example = "")
  101 + private Integer payType;
  102 +
  103 + @ApiModelProperty(value = "订单状态(1待付款 2已付款 3退款中 4已退款 5已拒绝 6已取消)", required = true, example = "")
  104 + private Integer orderStatus;
  105 +
  106 +}
0 \ No newline at end of file 107 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/entity/user/RefundInfo.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/entity/user/RefundInfo.java
@@ -0,0 +1,57 @@ @@ -0,0 +1,57 @@
  1 +package com.softwarebr.nunu.entity.user;
  2 +
  3 +import com.alibaba.fastjson.annotation.JSONField;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Builder;
  7 +import lombok.Data;
  8 +import lombok.NoArgsConstructor;
  9 +
  10 +import javax.persistence.*;
  11 +import java.time.LocalDateTime;
  12 +
  13 +/**
  14 + * @date 2020-02-27 13:36:08
  15 + * @author lilin
  16 + */
  17 +
  18 +@Entity
  19 +@Data
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +@Table(name="u_refund_info")
  23 +@Builder
  24 +public class RefundInfo {
  25 +
  26 + @Id
  27 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  28 + @ApiModelProperty(value = "id", required = true, example = "1")
  29 + private Long id;
  30 +
  31 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  32 + @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
  33 + private LocalDateTime createDate;
  34 +
  35 + @ApiModelProperty(value = "订单id", required = true, example = "")
  36 + private Long orderId;
  37 +
  38 + @ApiModelProperty(value = "活动id", required = true, example = "")
  39 + private Long activityId;
  40 +
  41 + @ApiModelProperty(value = "用户id", required = true, example = "")
  42 + private Long memberId;
  43 +
  44 + @ApiModelProperty(value = "退款原因", required = true, example = "")
  45 + private String reason;
  46 +
  47 + @ApiModelProperty(value = "凭证图片", required = true, example = "")
  48 + @Column(length = Integer.MAX_VALUE)
  49 + private String voucherPicture;
  50 +
  51 + @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
  52 + private Integer verify;
  53 +
  54 + @ApiModelProperty(value = "审核备注", required = true, example = "")
  55 + private String verifyRemark;
  56 +
  57 +}
0 \ No newline at end of file 58 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/globals/MQTopics.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/globals/MQTopics.java
@@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
  1 +package com.softwarebr.nunu.globals;
  2 +
  3 +/**
  4 + * 消息队列主题
  5 + * @author xu
  6 + * @date 2019/12/6 15:25
  7 + */
  8 +public class MQTopics {
  9 +
  10 + /** 自动取消订单 message -> orderNo **/
  11 + public static final String ORDER_AUTO_CANCEL = "ORDER_AUTO_CANCEL";
  12 +
  13 + /** 发送消息 message -> SendMessage **/
  14 + public static final String MEMBER_SEND_MESSAGE = "MEMBER_SEND_MESSAGE";
  15 +}
boot-nunu/src/main/java/com/softwarebr/nunu/globals/SystemConst.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/globals/SystemConst.java
@@ -0,0 +1,128 @@ @@ -0,0 +1,128 @@
  1 +package com.softwarebr.nunu.globals;
  2 +
  3 +/**
  4 + * @author lilin
  5 + * @date 2020/2/21 15:25
  6 + *
  7 + */
  8 +public class SystemConst {
  9 +
  10 + /**
  11 + * 已删除
  12 + */
  13 + public final static Integer MARKER_STATUS_YES = 0;
  14 + /**
  15 + * 未删除
  16 + */
  17 + public final static Integer MARKER_STATUS_NO = 1;
  18 +
  19 +
  20 + /**
  21 + * 审核人员 发布者
  22 + */
  23 + public final static Integer AUDITOR_PUBLISHER = 1;
  24 +
  25 + /**
  26 + * 审核人员 平台
  27 + */
  28 + public final static Integer AUDITOR_ADMIN = 2;
  29 +
  30 + /**
  31 + * 1待审核
  32 + */
  33 + public final static int VERIFY_AWAIT = 1;
  34 + /**
  35 + * 2审核通过
  36 + */
  37 + public final static int VERIFY_ADOPT = 2;
  38 + /**
  39 + * 3审核驳回
  40 + */
  41 + public final static int VERIFY_REJECT = 3;
  42 +
  43 + /**
  44 + * 是否推荐至首页->0不推荐
  45 + */
  46 + public final static Integer INDEX_TYPE_NO = 0;
  47 + /**
  48 + * 是否推荐至首页->1推荐
  49 + */
  50 + public final static Integer INDEX_TYPE_YES = 1;
  51 +
  52 + /**
  53 + * 下架
  54 + */
  55 + public final static int STATUS_LOWER_SHELF = 0;
  56 + /**
  57 + * 上架
  58 + */
  59 + public final static int STATUS_UPPER_SHELF = 1;
  60 +
  61 + /**
  62 + * 公开
  63 + */
  64 + public final static int PUBLICITY_PUBLIC = 1;
  65 + /**
  66 + * 隐私
  67 + */
  68 + public final static int PUBLICITY_PRIVATE = 2;
  69 + /**
  70 + * 平台可见
  71 + */
  72 + public final static int PUBLICITY_ADMIN_PUBLIC = 3;
  73 +
  74 + /**
  75 + * Mysql的in查询限制
  76 + */
  77 + public final static int CONSTANT_GROBAL_MYSQL_IN_QUERY_LIMIT = 1000;
  78 +
  79 + /**
  80 + * 公开状态处理
  81 + * @param publicity 公开状态
  82 + * @return
  83 + */
  84 + public static String publicityHandle(int publicity){
  85 + switch (publicity){
  86 + case PUBLICITY_PUBLIC:
  87 + return "公开";
  88 + case PUBLICITY_PRIVATE:
  89 + return "隐私";
  90 + case PUBLICITY_ADMIN_PUBLIC:
  91 + return "平台可见";
  92 + }
  93 + return "";
  94 + }
  95 +
  96 + /**
  97 + * 上下架状态处理
  98 + * @param statusUpper 上下架状态
  99 + * @return
  100 + */
  101 + public static String statusUpperHandle(int statusUpper){
  102 + switch (statusUpper) {
  103 + case STATUS_UPPER_SHELF:
  104 + return "上架";
  105 + case STATUS_LOWER_SHELF:
  106 + return "下架";
  107 + }
  108 + return "";
  109 + }
  110 +
  111 + /**
  112 + * 审核状态处理
  113 + * @param verify 审核状态
  114 + * @return
  115 + */
  116 + public static String verifyHandle(int verify){
  117 + switch (verify) {
  118 + case VERIFY_AWAIT:
  119 + return "待审核";
  120 + case VERIFY_ADOPT:
  121 + return "审核通过";
  122 + case VERIFY_REJECT:
  123 + return "审核不通过";
  124 + }
  125 + return "";
  126 + }
  127 +
  128 +}
boot-nunu/src/main/java/com/softwarebr/nunu/json/AreaResult.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/json/AreaResult.java
@@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
  1 +package com.softwarebr.nunu.json;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Builder;
  6 +import lombok.Data;
  7 +import lombok.NoArgsConstructor;
  8 +
  9 +import java.util.List;
  10 +
  11 +/**
  12 + * 省市区三级联动数据返回
  13 + * @date 2019-10-21 17:33:17
  14 + * @author lilin
  15 + */
  16 +
  17 +@Data
  18 +@NoArgsConstructor
  19 +@AllArgsConstructor
  20 +@Builder
  21 +public class AreaResult {
  22 +
  23 + @ApiModelProperty(value = "id 区域编号", required = true, example = "1")
  24 + private Long id;
  25 +
  26 + @ApiModelProperty(value = "区域名称", required = true, example = "广东省")
  27 + private String cityName;
  28 +
  29 + @ApiModelProperty(value = "下级城市", required = true, example = "[]")
  30 + List<AreaResult> citys;
  31 +}
0 \ No newline at end of file 32 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/json/admin/go/LabelParam.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/json/admin/go/LabelParam.java
@@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
  1 +package com.softwarebr.nunu.json.admin.go;
  2 +
  3 +import com.brframework.commoncms.annatotion.column.SelectColumn;
  4 +import com.softwarebr.nunu.config.SelectConfig;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import lombok.Data;
  8 +
  9 +import javax.validation.constraints.NotEmpty;
  10 +import javax.validation.constraints.NotNull;
  11 +
  12 +/**
  13 + * @date 2020-02-19 14:03:47
  14 + * @author lilin
  15 + */
  16 +
  17 +@Data
  18 +@ApiModel
  19 +public class LabelParam {
  20 +
  21 + @ApiModelProperty(value = "一级标签名称", required = true, example = "")
  22 + @SelectColumn(optionsMappingContext = SelectConfig.SELECT_LABEL)
  23 + private Long parentId;
  24 +
  25 + @ApiModelProperty(value = "标签名称", required = true, example = "")
  26 + @NotEmpty(message = "标签名称不能为空")
  27 + private String labelName;
  28 +
  29 + @ApiModelProperty(value = "排序值", required = true, example = "")
  30 + @NotNull(message = "请填写排序值")
  31 + private Integer sort;
  32 +
  33 +}
boot-nunu/src/main/java/com/softwarebr/nunu/json/admin/go/LabelParentParam.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/json/admin/go/LabelParentParam.java
@@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
  1 +package com.softwarebr.nunu.json.admin.go;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +
  7 +import javax.validation.constraints.NotEmpty;
  8 +
  9 +/**
  10 + * @date 2020-02-19 14:03:47
  11 + * @author lilin
  12 + */
  13 +
  14 +@Data
  15 +@ApiModel
  16 +public class LabelParentParam {
  17 +
  18 + @ApiModelProperty(value = "标签名称", required = true, example = "")
  19 + @NotEmpty(message = "标签名称不能为空")
  20 + private String labelName;
  21 +
  22 +}
0 \ No newline at end of file 23 \ No newline at end of file
boot-nunu/src/main/java/com/softwarebr/nunu/json/admin/go/LabelParentQueryParam.java 0 → 100644
  1 +++ a/boot-nunu/src/main/java/com/softwarebr/nunu/json/admin/go/LabelParentQueryParam.java
@@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
  1 +package com.softwarebr.nunu.json.admin.go;
  2 +
  3 +import com.brframework.commoncms.annatotion.column.HideColumn;
  4 +import com.brframework.commondb.annotation.param.ParamQuery;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import lombok.Data;
  8 +
  9 +/**
  10 + * @date 2020-02-19 14:03:47
  11 + * @author lilin
  12 + */
  13 +
  14 +@Data
  15 +@ApiModel
  16 +public class LabelParentQueryParam {
  17 +
  18 + @ParamQuery
  19 + @ApiModelProperty(value = "标签名称", example = "")
  20 + private String labelName;
  21 +
  22 + @ParamQuery
  23 + @HideColumn
  24 + @ApiModelProperty(value = "排序(一级标签ui上不需要,设置为0)", hidden = true, example = "")
  25 + private Integer sort;
  26 +
  27 + @ParamQuery
  28 + @HideColumn
  29 + @ApiModelProperty(value = "状态0.已删除 1.未删除", hidden = true, example = "")
  30 + private Integer status;
  31 +
  32 +}
0 \ No newline at end of file 33 \ No newline at end of file