diff --git a/anrui-reportcenter/anrui-reportcenter-api/pom.xml b/anrui-reportcenter/anrui-reportcenter-api/pom.xml new file mode 100644 index 0000000000..0aeae64563 --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-api/pom.xml @@ -0,0 +1,64 @@ + + + + + com.yxt + yxt-parent + 0.0.1 + + + + 4.0.0 + + anrui-reportcenter-api + com.yxt.anrui + 0.0.1-SNAPSHOT + + + + + + com.yxt + yxt-common-core + 0.0.1 + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + + org.projectlombok + lombok + 1.18.24 + true + + + com.baomidou + mybatis-plus-boot-starter + + + com.baomidou + mybatis-plus-annotation + + + + + + nexus-releases + http://172.18.0.3:8081/repository/yxt-mvn-releases/ + + + nexus-snapshots + http://172.18.0.3:8081/repository/yxt-mvn-snapshot/ + + + + + \ No newline at end of file diff --git a/anrui-reportcenter/anrui-reportcenter-api/src/main/java/com/yxt/anrui/reportcenter/api/dailyreport/DailyReport.java b/anrui-reportcenter/anrui-reportcenter-api/src/main/java/com/yxt/anrui/reportcenter/api/dailyreport/DailyReport.java new file mode 100644 index 0000000000..62f6a73895 --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-api/src/main/java/com/yxt/anrui/reportcenter/api/dailyreport/DailyReport.java @@ -0,0 +1,37 @@ +package com.yxt.anrui.reportcenter.api.dailyreport; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @description: + * @author: dimengzhe + * @date: 2023/9/25 + **/ +@Data +public class DailyReport { + + private int id; + @ApiModelProperty("创建时间") + private String createTime; + @ApiModelProperty("事业部sid") + private String busOrgSid; + @ApiModelProperty("事业部名称") + private String busOrgName; + + private String brandSid; + @ApiModelProperty("品牌名称") + private String brandName; + @ApiModelProperty("分公司sid") + private String useOrgSid; + @ApiModelProperty("分公司sid") + private String useOrgName; + @ApiModelProperty("车型sid") + private String vehModelSid; + @ApiModelProperty("车型名称") + private String vehModeName; + @ApiModelProperty("配置sid") + private String vehMConfigSid; + @ApiModelProperty("配置名称") + private String vehMConfigName; +} diff --git a/anrui-reportcenter/anrui-reportcenter-biz/pom.xml b/anrui-reportcenter/anrui-reportcenter-biz/pom.xml new file mode 100644 index 0000000000..e98f938cee --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-biz/pom.xml @@ -0,0 +1,143 @@ + + + + com.yxt + yxt-parent + 0.0.1 + + + + 4.0.0 + + anrui-reportcenter-biz + com.yxt.anrui + 0.0.1 + + + + + anrui-reportcenter-api + com.yxt.anrui + 0.0.1-SNAPSHOT + + + com.yxt + yxt-common-base + 0.0.1 + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + mysql + mysql-connector-java + runtime + + + + junit + junit + compile + + + javax.servlet + javax.servlet-api + 4.0.1 + compile + + + com.github.xiaoymin + knife4j-spring-boot-starter + + + net.dongliu + apk-parser + 2.6.10 + + + + org.projectlombok + lombok + 1.18.24 + true + + + javax.xml + jaxb-impl + 2.1 + + + javax.xml + jaxb-api + 2.1 + + + javax.xml.ws + jaxws-api + 2.3.1 + + + javax.jws + javax.jws-api + 1.1 + + + com.sun.xml.bind + jaxb-core + 2.3.0.1 + + + javax.xml.soap + javax.xml.soap-api + 1.4.0 + + + javax.activation + activation + 1.1.1 + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + 2.5.6 + + + + repackage + + + + + + + + src/main/java + + **/*Mapper.xml + + + + src/main/resources + + **/*.* + + false + + + + + \ No newline at end of file diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/ReportcenterApplication.java b/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/ReportcenterApplication.java new file mode 100644 index 0000000000..06d7b62be4 --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/ReportcenterApplication.java @@ -0,0 +1,23 @@ +package com.yxt.anrui.reportcenter; + + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.openfeign.EnableFeignClients; + +/** + * @author dimengzhe + */ +@SpringBootApplication(scanBasePackages = { + "com.yxt.common.base.config", + "com.yxt.anrui.reportcenter" +}) +@EnableDiscoveryClient +@EnableFeignClients(basePackages = {}) +public class ReportcenterApplication { + + public static void main(String[] args) { + SpringApplication.run(ReportcenterApplication.class, args); + } +} diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/config/Swagger2Config.java b/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/config/Swagger2Config.java new file mode 100644 index 0000000000..0428e44d6f --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/config/Swagger2Config.java @@ -0,0 +1,35 @@ +package com.yxt.anrui.reportcenter.config; + +import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import springfox.documentation.builders.ApiInfoBuilder; +import springfox.documentation.builders.PathSelectors; +import springfox.documentation.builders.RequestHandlerSelectors; +import springfox.documentation.service.ApiInfo; +import springfox.documentation.spi.DocumentationType; +import springfox.documentation.spring.web.plugins.Docket; +import springfox.documentation.swagger2.annotations.EnableSwagger2; + +/** + * @author dimengzhe + * @date 2020/9/9 16:42 + * @description + */ +@Configuration +@EnableSwagger2 +@EnableKnife4j +public class Swagger2Config { + @Bean + public Docket createRestApi() { + return new Docket(DocumentationType.SWAGGER_2) + .apiInfo(apiInfo()).select() + .apis(RequestHandlerSelectors.basePackage("com.yxt")) + .paths(PathSelectors.any()).build(); + } + + private ApiInfo apiInfo() { + return new ApiInfoBuilder().title("安瑞/报表中心").description("报表中心接口").version("1.0") + .build(); + } +} diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application-devv.yml b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application-devv.yml new file mode 100644 index 0000000000..b903eba2e7 --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application-devv.yml @@ -0,0 +1,33 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://127.0.0.1:3306/anrui_reportcenter?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true + username: root + password: root + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + redis: + database: 3 # Redis数据库索引(默认为0) + host: 127.0.0.1 + jedis: + pool: + max-active: -1 #连接池最大连接数(使用负值表示没有限制) + max-idle: 8 #连接池中的最大空闲连接 + max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) + min-idle: 0 # 连接池中的最小空闲连接 + password: 123456 + port: 6379 + timeout: 0 # 连接超时时间(毫秒) + +image: + upload: + path: D:\\anrui\\upload\\ + url: + prefix: http://192.168.1.108:8111/upload/ + login: + path: D:\\images\\pic-click +config: + url: + prefix: http://192.168.1.108:8111/ \ No newline at end of file diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application-pro.yml b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application-pro.yml new file mode 100644 index 0000000000..32be5ae033 --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application-pro.yml @@ -0,0 +1,31 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://120.46.172.184:3306/anrui_reportcenter?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8 + username: root + password: '@anrui18033887500' + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + redis: + database: 3 # Redis数据库索引(默认为0) + host: 127.0.0.1 + jedis: + pool: + max-active: -1 #连接池最大连接数(使用负值表示没有限制) + max-idle: 8 #连接池中的最大空闲连接 + max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) + min-idle: 0 # 连接池中的最小空闲连接 + password: 123456 + port: 6379 + timeout: 0 # 连接超时时间(毫秒) + +image: + upload: + path: D:\anrui\upload\ + url: + prefix: http://120.46.172.184/api/upload/ +config: + url: + prefix: http://120.46.172.184/api/ diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application-test.yml b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application-test.yml new file mode 100644 index 0000000000..0d16c21521 --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application-test.yml @@ -0,0 +1,32 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://172.18.0.4:3306/anrui_reportcenter?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true + username: root + password: yxt_mysql_138 + cloud: + nacos: + discovery: + server-addr: 172.18.0.5:8848 + redis: + database: 3 # Redis数据库索引(默认为0) + host: 172.18.0.7 + jedis: + pool: + max-active: -1 #连接池最大连接数(使用负值表示没有限制) + max-idle: 8 #连接池中的最大空闲连接 + max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) + min-idle: 0 # 连接池中的最小空闲连接 + password: + port: 6379 + timeout: 0 # 连接超时时间(毫秒) + +image: + upload: + path: /home/lzh/docker_data/nginx/html/anrui-system-ui/upload/ + url: + prefix: http://anrui.yyundong.com/upload/ +config: + url: + prefix: http://anrui.yyundong.com + diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application.yml b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application.yml new file mode 100644 index 0000000000..191b47a6db --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/application.yml @@ -0,0 +1,62 @@ +spring: + application: + name: anrui-reportcenter + profiles: + active: devv + messages: + # 国际化资源文件路径 + basename: i18n/messages + servlet: + #上传文件 + multipart: + max-file-size: 50MB + max-request-size: 100MB + devtools: + restart: + # 热部署开关 + enabled: true + mvc: + async: + request-timeout: 20000 + + + +server: + port: 7003 + max-http-header-size: 102400 + tomcat: + max-http-form-post-size: -1 +#mybatis +mybatis-plus: + # 配置mapper的扫描,找到所有的mapper.xml映射文件 + mapper-locations: classpath*:**Mapper.xml + global-config: + refresh: true + db-config: + #定义生成ID的类型 + id-type: Auto + db-type: mysql + configuration: + map-underscore-to-camel-case: false + cache-enabled: true + call-setters-on-nulls: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + +#hystrix的超时时间 +hystrix: + command: + default: + execution: + timeout: + enabled: true + isolation: + thread: + timeoutInMilliseconds: 60000 +#ribbon的超时时间 +ribbon: + ReadTimeout: 60000 + ConnectTimeout: 60000 + + + + diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/banner.txt b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/banner.txt new file mode 100644 index 0000000000..98e44c5880 --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/banner.txt @@ -0,0 +1,13 @@ + ,----.. ____ + / / \ ,' , `. +| : : ,---. ,-+-,.' _ | ,---. ,---, +. | ;. / ' ,'\ ,-+-. ; , || ' ,'\ ,-+-. / | +. ; /--` / / | ,--.'|' | || ,---. / / | ,--.'|' | +; | ; . ; ,. :| | ,', | |,/ \ . ; ,. :| | ,"' | +| : | ' | |: :| | / | |--'/ / | ' | |: :| | / | | +. | '___' | .; :| : | | , . ' / | ' | .; :| | | | | +' ; : .'| : || : | |/ ' ; /| | : || | | |/ +' | '/ :\ \ / | | |`-' ' | / | \ \ / | | |--' +| : / `----' | ;/ | : | `----' | |/ + \ \ .' '---' \ \ / '---' + `---` `----' diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/logback-spring.xml b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/logback-spring.xml new file mode 100644 index 0000000000..0f52bd80f9 --- /dev/null +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/resources/logback-spring.xml @@ -0,0 +1,50 @@ + + + + + + + + + + %yellow(%date{yyyy-MM-dd HH:mm:ss}) |%highlight(%-5level) |%green(%logger:%line) |%blue(%msg%n) + + + + + + + + + + + + + + + ${log.base}.log + + ${log.base}.%d{yyyyMMdd}.%i.log.zip + + + + 1MB + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} + -%msg%n + + + + + + + + + + \ No newline at end of file diff --git a/anrui-reportcenter/pom.xml b/anrui-reportcenter/pom.xml new file mode 100644 index 0000000000..c0d18909b9 --- /dev/null +++ b/anrui-reportcenter/pom.xml @@ -0,0 +1,26 @@ + + + + + 4.0.0 + anrui-reportcenter + + anrui-reportcenter-api + anrui-reportcenter-biz + + com.yxt.anrui + 0.0.1 + + pom + 报表中心 + + + com.yxt.anrui + anrui + 0.0.1 + + + + \ No newline at end of file