Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
dcc9498f
Commit
dcc9498f
authored
May 19, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
休整时间溢出问题
parent
c54383f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ApiFlowController.java
...h-admin/src/main/java/com/byit/api/ApiFlowController.java
+1
-0
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+6
-2
No files found.
byit-myth-admin/src/main/java/com/byit/api/ApiFlowController.java
View file @
dcc9498f
...
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
...
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
dcc9498f
package
com
.
byit
.
service
.
impl
;
package
com
.
byit
.
service
.
impl
;
import
cn.hutool.core.date.DateUnit
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.byit.dto.api.DeleteDto
;
import
com.byit.dto.api.DeleteDto
;
...
@@ -679,9 +681,11 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -679,9 +681,11 @@ public class ApiFlowServiceImpl implements ApiFlowService {
ValidationUtil
.
dataNotNull
(
endTime
,
"结束时间不允许为空!"
);
ValidationUtil
.
dataNotNull
(
endTime
,
"结束时间不允许为空!"
);
ValidationUtil
.
isTrueValidation
(
String
.
valueOf
(
startTime
).
length
()
<
13
||
String
.
valueOf
(
endTime
).
length
()
<
13
,
"时间格式必须是毫秒"
);
ValidationUtil
.
isTrueValidation
(
String
.
valueOf
(
startTime
).
length
()
<
13
||
String
.
valueOf
(
endTime
).
length
()
<
13
,
"时间格式必须是毫秒"
);
Date
startDate
=
new
Date
(
startTime
);
Date
endtDate
=
new
Date
(
endTime
);
long
between
=
DateUtil
.
between
(
startDate
,
endtDate
,
DateUnit
.
DAY
);
//TODO 最长不能超过60天
//TODO 最长不能超过60天
ValidationUtil
.
isTrueValidation
(
endTime
-
startTime
>
60
*
24
*
60
*
60
*
100
0
,
"查询时间最长为60天!"
);
ValidationUtil
.
isTrueValidation
(
between
>
6
0
,
"查询时间最长为60天!"
);
//获取工作空间名称
//获取工作空间名称
String
workspaceName
=
jsonObject
.
getString
(
"workspaceName"
);
String
workspaceName
=
jsonObject
.
getString
(
"workspaceName"
);
...
...
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