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
f0468699
Commit
f0468699
authored
May 24, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://36.40.66.175:5000/moa/jxdj_zx/amos-boot-zx-biz
into developer
parents
9bfb81c7
4d2f0a25
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
JpInverterServiceImpl.java
...t/module/hygf/biz/service/impl/JpInverterServiceImpl.java
+18
-6
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/JpInverterServiceImpl.java
View file @
f0468699
...
...
@@ -26,6 +26,9 @@ import org.typroject.tyboot.core.foundation.utils.Bean;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -118,7 +121,8 @@ public class JpInverterServiceImpl extends BaseService<JpInverterDto, JpInverter
String
key1
=
treeParam
.
get
(
"key"
).
toString
();
if
(
treeParam
.
get
(
"key"
).
toString
().
startsWith
(
"acc"
)||
treeParam
.
get
(
"key"
).
toString
().
startsWith
(
"acv"
)||
treeParam
.
get
(
"key"
).
toString
().
startsWith
(
"pv"
)){
key1
=
treeParam
.
get
(
"key"
).
toString
().
replace
(
"_"
,
""
);
}
value
.
add
(
obj
.
get
(
key1
).
toString
());
}
value
.
add
(
obj
.
get
(
key1
).
toString
());
}
treeParam
.
put
(
"data"
,
value
);
}
...
...
@@ -132,11 +136,19 @@ public class JpInverterServiceImpl extends BaseService<JpInverterDto, JpInverter
@UserLimits
public
Page
<
TdHYGFInverterDayGenerate
>
jpInverterDayReport
(
int
current
,
int
size
,
String
time
,
List
<
String
>
sncodes
,
List
<
String
>
stationIds
)
{
Page
<
TdHYGFInverterDayGenerate
>
tdHYGFInverterDayGeneratePage
=
new
Page
<>();
Date
date
=
DateUtil
.
parse
(
time
,
"yyyy-MM-dd"
);
Date
timeStart
=
DateUtils
.
dateAddHours
(
date
,
-
8
);
Date
tiemEnd
=
DateUtils
.
dateAddHours
(
date
,
16
);
String
startTime
=
DateUtil
.
format
(
timeStart
,
"yyyy-MM-dd HH:mm:ss"
);
String
endTime
=
DateUtil
.
format
(
tiemEnd
,
"yyyy-MM-dd HH:mm:ss"
);
// Date date = DateUtil.parse(time, "yyyy-MM-dd");
// Date timeStart = DateUtils.dateAddHours(date, -8);
// Date tiemEnd = DateUtils.dateAddHours(date, 16);
// String startTime = DateUtil.format(timeStart, "yyyy-MM-dd HH:mm:ss");
// String endTime = DateUtil.format(tiemEnd, "yyyy-MM-dd HH:mm:ss");
CharSequence
time1
=
time
+
" 00:00:00"
;
CharSequence
time2
=
time
+
" 23:59:59"
;
DateTimeFormatter
df
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
);
String
startTime
=
DateUtil
.
format
(
LocalDateTime
.
parse
(
time1
,
df
),
"yyyy-MM-dd HH:mm:ss"
);
String
endTime
=
DateUtil
.
format
(
LocalDateTime
.
parse
(
time2
,
df
),
"yyyy-MM-dd HH:mm:ss"
);
QueryWrapper
queryWrapper
=
new
QueryWrapper
<
TdHYGFInverterDayGenerate
>()
.
ge
(
"created_time"
,
startTime
)
.
le
(
"created_time"
,
endTime
);
...
...
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