项目构建

This commit is contained in:
2023-04-17 23:02:30 +08:00
commit ae0b2dcd6e
95 changed files with 4594 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.yxt.demo</groupId>
<artifactId>demo-system</artifactId>
<version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>demo-system-api</artifactId>
<version>0.0.1</version>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>com.yxt.di</groupId>
<artifactId>di-common-core</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,267 @@
package com.yxt.anrui.portal.config;
import io.swagger.annotations.ApiModelProperty;
/**
* @author dimengzhe
* @date 2021/7/1 10:23
* @description 常量值管理
*/
public class DictCommonType {
//客户端获取手机验证码redis前缀定义
public static final String WX_REGIST = "wx-regist-";//注册获取验证码
public static final String WX_LOGIN = "wx-login-";//登录获取验证码
public static final String WX_FORGET = "wx-forget-";//忘记密码获取验证码
public static final String WX_UPDATE = "wx-update-";//忘记密码获取验证码
public static final String WX_NEW = "wx-new-";//新手机号获取验证码
/*供应厂商相关*/
@ApiModelProperty(value = "供应商分类")
public static final String SUPPLIER_TYPE = "supplierType";//数据字典已添加
@ApiModelProperty(value = "供应类别")
public static final String SUPPLY_TYPE = "supplyType";//数据字典已添加
@ApiModelProperty(value = "供应商分组")
public static final String SUPPLIE_RGROUP = "supplierGroup";//数据字典已添加
/*供应厂商财务信息相关*/
@ApiModelProperty(value = "结算币种")
public static final String SETTLEMENT_CURRENCY = "settlementCurrency";//数据字典已添加
@ApiModelProperty(value = "结算方式")
public static final String SETTLEMENT_WAY = "settlementWay";//数据字典已添加
@ApiModelProperty(value = "税分类")
public static final String TAX_CLASSIFICATION = "taxClassification";//数据字典已添加
/*基础信息品牌相关*/
@ApiModelProperty(value = "品牌类型")
public static final String BRAND_TYPE = "brandType";//数据字典已添加
@ApiModelProperty(value = "职级(岗位)")
public static final String POSTLEVEL = "postLevel";
/*车型、车型配置、车辆信息相关*/
@ApiModelProperty(value = "车辆类型")
public static final String VEHICLE_TYPE = "vehicleType";//数据字典已添加
@ApiModelProperty(value = "排放标准")
public static final String EMISSION_STANDARD = "emissionStandard";//数据字典已添加
@ApiModelProperty(value = "产品线")
public static final String PRODUCT_LINE = "productLine";//数据字典已添加
@ApiModelProperty(value = "后桥")
public static final String REAR_AXLE = "rearAxle";//数据字典已添加
@ApiModelProperty(value = "速比")
public static final String SPEED_RATIO = "speedRatio";//数据字典已添加
@ApiModelProperty(value = "系别")
private static final String SERIES = "series";//数据字典已添加
@ApiModelProperty(value = "车辆功能")
private static final String VEHICLE_FUNCTION = "vehicleFunction";//数据字典已添加
@ApiModelProperty(value = "细分市场")
private static final String MARKETSEGMENTS = "marketSegments";//数据字典已添加
@ApiModelProperty(value = "车身颜色")
public static final String BODYCOLOR = "bodyColor";
@ApiModelProperty(value = "缓速器")
public static final String SLOWMACHINE = "slowMachine";
@ApiModelProperty(value = "后视镜")
public static final String REARVIEWMIRROR = "rearViewMirror";
@ApiModelProperty(value = "轮胎")
public static final String TIRESIZE = "tireSize";
@ApiModelProperty(value = "驾驶室")
public static final String SPECIFICATION = "specification";
@ApiModelProperty(value = "后桥速比")
public static final String REARAXLERATIO = "rearAxleRatio";
@ApiModelProperty(value = "轮毂材质")
public static final String HUBMATERIAL = "hubMaterial";
@ApiModelProperty(value = "悬架")
public static final String SUSPENSION = "suspension";
@ApiModelProperty(value = "座椅")
public static final String SEAT = "seat";
@ApiModelProperty(value = "鞍座")
public static final String SADDLE = "saddle";
@ApiModelProperty(value = "轴距")
public static final String WHEELBASE = "wheelbase";
@ApiModelProperty(value = "保险杠")
public static final String BUMPER = "bumper";
@ApiModelProperty(value = "配置包")
public static final String CONFIGURINGBAO = "configuringBao";
@ApiModelProperty(value = "独立热源")
public static final String INDEPENDENTSOURCES = "independentSources";
@ApiModelProperty(value = "燃料箱")
public static final String FUELTANK = "fuelTank";
@ApiModelProperty(value = "有无:1有0无")
public static final String WHETHER = "whether";
@ApiModelProperty(value = "车辆状态")
public static final String VEHICLE_STATE = "vehicleState";
@ApiModelProperty(value = "车辆状态(车辆台账)")
public static final String VEHICLE_LEDGER_STATE = "vehicleLedgerState";
@ApiModelProperty(value = "驱动")
public static final String DRIVER = "driver";
@ApiModelProperty(value = "马力")
public static final String HORSEPOWER = "horsepower";
@ApiModelProperty(value = "锁定状态")
public static final String LOCKED_STATE = "lockedState";
@ApiModelProperty(value = "预计订金日期")
public static final String RESERVE_DEPOSIT_DATE = "reserveDepositDate";
@ApiModelProperty(value = "贷款主体类型")
public static final String LOANTYPE = "loanType";
@ApiModelProperty(value = "打包项目")
public static final String PACKAGINGPROJECT = "packagingProject";
@ApiModelProperty(value = "融资项目(比打包项目多一个“配件”)")
public static final String PACKAGINGPROJECTFIN = "packagingProjectFin";
@ApiModelProperty(value = "变速箱")
public static final String GEARBOX = "gearbox";
@ApiModelProperty(value = "燃料种类")
public static final String FUELTYPE = "fuelType";
@ApiModelProperty(value = "版本(车辆需求)")
public static final String VEHICLEVERSION = "vehicleVersion";
@ApiModelProperty(value = "采购形式")
public static final String PURCHASINGFORM = "purchasingForm";
/*经销商相关*/
@ApiModelProperty(value = "经销商分类")
public static final String DISTRIBUTOR_CLASSIFICATION = "distributorClassification";//数据字典已添加
@ApiModelProperty(value = "经销商类型")
public static final String DISTRIBUTOR_TYPE = "distributorType";//数据字典已添加
@ApiModelProperty(value = "经销商等级")
public static final String DISTRIBUTOR_LEVEL = "distributorLevel";//数据字典已添加
@ApiModelProperty(value = "企业性质")
public static final String ENTERPRISE_NATURE = "enterpriseNature";//数据字典已添加
@ApiModelProperty(value = "登记状态")
public static final String REGIST_STATE = "registState";
@ApiModelProperty(value = "注册资本单位")
public static final String REGISTEREDCAPITAL_ORG = "registeredCapitalOrg";
@ApiModelProperty(value = "项目类型")
public static final String PROJECT_TYPE = "projectType";
/*经销商相关结束*/
@ApiModelProperty(value = "合格证情况0001虚拟 002正式")
public static final String CERTIFICATE_SITUATION = "certificateSituation";
@ApiModelProperty(value = "客户类型1个人2企业")
public static final String CUSTOMER_TYPE = "customerType";
@ApiModelProperty(value = "登记注册号类型")
public static final String REGIST_NUM_TYPE = "registNumType";
@ApiModelProperty(value = "现居住状况")
public static final String CURRENT_LIVE_STATE = "currentlivestate";
@ApiModelProperty(value = "教育程度")
public static final String EDUCATION_DEGREE = "educationdegree";
@ApiModelProperty(value = "雇员类型")
public static final String EMPLOYEE_TYPE = "employeetype";
@ApiModelProperty(value = "证件类型")
public static final String DOCUMENT_TYPE = "documenttype";
@ApiModelProperty(value = "行业类别")
public static final String INDUSTRY_TYPE = "industrytype";
@ApiModelProperty(value = "经济类型")
public static final String ECONOMIC_TYPE = "economictype";
@ApiModelProperty(value = "组织机构类别")
public static final String ORGANIZATION_TYPE = "organizationtype";
@ApiModelProperty(value = "组织机构类别细分")
public static final String ORGANIZATION_TYPE_DETAILS = "organizationtypedetails";
@ApiModelProperty(value = "是或否")
public static final String IS_TRUE = "isTrue";
@ApiModelProperty(value = "准驾车型")
public static final String CAR_TYPE = "carType";
@ApiModelProperty(value = "与客户关系")
public static final String RELATION_SHIP = "relationship";
@ApiModelProperty(value = "现工作单位性质")
public static final String ORG_NATURE = "orgNature";
@ApiModelProperty(value = "主要收入来源")
public static final String INCOME_SOURCE = "incomeSource";
@ApiModelProperty(value = "职位")
public static final String POSITION = "position";
@ApiModelProperty(value = "经销商类型")
public static final String DEALERS_TYPE = "dealersType";
@ApiModelProperty(value = "附件类型")
public static final String ATTACH_TYPE = "attachType";
@ApiModelProperty(value = "信用记录")
public static final String CREDIT_RECORD = "creditRecord";
@ApiModelProperty(value = "拟租赁形式l")
public static final String PLANS_TO_LEASE = "plansToLease";
@ApiModelProperty(value = "去返程货物")
public static final String GO_GOODS = "goGoods";
@ApiModelProperty(value = "经营业务范围")
public static final String BUSINESSSCOPE = "businessScope";
/* 客户信息相关*/
@ApiModelProperty(value = "客户分类")
public static final String CUSTOMER_CLASS = "customerClass";
@ApiModelProperty(value = "客户来源")
public static final String CUSTOMER_SOURCE = "customerSource";
@ApiModelProperty(value = "客户等级")
public static final String CUSTOMER_LEVEL = "customerLevel";
@ApiModelProperty(value = "来访方式")
public static final String VISIT_WAY = "visitWay";
@ApiModelProperty(value = "跟进状态")
public static final String FOLLOW_STATE = "followState";
@ApiModelProperty(value = "提醒日期(天)")
public static final String REMIND_DAY = "remindDay";
@ApiModelProperty(value = "承运货物类型")
public static final String CONSIGNMENT_TYPE = "consignmentType";
@ApiModelProperty(value = "承运货物(暂为假数据)")
public static final String CONSIGNMENT = "consignment";
@ApiModelProperty(value = "购车方式")
public static final String PURCHASETYPE = "purchaseType";
@ApiModelProperty(value = "提车方式")
public static final String SALETYPE = "saleType";
/* 车辆订单 */
@ApiModelProperty(value = "单据类型")
public static final String BILLSTYPE = "billsType";
@ApiModelProperty(value = "合同类型")
public static final String CONTRACTTYPE = "contractType";
@ApiModelProperty(value = "主车优惠类型")
public static final String DISCOUNTTYPE = "discountType";
@ApiModelProperty(value = "还款方式")
public static final String MODEOFREPAY = "modeOfRePay";
@ApiModelProperty(value = "保证金方式")
public static final String BONDMETHOD = "bondMethod";
@ApiModelProperty(value = "业务类型")
public static final String BUSINESSTYPE = "businessType";
@ApiModelProperty(value = "开户银行")
public static final String BANK = "bank";
@ApiModelProperty(value = "账户类型")
public static final String ACCOUNTTYPE = "accountType";
@ApiModelProperty(value = "运输货物")
public static final String TRANSPORTCARGO = "transportCargo";
@ApiModelProperty(value = "结账周期")
public static final String CHECKOUTCYCLE = "checkoutCycle";
@ApiModelProperty(value = "虚拟订单类型")
public static final String DEPOSITBILLTYPE = "depositBillType";
@ApiModelProperty(value = "付款方式")
public static final String PAYMENTTYPE = "paymentType";
/* 物料相关 */
@ApiModelProperty(value = "物料分组")
public static final String MATERIAL_GROUP = "materialGroup";
@ApiModelProperty(value = "物料属性")
public static final String MATERIAL_PROPERTIES = "materialProperties";
@ApiModelProperty(value = "存货类别")
public static final String STOCK_TYPE = "stockType";
@ApiModelProperty(value = "基本单位")
public static final String BASIC_UNIT = "basicUnit";
/* 合同相关 */
@ApiModelProperty(value = "人员类型")
public static final String PERSONNEL_TYPE = "personnelType";
/* 开票申请单相关 */
@ApiModelProperty(value = "开票性质")
public static final String INVOICING_NATURE = "invoicingNature";
/*员工信息管理相关*/
@ApiModelProperty(value = "婚姻状况")
public static final String MARITAL_STATUS = "maritalstatus";
@ApiModelProperty(value = "民族")
public static final String NATIONAL = "national";
@ApiModelProperty(value = "性别")
public static final String SEX = "sex";
@ApiModelProperty(value = "政治面貌")
public static final String POLITICAL = "political";
/*资料清单相关*/
@ApiModelProperty(value = "资料类别")
public static final String DATA_TYPE = "dataType";
@ApiModelProperty(value = "文件格式")
public static final String FILE_TYPE = "fileType";
}

View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.yxt.demo</groupId>
<artifactId>demo-system</artifactId>
<version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>demo-system-biz</artifactId>
<version>0.0.1</version>
<dependencies>
<dependency>
<artifactId>demo-system-api</artifactId>
<groupId>com.yxt.demo</groupId>
<version>0.0.1</version>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<dependency>
<groupId>com.yxt.demo</groupId>
<artifactId>demo-common-config</artifactId>
<version>0.0.1</version>
</dependency>
<dependency>
<groupId>com.yxt.demo</groupId>
<artifactId>demo-common-base</artifactId>
<version>0.0.1</version>
</dependency>
<dependency>
<groupId>com.yxt.demo</groupId>
<artifactId>demo-common-redis</artifactId>
<version>0.0.1</version>
</dependency>
<dependency>
<groupId>com.yxt.demo</groupId>
<artifactId>demo-common-jdbc</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.5.6</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*Mapper.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
</project>

View File

@@ -0,0 +1,23 @@
package com.yxt.anrui.portal;
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.demo.system"
})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {})
public class SystemApplication {
public static void main(String[] args) {
SpringApplication.run(SystemApplication.class, args);
}
}

View File

@@ -0,0 +1,35 @@
package com.yxt.demo.system.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.demo.system"))
.paths(PathSelectors.any()).build();
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder().title("demo/系统管理").description("系统管理接口").version("1.0")
.build();
}
}

