From 59c4a126c1b9a73aa75d8fd7dcaa7fb5fde1ae33 Mon Sep 17 00:00:00 2001 From: liupopo Date: Tue, 5 Sep 2023 18:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 28 +++++++ docs/xuqiu/功能.txt | 3 + pom.xml | 77 +++++++++++++++++++ .../YxtSuperviseGd36524Application.java | 18 +++++ .../yxt/supervise/gd36524/biz/IndexRest.java | 9 +++ .../supervise/gd36524/biz/package-info.java | 4 + .../gd36524/biz/store/StoreInfo.java | 9 +++ src/main/resources/application-devv.yml | 31 ++++++++ src/main/resources/application-pro.yml | 28 +++++++ src/main/resources/application-test.yml | 30 ++++++++ src/main/resources/application.yml | 46 +++++++++++ src/main/resources/logback-spring.xml | 50 ++++++++++++ .../YxtSuperviseGd36524ApplicationTests.java | 22 ++++++ 13 files changed, 355 insertions(+) create mode 100644 .gitignore create mode 100644 docs/xuqiu/功能.txt create mode 100644 pom.xml create mode 100644 src/main/java/com/yxt/supervise/gd36524/YxtSuperviseGd36524Application.java create mode 100644 src/main/java/com/yxt/supervise/gd36524/biz/IndexRest.java create mode 100644 src/main/java/com/yxt/supervise/gd36524/biz/package-info.java create mode 100644 src/main/java/com/yxt/supervise/gd36524/biz/store/StoreInfo.java create mode 100644 src/main/resources/application-devv.yml create mode 100644 src/main/resources/application-pro.yml create mode 100644 src/main/resources/application-test.yml create mode 100644 src/main/resources/application.yml create mode 100644 src/main/resources/logback-spring.xml create mode 100644 src/test/java/com/yxt/supervise/gd36524/YxtSuperviseGd36524ApplicationTests.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..66a8cb2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +# ---> Java +# Compiled class file +*.class + +# Log file +*.log + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +# File-based project format +*.iws + +# mpeltonen/sbt-idea plugin +**/.idea_modules/ + +**/.idea/ +**/logs/ +**/target/ \ No newline at end of file diff --git a/docs/xuqiu/功能.txt b/docs/xuqiu/功能.txt new file mode 100644 index 0000000..66343d3 --- /dev/null +++ b/docs/xuqiu/功能.txt @@ -0,0 +1,3 @@ +1。实现门店信息数据的导入功能,将Excel中数据导入系统数据库(目前门店信息包括:名称 地址 经纬度 店铺面积 是否尽调) +2。从系统数据查询、过滤数据,提供给页面地图 +3。地图展示和标注,根据不同状态展示不同颜色,鼠标移动到标注上显示门店名称,点击标注展示门店详细信息。 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8262692 --- /dev/null +++ b/pom.xml @@ -0,0 +1,77 @@ + + + + + com.yxt + yxt-parent + 0.0.1 + + + 4.0.0 + + yxt-supervise-gd36524-biz + com.yxt.supervise.gd36524 + 0.0.1 + + + + com.yxt + yxt-common-base + 0.0.1 + + + + mysql + mysql-connector-java + runtime + + + + org.springframework.boot + spring-boot-starter-test + test + + + org.junit.platform + junit-platform-launcher + test + + + + + + + + + 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/src/main/java/com/yxt/supervise/gd36524/YxtSuperviseGd36524Application.java b/src/main/java/com/yxt/supervise/gd36524/YxtSuperviseGd36524Application.java new file mode 100644 index 0000000..1470590 --- /dev/null +++ b/src/main/java/com/yxt/supervise/gd36524/YxtSuperviseGd36524Application.java @@ -0,0 +1,18 @@ +package com.yxt.supervise.gd36524; + + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @author dimengzhe + */ +@SpringBootApplication(scanBasePackages = { + "com.yxt.common.base.config", + "com.yxt.supervise.gd36524" +}) +public class YxtSuperviseGd36524Application { + public static void main(String[] args) { + SpringApplication.run(YxtSuperviseGd36524Application.class, args); + } +} diff --git a/src/main/java/com/yxt/supervise/gd36524/biz/IndexRest.java b/src/main/java/com/yxt/supervise/gd36524/biz/IndexRest.java new file mode 100644 index 0000000..9fe18fb --- /dev/null +++ b/src/main/java/com/yxt/supervise/gd36524/biz/IndexRest.java @@ -0,0 +1,9 @@ +package com.yxt.supervise.gd36524.biz; + +import org.springframework.web.bind.annotation.RestController; + +@RestController("com.yxt.supervise.gd36524.biz.IndexRest") +public class IndexRest { + + +} diff --git a/src/main/java/com/yxt/supervise/gd36524/biz/package-info.java b/src/main/java/com/yxt/supervise/gd36524/biz/package-info.java new file mode 100644 index 0000000..c797667 --- /dev/null +++ b/src/main/java/com/yxt/supervise/gd36524/biz/package-info.java @@ -0,0 +1,4 @@ +/** + * 宇信通监管项目-(国大36524)项目后台逻辑和接口 + */ +package com.yxt.supervise.gd36524.biz; \ No newline at end of file diff --git a/src/main/java/com/yxt/supervise/gd36524/biz/store/StoreInfo.java b/src/main/java/com/yxt/supervise/gd36524/biz/store/StoreInfo.java new file mode 100644 index 0000000..aa503a7 --- /dev/null +++ b/src/main/java/com/yxt/supervise/gd36524/biz/store/StoreInfo.java @@ -0,0 +1,9 @@ +package com.yxt.supervise.gd36524.biz.store; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.yxt.common.core.domain.EntityWithId; + +@TableName("store_info") +public class StoreInfo extends EntityWithId { + +} diff --git a/src/main/resources/application-devv.yml b/src/main/resources/application-devv.yml new file mode 100644 index 0000000..74d4be4 --- /dev/null +++ b/src/main/resources/application-devv.yml @@ -0,0 +1,31 @@ +spring: + datasource: + hikari: + max-lifetime: 500000 + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://127.0.0.1:3306/yxt_supervise_gd36524?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: + port: 6379 + timeout: 0 # 连接超时时间(毫秒) + +image: + upload: + path: D:\supervise\upload\ + url: + prefix: http://127.0.0.1:8112/upload/ + diff --git a/src/main/resources/application-pro.yml b/src/main/resources/application-pro.yml new file mode 100644 index 0000000..8da73a9 --- /dev/null +++ b/src/main/resources/application-pro.yml @@ -0,0 +1,28 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://127.0.0.1:3306/yxt_supervise_gd36524?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8 + 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:\supervise\upload\ + url: + prefix: http://127.0.0.1/api/upload/ + diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml new file mode 100644 index 0000000..1656166 --- /dev/null +++ b/src/main/resources/application-test.yml @@ -0,0 +1,30 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://127.0.0.1:3306/yxt_supervise_gd36524?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true + username: root + password: 1LAiGz$t1*Iw + 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:/webapps/supervise/static/upload/ + url: + prefix: http://122.14.222.186:7003/upload/ + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..eeba737 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,46 @@ +spring: + application: + name: supervise-gd36524 + profiles: + active: devv +# active: test +# active: pro + messages: + # 国际化资源文件路径 + basename: i18n/messages + servlet: + #上传文件 + multipart: + max-file-size: 50MB + max-request-size: 100MB + devtools: + restart: + # 热部署开关 + enabled: true + +server: + port: 7103 + max-http-header-size: 102400 + undertow: + max-http-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 + + + + + diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..05c947c --- /dev/null +++ b/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/src/test/java/com/yxt/supervise/gd36524/YxtSuperviseGd36524ApplicationTests.java b/src/test/java/com/yxt/supervise/gd36524/YxtSuperviseGd36524ApplicationTests.java new file mode 100644 index 0000000..0b8df6a --- /dev/null +++ b/src/test/java/com/yxt/supervise/gd36524/YxtSuperviseGd36524ApplicationTests.java @@ -0,0 +1,22 @@ +package com.yxt.supervise.gd36524; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.thread.ThreadUtil; +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; + +import java.util.Date; + +@SpringBootTest +class YxtSuperviseGd36524ApplicationTests { + + + +// @Test + void contextLoads() { + String currDay = "2023-08-22"; + + } + +}