Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3e23c2e7
authored
Jul 04, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-dingwf-0715' into develop
2 parents
b5fd74c4
6a5c493a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderCreateServiceImpl.java
project-order/src/main/resources/application.yaml
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderCreateServiceImpl.java
View file @
3e23c2e
...
@@ -89,7 +89,8 @@ public class OrderCreateServiceImpl implements OrderCreateService {
...
@@ -89,7 +89,8 @@ public class OrderCreateServiceImpl implements OrderCreateService {
entity
.
setId
(
IdUtil
.
getSnowflake
().
nextIdStr
());
entity
.
setId
(
IdUtil
.
getSnowflake
().
nextIdStr
());
String
orderId
=
req
.
getOrderId
();
String
orderId
=
req
.
getOrderId
();
if
(
StringUtils
.
isEmpty
(
orderId
))
{
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
.
setOrderId
(
orderId
);
entity
.
setName
(
req
.
getName
());
entity
.
setName
(
req
.
getName
());
...
...
project-order/src/main/resources/application.yaml
View file @
3e23c2e
...
@@ -26,7 +26,7 @@ spring:
...
@@ -26,7 +26,7 @@ spring:
# - optional:nacos:datasource-config.yaml
# - optional:nacos:datasource-config.yaml
datasource
:
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
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
username
:
root
password
:
123456
password
:
123456
type
:
com.alibaba.druid.pool.DruidDataSource
type
:
com.alibaba.druid.pool.DruidDataSource
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment