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
791ef37b
Commit
791ef37b
authored
Nov 03, 2020
by
刘鹏飞
Browse files
Options
Browse Files
Download
Plain Diff
订单退款时间则增加当天时间判断
parents
71bc013d
98c23583
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
assortment-ordercenter-sdk/pom.xml
+2
-2
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
+6
-0
order-application-service/pom.xml
+2
-2
No files found.
assortment-ordercenter-sdk/pom.xml
View file @
791ef37b
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<version>
2.0.
20
-SNAPSHOT
</version>
<version>
2.0.
18
-SNAPSHOT
</version>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<dependency>
<dependency>
<groupId>
com.freemud.application.service.sdk
</groupId>
<groupId>
com.freemud.application.service.sdk
</groupId>
<artifactId>
storecenter-sdk
</artifactId>
<artifactId>
storecenter-sdk
</artifactId>
<version>
3.
2.9-SNAPSHOT
</version>
<version>
3.
1.9.RELEASE
</version>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
View file @
791ef37b
...
@@ -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
;
...
@@ -576,7 +577,12 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
...
@@ -576,7 +577,12 @@ 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
);
}
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
);
...
...
order-application-service/pom.xml
View file @
791ef37b
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<dependency>
<dependency>
<groupId>
cn.freemud
</groupId>
<groupId>
cn.freemud
</groupId>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<version>
2.0.
20
-SNAPSHOT
</version>
<version>
2.0.
18
-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.freemud.application.service.sdk
</groupId>
<groupId>
com.freemud.application.service.sdk
</groupId>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<dependency>
<dependency>
<groupId>
com.freemud.application.service.sdk
</groupId>
<groupId>
com.freemud.application.service.sdk
</groupId>
<artifactId>
storecenter-sdk
</artifactId>
<artifactId>
storecenter-sdk
</artifactId>
<version>
3.
2.9-SNAPSHOT
</version>
<version>
3.
1.9.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.freemud
</groupId>
<groupId>
cn.freemud
</groupId>
...
...
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