View File

@@ -0,0 +1,36 @@
spring:
datasource:
hikari:
max-lifetime: 30000
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/demo_system?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:\\demo\\upload\\
url:
prefix: http://127.0.0.1:8111/upload/
login:
path: D:\\images\\pic-click

View File

@@ -0,0 +1,30 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/demo_system?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:\demo\upload\
url:
prefix: http://127.0.0.1:8111/upload/
login:
path: D:\images\pic-click

View File

@@ -0,0 +1,31 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/demo_system?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:\demo\upload\
url:
prefix: http://127.0.0.1:8111/upload/
login:
path: D:\images\pic-click

View File

@@ -0,0 +1,62 @@
spring:
application:
name: demo-system
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: 30000
#ribbon的超时时间
ribbon:
ReadTimeout: 30000
ConnectTimeout: 30000

View File

@@ -0,0 +1,13 @@
,----.. ____
/ / \ ,' , `.
| : : ,---. ,-+-,.' _ | ,---. ,---,
. | ;. / ' ,'\ ,-+-. ; , || ' ,'\ ,-+-. / |
. ; /--` / / | ,--.'|' | || ,---. / / | ,--.'|' |
; | ; . ; ,. :| | ,', | |,/ \ . ; ,. :| | ,"' |
| : | ' | |: :| | / | |--'/ / | ' | |: :| | / | |
. | '___' | .; :| : | | , . ' / | ' | .; :| | | | |
' ; : .'| : || : | |/ ' ; /| | : || | | |/
' | '/ :\ \ / | | |`-' ' | / | \ \ / | | |--'
| : / `----' | ;/ | : | `----' | |/
\ \ .' '---' \ \ / '---'
`---` `----'

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property name="log.base" value="logs/demo_system" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<!--格式化输出:%d表示日期%thread表示线程名%-5level级别从左显示5个字符宽度%msg日志消息%n是换行符
|%blue(%thread) 线程 如 DiscoveryClient-CacheRefreshExecutor-0-->
<!--<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>-->
<pattern>%yellow(%date{yyyy-MM-dd HH:mm:ss}) |%highlight(%-5level) |%green(%logger:%line) |%blue(%msg%n)
</pattern>
<!--<charset>UTF-8</charset> -->
</encoder>
</appender>
<!-- 彩色日志 -->
<!-- 彩色日志依赖的渲染类 -->
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />
<conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" />
<!-- 彩色日志格式 -->
<property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>
<appender name="FILEOUT"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.base}.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.base}.%d{yyyyMMdd}.%i.log.zip
</fileNamePattern>
<!-- 当文件大小超过10MB时触发滚动 -->
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>1MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<!--<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>-->
<Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}
-%msg%n</Pattern>
<!--<charset>UTF-8</charset> -->
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILEOUT" />
</root>
</configuration>

View File

@@ -0,0 +1,10 @@
package com.yxt.demo.system.test;
/**
* @author dimengzhe
* @date 2021/7/1 16:11
* @description
*/
public class TestOneController {
}

View File

@@ -0,0 +1,40 @@
package com.yxt.demo.system.test.controller;
import cn.hutool.core.codec.Base64;
import com.yxt.demo.system.test.entity.TestDemo;
import lombok.Data;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.text.SimpleDateFormat;
import java.util.*;
/**
* @author dimengzhe
* @date 2021/7/1 13:49
* @description 测试OCR扫描
*/
@Controller
@RequestMapping("/test")
public class TestController {
}

View File

@@ -0,0 +1,21 @@
package com.yxt.demo.system.test.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author dimengzhe
* @date 2021/10/19 16:03
* @description
*/
@Data
public class TestDemo {
@ApiModelProperty(value = "身份证号")
private String idcard;
@ApiModelProperty(value = "手机号码")
private String mobile;
@ApiModelProperty(value = "姓名")
private String name;
}

35
demo-system/pom.xml Normal file
View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>demo-system</artifactId>
<modules>
<module>demo-system-api</module>
<module>demo-system-biz</module>
</modules>
<groupId>com.yxt.demo</groupId>
<version>0.0.1</version>
<packaging>pom</packaging>
<description>系统管理</description>
<parent>
<groupId>com.yxt</groupId>
<artifactId>demo</artifactId>
<version>0.0.1</version>
</parent>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
</project>