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
a84e09cc
Commit
a84e09cc
authored
Jun 10, 2022
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【华莱士】需求查看过去三个月的订单
parent
220288db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+6
-10
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
a84e09cc
...
@@ -753,18 +753,14 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -753,18 +753,14 @@ public class OrderServiceImpl implements Orderservice {
if
(
endDate
==
null
)
{
if
(
endDate
==
null
)
{
return
ResponseUtil
.
error
(
ResponseResult
.
ORDER_QUERYORDER_ERROR
.
getCode
(),
"查询订单结束时间格式不正确"
);
return
ResponseUtil
.
error
(
ResponseResult
.
ORDER_QUERYORDER_ERROR
.
getCode
(),
"查询订单结束时间格式不正确"
);
}
}
if
(
isQueryEs
(
queryOrderVo
.
getQueryOrderStatus
())
&&
queryOrderEs
)
{
Date
startDateEs
=
DateUtil
.
convert2Date
(
startDateStr
,
"yyyy-MM-dd"
);
Date
checkStartDate
=
DateUtil
.
convert2Date
(
startDateStr
,
"yyyy-MM-dd"
);
Date
endDateEs
=
DateUtil
.
convert2Date
(
new
Date
(),
"yyyy-MM-dd"
);
Date
checkEndDate
=
DateUtil
.
convert2Date
(
new
Date
(),
"yyyy-MM-dd"
);
if
(
startDateEs
.
getTime
()
<
DateUtil
.
addMonths
(
endDateEs
,
-
3
).
getTime
())
{
if
(
checkStartDate
.
getTime
()
<
DateUtil
.
addMonths
(
checkEndDate
,
-
3
).
getTime
())
{
return
ResponseUtil
.
error
(
ResponseResult
.
ORDER_QUERYORDER_ERROR
.
getCode
(),
"只能查询3个月内的订单信息"
);
return
ResponseUtil
.
error
(
ResponseResult
.
ORDER_QUERYORDER_ERROR
.
getCode
(),
"只能查询3个月内的订单信息"
);
}
}
else
{
if
(
startDate
.
getTime
()
<
DateUtil
.
addMonths
(
new
Date
(),
-
4
).
getTime
())
{
return
ResponseUtil
.
error
(
ResponseResult
.
ORDER_QUERYORDER_ERROR
.
getCode
(),
"只能查询3个月内的订单信息"
);
}
}
}
String
userId
=
userLoginInfoDto
.
getMemberId
();
String
userId
=
userLoginInfoDto
.
getMemberId
();
QueryOrderDto
queryOrderDto
=
BeanUtil
.
convertBean
(
queryOrderVo
,
QueryOrderDto:
:
new
);
QueryOrderDto
queryOrderDto
=
BeanUtil
.
convertBean
(
queryOrderVo
,
QueryOrderDto:
:
new
);
queryOrderDto
.
setPartnerId
(
queryOrderVo
.
getPartnerId
());
queryOrderDto
.
setPartnerId
(
queryOrderVo
.
getPartnerId
());
...
...
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