feat(react-web-next): 新增.editorconfig和.prettierrc配置文件,添加public/.gitkeep占位文件
This commit is contained in:
@@ -5,6 +5,8 @@ import com.central.search.annotation.EnableSearchClient;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
/**
|
||||
@@ -14,6 +16,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
@EnableSearchClient
|
||||
@EnableTransactionManagement
|
||||
@EnableFeignInterceptor
|
||||
@EnableFeignClients(basePackages = {"com.central.**"})
|
||||
@SpringBootApplication
|
||||
public class OrderCenterApp {
|
||||
public static void main(String[] args) {
|
||||
|
||||
+2
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.central.common.datascope.annotation.IgnoreTenantScope;
|
||||
import com.central.common.exception.BusinessException;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.order.constants.EditTaskStatus;
|
||||
@@ -166,6 +167,7 @@ public class EditTaskServiceImpl extends ServiceImpl<EditTaskMapper, EditTask> i
|
||||
}
|
||||
|
||||
@Override
|
||||
@IgnoreTenantScope
|
||||
public List<EditTask> getProcessingTasks() {
|
||||
try {
|
||||
LambdaQueryWrapper<EditTask> wrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
@@ -1,150 +1,150 @@
|
||||
spring:
|
||||
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}/order-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
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath:/mapper/*Mapper.xml
|
||||
#实体扫描,多个package用逗号或者分号分隔
|
||||
typeAliasesPackage: com.central.order.model
|
||||
# configuration:
|
||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: auto
|
||||
|
||||
springdoc:
|
||||
group-configs:
|
||||
- group: 'default'
|
||||
paths-to-match: '/**'
|
||||
packages-to-scan: com.central.order.controller
|
||||
|
||||
knife4j:
|
||||
enable: true
|
||||
setting:
|
||||
swagger-model-name: 订单中心接口文档
|
||||
zlt:
|
||||
#多租户配置
|
||||
tenant:
|
||||
enable: true
|
||||
ignoreTables:
|
||||
- edit_task
|
||||
- home_carousel
|
||||
- sys_message
|
||||
- wx_message_record
|
||||
- wx_subscribe_status
|
||||
- video_template
|
||||
- profit_sharing
|
||||
- order_statistics
|
||||
- orders_refund
|
||||
ignoreSqls:
|
||||
# 移除所有ignoreSqls配置,让所有SQL都经过租户过滤处理
|
||||
# 这样webApp租户的特殊处理逻辑才能生效
|
||||
# 该接口是白名单接口查询中的逻辑,来例如:机库直接创建数据没有携带租户ID
|
||||
- com.central.order.mapper.OrderMapper.getOrderByNumber
|
||||
- com.central.order.mapper.OrderMapper.getOrdersByStatus
|
||||
- com.central.order.mapper.RefundMapper.selectOne
|
||||
# update和delete类型的操作mybatisPlus不支持,原因是数据隔离级别
|
||||
# - com.central.order.mapper.OrderMapper.updateOrderStatus
|
||||
# 微信支付商户号
|
||||
tencent:
|
||||
merchantId: ${zlt.wxpay.merchantId}
|
||||
# 微信支付商户密钥
|
||||
merchantSerialNumber: ${zlt.wxpay.merchantSerialNumber}
|
||||
# 微信支付申请的应用ID
|
||||
appId: ${zlt.wxpay.appId}
|
||||
# 微信支付异步通知地址(需外网可访问且与微信支付平台配置一致)
|
||||
notifyUrl: ${zlt.wxpay.notifyUrl}
|
||||
# 微信支付API证书路径(如果需要证书的情况下,这里填写证书相关文件的路径)
|
||||
privateKeyPath: ${zlt.wxpay.privateKeyPath}
|
||||
apiV3Key: ${zlt.wxpay.apiV3Key}
|
||||
appSecret: ${zlt.security.tencent.app-secret}
|
||||
accessTokenUrl: ${zlt.security.tencent.accessTokenUrl}
|
||||
getwxacodeUrl: https://api.weixin.qq.com/wxa/getwxacode?access_token=
|
||||
# 微信退款通知地址
|
||||
refund-notify-url: ${zlt.wxrefund.notifyUrl}
|
||||
notification:
|
||||
app-id:
|
||||
app-secret:
|
||||
token:
|
||||
encoding-aes-key:
|
||||
pay:
|
||||
profit-sharing:
|
||||
enabled: true
|
||||
max-retry-times: 3
|
||||
retry-interval: 300000
|
||||
platform-rate: 30
|
||||
timeout: 1800000
|
||||
async-enabled: true
|
||||
async-pool-size: 5
|
||||
api:
|
||||
profit-sharing-url: https://api.mch.weixin.qq.com/v3/profitsharing/orders
|
||||
|
||||
|
||||
file:
|
||||
oss-url: goflyapp.oss-cn-beijing.aliyuncs.com
|
||||
cdn-url: cdn.goflytec.com
|
||||
style: image/resize,m_mfit,w_218,h_288
|
||||
#审计日志
|
||||
# audit-log:
|
||||
#spring:
|
||||
# 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}/order-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
|
||||
#
|
||||
#mybatis-plus:
|
||||
# mapper-locations: classpath:/mapper/*Mapper.xml
|
||||
# #实体扫描,多个package用逗号或者分号分隔
|
||||
# typeAliasesPackage: com.central.order.model
|
||||
## configuration:
|
||||
## log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
# global-config:
|
||||
# db-config:
|
||||
# id-type: auto
|
||||
#
|
||||
#springdoc:
|
||||
# group-configs:
|
||||
# - group: 'default'
|
||||
# paths-to-match: '/**'
|
||||
# packages-to-scan: com.central.order.controller
|
||||
#
|
||||
#knife4j:
|
||||
# enable: true
|
||||
# setting:
|
||||
# swagger-model-name: 订单中心接口文档
|
||||
#zlt:
|
||||
# #多租户配置
|
||||
# tenant:
|
||||
# enable: true
|
||||
# ignoreTables:
|
||||
# - edit_task
|
||||
# - home_carousel
|
||||
# - sys_message
|
||||
# - wx_message_record
|
||||
# - wx_subscribe_status
|
||||
# - video_template
|
||||
# - profit_sharing
|
||||
# - order_statistics
|
||||
# - orders_refund
|
||||
# ignoreSqls:
|
||||
# # 移除所有ignoreSqls配置,让所有SQL都经过租户过滤处理
|
||||
# # 这样webApp租户的特殊处理逻辑才能生效
|
||||
# # 该接口是白名单接口查询中的逻辑,来例如:机库直接创建数据没有携带租户ID
|
||||
# - com.central.order.mapper.OrderMapper.getOrderByNumber
|
||||
# - com.central.order.mapper.OrderMapper.getOrdersByStatus
|
||||
# - com.central.order.mapper.RefundMapper.selectOne
|
||||
# # update和delete类型的操作mybatisPlus不支持,原因是数据隔离级别
|
||||
## - com.central.order.mapper.OrderMapper.updateOrderStatus
|
||||
# # 微信支付商户号
|
||||
#tencent:
|
||||
# merchantId: ${zlt.wxpay.merchantId}
|
||||
## 微信支付商户密钥
|
||||
# merchantSerialNumber: ${zlt.wxpay.merchantSerialNumber}
|
||||
## 微信支付申请的应用ID
|
||||
# appId: ${zlt.wxpay.appId}
|
||||
## 微信支付异步通知地址(需外网可访问且与微信支付平台配置一致)
|
||||
# notifyUrl: ${zlt.wxpay.notifyUrl}
|
||||
## 微信支付API证书路径(如果需要证书的情况下,这里填写证书相关文件的路径)
|
||||
# privateKeyPath: ${zlt.wxpay.privateKeyPath}
|
||||
# apiV3Key: ${zlt.wxpay.apiV3Key}
|
||||
# appSecret: ${zlt.security.tencent.app-secret}
|
||||
# accessTokenUrl: ${zlt.security.tencent.accessTokenUrl}
|
||||
# getwxacodeUrl: https://api.weixin.qq.com/wxa/getwxacode?access_token=
|
||||
## 微信退款通知地址
|
||||
# refund-notify-url: ${zlt.wxrefund.notifyUrl}
|
||||
# notification:
|
||||
# app-id:
|
||||
# app-secret:
|
||||
# token:
|
||||
# encoding-aes-key:
|
||||
# pay:
|
||||
# profit-sharing:
|
||||
# enabled: true
|
||||
# max-retry-times: 3
|
||||
# retry-interval: 300000
|
||||
# platform-rate: 30
|
||||
# timeout: 1800000
|
||||
# async-enabled: true
|
||||
# async-pool-size: 5
|
||||
# api:
|
||||
# profit-sharing-url: https://api.mch.weixin.qq.com/v3/profitsharing/orders
|
||||
#
|
||||
#
|
||||
#file:
|
||||
# oss-url: goflyapp.oss-cn-beijing.aliyuncs.com
|
||||
# cdn-url: cdn.goflytec.com
|
||||
# style: image/resize,m_mfit,w_218,h_288
|
||||
# #审计日志
|
||||
## audit-log:
|
||||
## enabled: true
|
||||
## log-type: db
|
||||
## datasource:
|
||||
## driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
## jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/logger-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
||||
## username: ${zlt.datasource.username}
|
||||
## password: ${zlt.datasource.password}
|
||||
#
|
||||
#aliyun:
|
||||
# ims:
|
||||
# oss-endpoint: oss-cn-beijing.aliyuncs.com
|
||||
# access-key-id: LTAI5tSNV1RvexXpMMCZhxSe
|
||||
# access-key-secret: XocJRWU8emwjjvYLTrc04l91VZMkQK
|
||||
# endpoint: ice.cn-beijing.aliyuncs.com
|
||||
# region: cn-beijing
|
||||
# bucket: goflyapp # 使用实际存在的bucket名称
|
||||
#
|
||||
#wx:
|
||||
# mp:
|
||||
# app-id: wx0ea85b13966d88e1 # 服务号应用id
|
||||
# secret: a90637566b2b73f41f8b1dabd64dc32b # 服务号应用密钥
|
||||
# template-id:
|
||||
# payment-success: uscmjgLdw0cKBRq8vFyCOPbYj7p-fHuEOIhFwwIAe4A # 支付成功通知模板ID
|
||||
# video-complete: TEMPLATE_ID_2 # 视频完成通知模板ID
|
||||
# video-failure: TEMPLATE_ID_3 # 视频失败通知模板ID
|
||||
#
|
||||
# mini:
|
||||
# app-id: ${zlt.wxpay.appId}
|
||||
# secret: ${zlt.security.tencent.app-secret}
|
||||
# template:
|
||||
# pay-success: nSy7NGq1443YCfhgR81fgkeOVv9cSM5Ysp3nMoQYVpc
|
||||
# service-process: rgQCI3fMKPpgO-9nO3TzP-omohraGxX2suVioq7hQhk
|
||||
# activity-start: lgwkRnbdDc3mEwk3RMob43LpLHnLfglZtTkbFRPsPCA
|
||||
# order-complete: ZeIlAA6ImQLxBiLmo-53lM7wkL4KnuKKTGKWBZwYAdM
|
||||
# video-edit-complete: IXpL-Voztm3GM-zFj3sxA39qy8oRtAcxTiT7_Qsyz9Q
|
||||
#
|
||||
## 订单中心CDN预热配置
|
||||
#cdn:
|
||||
# prefetch:
|
||||
# # 是否启用CDN预热功能
|
||||
# enabled: true
|
||||
# log-type: db
|
||||
# datasource:
|
||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/logger-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
||||
# username: ${zlt.datasource.username}
|
||||
# password: ${zlt.datasource.password}
|
||||
|
||||
aliyun:
|
||||
ims:
|
||||
oss-endpoint: oss-cn-beijing.aliyuncs.com
|
||||
access-key-id: LTAI5tSNV1RvexXpMMCZhxSe
|
||||
access-key-secret: XocJRWU8emwjjvYLTrc04l91VZMkQK
|
||||
endpoint: ice.cn-beijing.aliyuncs.com
|
||||
region: cn-beijing
|
||||
bucket: goflyapp # 使用实际存在的bucket名称
|
||||
|
||||
wx:
|
||||
mp:
|
||||
app-id: wx0ea85b13966d88e1 # 服务号应用id
|
||||
secret: a90637566b2b73f41f8b1dabd64dc32b # 服务号应用密钥
|
||||
template-id:
|
||||
payment-success: uscmjgLdw0cKBRq8vFyCOPbYj7p-fHuEOIhFwwIAe4A # 支付成功通知模板ID
|
||||
video-complete: TEMPLATE_ID_2 # 视频完成通知模板ID
|
||||
video-failure: TEMPLATE_ID_3 # 视频失败通知模板ID
|
||||
|
||||
mini:
|
||||
app-id: ${zlt.wxpay.appId}
|
||||
secret: ${zlt.security.tencent.app-secret}
|
||||
template:
|
||||
pay-success: nSy7NGq1443YCfhgR81fgkeOVv9cSM5Ysp3nMoQYVpc
|
||||
service-process: rgQCI3fMKPpgO-9nO3TzP-omohraGxX2suVioq7hQhk
|
||||
activity-start: lgwkRnbdDc3mEwk3RMob43LpLHnLfglZtTkbFRPsPCA
|
||||
order-complete: ZeIlAA6ImQLxBiLmo-53lM7wkL4KnuKKTGKWBZwYAdM
|
||||
video-edit-complete: IXpL-Voztm3GM-zFj3sxA39qy8oRtAcxTiT7_Qsyz9Q
|
||||
|
||||
# 订单中心CDN预热配置
|
||||
cdn:
|
||||
prefetch:
|
||||
# 是否启用CDN预热功能
|
||||
enabled: true
|
||||
# 每批次预热的文件数量
|
||||
batch-size: 50
|
||||
# 预热区域:domestic-仅中国内地,overseas-全球(不包含中国内地),不传-全球
|
||||
area: domestic
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
com.central.order.controller.OrderFileController: DEBUG
|
||||
|
||||
# 携程API配置
|
||||
ctrip:
|
||||
aes:
|
||||
key: 087b36ad0dff7942 # 请替换为实际的AES密钥
|
||||
iv: 750e15a31356a99d # 请替换为实际的AES IV
|
||||
sign:
|
||||
key: ce6033ae31124ec5cdab3d2bc79f2622 # 请替换为实际的签名密钥
|
||||
# # 每批次预热的文件数量
|
||||
# batch-size: 50
|
||||
# # 预热区域:domestic-仅中国内地,overseas-全球(不包含中国内地),不传-全球
|
||||
# area: domestic
|
||||
#
|
||||
## 日志配置
|
||||
#logging:
|
||||
# level:
|
||||
# com.central.order.controller.OrderFileController: DEBUG
|
||||
#
|
||||
## 携程API配置
|
||||
#ctrip:
|
||||
# aes:
|
||||
# key: 087b36ad0dff7942 # 请替换为实际的AES密钥
|
||||
# iv: 750e15a31356a99d # 请替换为实际的AES IV
|
||||
# sign:
|
||||
# key: ce6033ae31124ec5cdab3d2bc79f2622 # 请替换为实际的签名密钥
|
||||
|
||||
@@ -4,10 +4,10 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: order-center
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
ip: 81.70.164.178
|
||||
# cloud:
|
||||
# nacos:
|
||||
# discovery:
|
||||
# ip: 81.70.164.178
|
||||
# cloud:
|
||||
# nacos:
|
||||
# discovery:
|
||||
|
||||
Reference in New Issue
Block a user