Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
b903b8df
Commit
b903b8df
authored
Nov 03, 2020
by
刘鹏飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/feature/20201022-refundReform-刘鹏飞' into master
parents
5cf282d9
7c89847e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
+7
-0
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
View file @
b903b8df
...
@@ -80,6 +80,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -80,6 +80,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.context.annotation.Import
;
import
org.springframework.context.annotation.Import
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -571,7 +572,13 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
...
@@ -571,7 +572,13 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
Random
r
=
new
Random
();
Random
r
=
new
Random
();
int
minute
=
r
.
ints
(
1
,
31
).
findFirst
().
getAsInt
()
*
60000
;
int
minute
=
r
.
ints
(
1
,
31
).
findFirst
().
getAsInt
()
*
60000
;
String
today
=
DateUtil
.
getCurrentDate
(
DateUtil
.
FORMAT_YMD
);
String
today
=
DateUtil
.
getCurrentDate
(
DateUtil
.
FORMAT_YMD
);
Date
configTime
=
DateUtil
.
convert2Date
(
today
+
" "
+
timeOfRefund
,
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
);
Date
configTime
=
DateUtil
.
convert2Date
(
today
+
" "
+
timeOfRefund
,
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
);
// 判断当前时间是否已经超过门店设置的截至时间
if
(
new
Date
().
after
(
configTime
)){
today
=
DateUtil
.
convert2String
(
DateUtil
.
addDays
(
new
Date
(),
1
),
DateUtil
.
FORMAT_YMD
);
configTime
=
DateUtil
.
convert2Date
(
today
+
" "
+
timeOfRefund
,
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
);
}
Date
processingDate
=
new
Date
(
configTime
.
getTime
()
+
minute
);
Date
processingDate
=
new
Date
(
configTime
.
getTime
()
+
minute
);
String
processingStr
=
DateUtil
.
convert2String
(
processingDate
,
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
);
String
processingStr
=
DateUtil
.
convert2String
(
processingDate
,
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
);
orderTask
.
setTaskTime
(
processingStr
);
orderTask
.
setTaskTime
(
processingStr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment