Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ufo
/
ufo-platform
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
LUOXC
5 years ago
Commit
5c6d05f3e6a598dc0abe96874d737e04c2da3a70
1 parent
17df639a
最长查询一个月
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
order/src/main/java/com/yoho/ufo/order/service/impl/TradeBillsServiceImpl.java
web/src/main/webapp/html/billsManage/list.html
order/src/main/java/com/yoho/ufo/order/service/impl/TradeBillsServiceImpl.java
View file @
5c6d05f
...
...
@@ -217,7 +217,7 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
if
(
Objects
.
nonNull
(
req
.
getStartTime
())
&&
Objects
.
nonNull
(
req
.
getEndTime
()))
{
int
range
=
req
.
getEndTime
()
-
req
.
getStartTime
();
ServiceExceptions
.
throwServiceExceptionIf
(
range
<
0
,
"结束时间小于开始时间"
);
ServiceExceptions
.
throwServiceExceptionIf
(
range
>
3
0
*
24
*
3600
,
"时间范围最大为30
天"
);
ServiceExceptions
.
throwServiceExceptionIf
(
range
>
3
1
*
24
*
3600
,
"时间范围最大为31
天"
);
}
if
(
StringUtils
.
isBlank
(
req
.
getPayErrorCode
()))
{
...
...
web/src/main/webapp/html/billsManage/list.html
View file @
5c6d05f
...
...
@@ -185,8 +185,8 @@ function loadTradeBillsData(reload) {
if
(
startTime
>
endTime
)
{
$
.
messager
.
alert
(
"提示"
,
"开始日期不能超过结束日期"
);
return
;
}
else
if
(
endTime
-
startTime
>
7
*
24
*
3600
)
{
$
.
messager
.
alert
(
"提示"
,
"日期差不能超过7天"
);
}
else
if
(
endTime
-
startTime
>
31
*
24
*
3600
)
{
$
.
messager
.
alert
(
"提示"
,
"日期差不能超过一个月"
);
return
;
}
}
...
...
Please
register
or
login
to post a comment