Commit 3e23c2e7 by 丁伟峰

Merge branch 'feature-dingwf-0715' into develop

2 parents b5fd74c4 6a5c493a
......@@ -89,7 +89,8 @@ public class OrderCreateServiceImpl implements OrderCreateService {
entity.setId(IdUtil.getSnowflake().nextIdStr());
String orderId = req.getOrderId();
if (StringUtils.isEmpty(orderId)) {
orderId = UUID.randomUUID().toString().replace("-", "");
String s = UUID.randomUUID().toString().replace("-", "");
orderId = s.substring(s.length()-9);
}
entity.setOrderId(orderId);
entity.setName(req.getName());
......
......@@ -26,7 +26,7 @@ spring:
# - optional:nacos:datasource-config.yaml
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://10.10.0.116:3306/saas_aftersale_test?serverTimezone=UTC
url: jdbc:mysql://10.10.0.116:3306/saas_aftersale_test?serverTimezone=Asia/Shanghai
username: root
password: 123456
type: com.alibaba.druid.pool.DruidDataSource
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!