Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
b0e3fedb
Commit
b0e3fedb
authored
Aug 06, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改拼接参数
parent
de7c0b1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
TdInfoQueryController.java
...ot/module/jxiop/biz/controller/TdInfoQueryController.java
+24
-24
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TdInfoQueryController.java
View file @
b0e3fedb
...
@@ -104,13 +104,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -104,13 +104,13 @@ public class TdInfoQueryController extends BaseController {
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
String
startDate
=
dto
.
getStartDate
();
String
startDate
=
dto
.
getStartDate
();
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
startDate
=
startDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
startDate
=
startDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
startDate
=
startDate
+
":
"
+
ss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00"
;
}
}
Date
date
=
DateUtils
.
dateParse
(
startDate
,
DATE_TIME_PATTERN
);
Date
date
=
DateUtils
.
dateParse
(
startDate
,
DATE_TIME_PATTERN
);
...
@@ -121,13 +121,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -121,13 +121,13 @@ public class TdInfoQueryController extends BaseController {
String
endDate
=
dto
.
getEndDate
();
String
endDate
=
dto
.
getEndDate
();
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
endDate
=
endDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
endDate
=
endDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
endDate
=
endDate
+
":
"
+
ss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00"
;
}
}
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
...
@@ -204,13 +204,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -204,13 +204,13 @@ public class TdInfoQueryController extends BaseController {
String
startDate
=
dto
.
getStartDate
();
String
startDate
=
dto
.
getStartDate
();
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
startDate
=
startDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
startDate
=
startDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
startDate
=
startDate
+
":
"
+
ss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00"
;
}
}
...
@@ -222,13 +222,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -222,13 +222,13 @@ public class TdInfoQueryController extends BaseController {
String
endDate
=
dto
.
getEndDate
();
String
endDate
=
dto
.
getEndDate
();
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
endDate
=
endDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
endDate
=
endDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
endDate
=
endDate
+
":
"
+
ss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00"
;
}
}
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
...
@@ -288,13 +288,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -288,13 +288,13 @@ public class TdInfoQueryController extends BaseController {
String
startDate
=
dto
.
getStartDate
();
String
startDate
=
dto
.
getStartDate
();
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
startDate
=
startDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
startDate
=
startDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
startDate
=
startDate
+
":
"
+
ss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00"
;
}
}
...
@@ -306,13 +306,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -306,13 +306,13 @@ public class TdInfoQueryController extends BaseController {
String
endDate
=
dto
.
getEndDate
();
String
endDate
=
dto
.
getEndDate
();
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
endDate
=
endDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
endDate
=
endDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
endDate
=
endDate
+
":
"
+
ss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00"
;
}
}
...
@@ -372,13 +372,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -372,13 +372,13 @@ public class TdInfoQueryController extends BaseController {
String
startDate
=
dto
.
getStartDate
();
String
startDate
=
dto
.
getStartDate
();
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
startDate
=
startDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
startDate
=
startDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
startDate
=
startDate
+
":
"
+
ss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00"
;
}
}
Date
date
=
DateUtils
.
dateParse
(
startDate
,
DATE_TIME_PATTERN
);
Date
date
=
DateUtils
.
dateParse
(
startDate
,
DATE_TIME_PATTERN
);
...
@@ -389,13 +389,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -389,13 +389,13 @@ public class TdInfoQueryController extends BaseController {
String
endDate
=
dto
.
getEndDate
();
String
endDate
=
dto
.
getEndDate
();
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
endDate
=
endDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
endDate
=
endDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
endDate
=
endDate
+
":
"
+
ss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00"
;
}
}
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
...
...
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