fix(优惠券中心):优惠券中心业务完善,编译问题解决

This commit is contained in:
2025-08-07 02:44:23 +08:00
parent 4461e2b8c6
commit 5aa8f61d71
47 changed files with 2632 additions and 645 deletions
@@ -1,81 +1,47 @@
server:
port: 8082
servlet:
context-path: /coupon-center
spring:
application:
name: coupon-center
profiles:
active: dev
datasource:
# url: jdbc:mysql://${zlt.datasource.ip}:3306/device-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
url: jdbc:mysql://${zlt.datasource.ip}/coupon-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowMultiQueries=true
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/coupon_center?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: 123456
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
default-property-inclusion: non_null
# 携程API配置
ctrip:
aes:
key: your-aes-key-here-16chars
iv: your-aes-iv-here-16chars
md5:
secret: your-md5-secret-here
api:
timeout: 30000
retry-times: 3
base-url: https://api.ctrip.com
# MyBatis Plus配置
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml
type-aliases-package: com.central.coupon.entity
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
mapper-locations: classpath:/mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage: com.central.coupon.model
# configuration:
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: auto
logic-delete-field: deleted
logic-delete-value: 1
logic-not-delete-value: 0
springdoc:
group-configs:
- group: 'default'
paths-to-match: '/**'
packages-to-scan: com.central.coupon.controller
knife4j:
enable: true
setting:
swagger-model-name: 优惠券中心接口文档
zlt:
#多租户配置
tenant:
enable: false
ignoreTables:
ignoreSqls:
# 日志配置
logging:
level:
com.central.coupon: debug
org.springframework.web: debug
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
file:
name: logs/coupon-center.log
com.central.order.controller.OrderFileController: DEBUG
# 开发环境配置
---
spring:
config:
activate:
on-profile: dev
datasource:
url: jdbc:mysql://localhost:3306/coupon_center_dev?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
# 生产环境配置
---
spring:
config:
activate:
on-profile: prod
datasource:
url: jdbc:mysql://localhost:3306/coupon_center_prod?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
profiles:
active: prod
logging:
level:
com.central.coupon: info
org.springframework.web: warn
# 携程API配置
ctrip:
aes:
key: 087b36ad0dff7942 # 请替换为实际的AES密钥
iv: 750e15a31356a99d # 请替换为实际的AES IV
sign:
key: ce6033ae31124ec5cdab3d2bc79f2622 # 请替换为实际的签名密钥