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
01990363
Commit
01990363
authored
Jun 08, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回空
parent
6ac9fe0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
+8
-1
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
View file @
01990363
...
@@ -2353,6 +2353,14 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
...
@@ -2353,6 +2353,14 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
if
(
userLoginInfoDto
==
null
||
StringUtils
.
isBlank
(
userLoginInfoDto
.
getMemberId
()))
{
if
(
userLoginInfoDto
==
null
||
StringUtils
.
isBlank
(
userLoginInfoDto
.
getMemberId
()))
{
return
ResponseUtil
.
error
(
ResponseResult
.
NOT_LOGIN
);
return
ResponseUtil
.
error
(
ResponseResult
.
NOT_LOGIN
);
}
}
List
<
RecentGoodsInfoVo
>
recentGoodsInfoVoList
=
new
ArrayList
<>();
if
(
null
==
quickOrderInterval
||
"0"
.
equals
(
quickOrderInterval
))
{
return
ResponseUtil
.
success
(
recentGoodsInfoVoList
);
}
queryOrderVo
.
setStartDate
(
DateUtil
.
convert2String
(
DateUtil
.
addDays
(
new
Date
(),
-
Integer
.
valueOf
(
quickOrderInterval
)),
"yyyy-MM-dd"
));
queryOrderVo
.
setStartDate
(
DateUtil
.
convert2String
(
DateUtil
.
addDays
(
new
Date
(),
-
Integer
.
valueOf
(
quickOrderInterval
)),
"yyyy-MM-dd"
));
queryOrderVo
.
setEndDate
(
DateUtil
.
convert2String
(
new
Date
(),
"yyyy-MM-dd"
));
queryOrderVo
.
setEndDate
(
DateUtil
.
convert2String
(
new
Date
(),
"yyyy-MM-dd"
));
queryOrderVo
.
setQueryOrderStatus
(
Arrays
.
asList
(
OldOrderStatus
.
COMPLETE
.
getCode
()));
queryOrderVo
.
setQueryOrderStatus
(
Arrays
.
asList
(
OldOrderStatus
.
COMPLETE
.
getCode
()));
...
@@ -2406,7 +2414,6 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
...
@@ -2406,7 +2414,6 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
return
ResponseUtil
.
error
(
ResponseResult
.
SUCCESS
.
getCode
(),
"查询订单数量为0"
);
return
ResponseUtil
.
error
(
ResponseResult
.
SUCCESS
.
getCode
(),
"查询订单数量为0"
);
}
}
List
<
RecentGoodsInfoVo
>
recentGoodsInfoVoList
=
new
ArrayList
<>();
for
(
QueryOrdersResponse
.
DataBean
.
OrderBean
.
ProductBean
o
:
queryOrderResponse
.
getData
().
getOrders
().
get
(
0
).
getProductList
())
{
for
(
QueryOrdersResponse
.
DataBean
.
OrderBean
.
ProductBean
o
:
queryOrderResponse
.
getData
().
getOrders
().
get
(
0
).
getProductList
())
{
if
(
ProductTypeEnum
.
getVirtualProductType
().
contains
(
o
.
getProductType
()))
{
if
(
ProductTypeEnum
.
getVirtualProductType
().
contains
(
o
.
getProductType
()))
{
continue
;
continue
;
...
...
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