Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
82b2fa84
Commit
82b2fa84
authored
Oct 26, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改户用光伏监控页面bug
parent
1bb12800
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
TdHygfJpInverterWarnMapper.xml
.../resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
+2
-0
MonthPowerServiceImpl.java
...t/module/hygf/biz/service/impl/MonthPowerServiceImpl.java
+1
-1
TdHygfJpCollectorHistoryServiceImpl.java
...biz/service/impl/TdHygfJpCollectorHistoryServiceImpl.java
+3
-3
TdHygfJpInvertorElecHistoryServiceImpl.java
.../service/impl/TdHygfJpInvertorElecHistoryServiceImpl.java
+4
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
View file @
82b2fa84
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
</foreach>
</foreach>
</if>
</if>
</where>
</where>
order by start_time DESC
</select>
</select>
<select
id=
"getByTime"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto"
>
<select
id=
"getByTime"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto"
>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/MonthPowerServiceImpl.java
View file @
82b2fa84
...
@@ -65,7 +65,7 @@ public class MonthPowerServiceImpl extends BaseService<MonthPowerDto,MonthPower,
...
@@ -65,7 +65,7 @@ public class MonthPowerServiceImpl extends BaseService<MonthPowerDto,MonthPower,
for
(
MonthPower
monthPower
:
list
)
{
for
(
MonthPower
monthPower
:
list
)
{
for
(
MonthPower
power
:
listdday
)
{
for
(
MonthPower
power
:
listdday
)
{
if
(
monthPower
.
getThirdStationId
().
equals
(
power
.
getThirdStationId
())){
if
(
monthPower
.
getThirdStationId
().
equals
(
power
.
getThirdStationId
())){
power
.
setCreatedTime
(
monthP
ower
.
getCreatedTime
());
monthPower
.
setCreatedTime
(
p
ower
.
getCreatedTime
());
}
else
{
}
else
{
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpCollectorHistoryServiceImpl.java
View file @
82b2fa84
...
@@ -55,7 +55,7 @@ public class TdHygfJpCollectorHistoryServiceImpl
...
@@ -55,7 +55,7 @@ public class TdHygfJpCollectorHistoryServiceImpl
if
(
collector
!=
null
)
{
if
(
collector
!=
null
)
{
List
<
TdHygfJpCollectorHistoryDto
>
list
=
this
.
baseMapper
.
dayList
(
collector
.
getSnCode
(),
List
<
TdHygfJpCollectorHistoryDto
>
list
=
this
.
baseMapper
.
dayList
(
collector
.
getSnCode
(),
collector
.
getThirdStationId
(),
TimeUtil
.
getStartTimeOfDay
(
day
)
-
8
*
60
*
60
*
1000
,
TimeUtil
.
getEndTimeOfDay
(
day
)-
8
*
60
*
60
*
1000
);
collector
.
getThirdStationId
(),
TimeUtil
.
getStartTimeOfDay
(
day
)
,
TimeUtil
.
getEndTimeOfDay
(
day
)
);
if
(!
list
.
isEmpty
())
{
if
(!
list
.
isEmpty
())
{
list
.
forEach
(
i
->
{
list
.
forEach
(
i
->
{
i
.
setTimeFormat
(
TimeUtil
.
minuteFormat
(
i
.
getTime
()));
i
.
setTimeFormat
(
TimeUtil
.
minuteFormat
(
i
.
getTime
()));
...
@@ -118,8 +118,8 @@ public class TdHygfJpCollectorHistoryServiceImpl
...
@@ -118,8 +118,8 @@ public class TdHygfJpCollectorHistoryServiceImpl
int
month
=
cal
.
get
(
Calendar
.
MONTH
)
+
1
;
int
month
=
cal
.
get
(
Calendar
.
MONTH
)
+
1
;
int
year
=
cal
.
get
(
Calendar
.
YEAR
);
int
year
=
cal
.
get
(
Calendar
.
YEAR
);
// 月表
// 月表
List
<
Map
<
String
,
Object
>>
monthList
=
this
.
baseMapper
.
dayToMonth
(
TimeUtil
.
getStartTimeOfDay
(
dayTime
)
-
8
*
60
*
60
*
1000
,
List
<
Map
<
String
,
Object
>>
monthList
=
this
.
baseMapper
.
dayToMonth
(
TimeUtil
.
getStartTimeOfDay
(
dayTime
),
TimeUtil
.
getEndTimeOfDay
(
dayTime
)
-
8
*
60
*
60
*
1000
);
TimeUtil
.
getEndTimeOfDay
(
dayTime
));
for
(
int
i
=
0
;
i
<
monthList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
monthList
.
size
();
i
++)
{
monthList
.
get
(
i
).
put
(
"created_time"
,
dayTime
.
getTime
()
+
i
);
monthList
.
get
(
i
).
put
(
"created_time"
,
dayTime
.
getTime
()
+
i
);
monthList
.
get
(
i
).
put
(
"day"
,
day
);
monthList
.
get
(
i
).
put
(
"day"
,
day
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpInvertorElecHistoryServiceImpl.java
View file @
82b2fa84
...
@@ -49,7 +49,7 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
...
@@ -49,7 +49,7 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
JpInverter
invertor
=
jpInvertorServiceImpl
.
getById
(
id
);
JpInverter
invertor
=
jpInvertorServiceImpl
.
getById
(
id
);
if
(
invertor
!=
null
)
{
if
(
invertor
!=
null
)
{
List
<
TdHygfJpInvertorElecHistoryDto
>
list
=
this
.
baseMapper
.
dayList
(
invertor
.
getSnCode
(),
List
<
TdHygfJpInvertorElecHistoryDto
>
list
=
this
.
baseMapper
.
dayList
(
invertor
.
getSnCode
(),
invertor
.
getThirdStationId
(),
TimeUtil
.
getStartTimeOfDay
(
day
)
-
8
*
60
*
60
*
1000
,
TimeUtil
.
getEndTimeOfDay
(
day
)-
8
*
60
*
60
*
1000
);
invertor
.
getThirdStationId
(),
TimeUtil
.
getStartTimeOfDay
(
day
)
,
TimeUtil
.
getEndTimeOfDay
(
day
)
);
if
(!
list
.
isEmpty
())
{
if
(!
list
.
isEmpty
())
{
list
.
forEach
(
i
->
{
list
.
forEach
(
i
->
{
i
.
setTimeFormat
(
TimeUtil
.
minuteFormat
(
i
.
getTime
()));
i
.
setTimeFormat
(
TimeUtil
.
minuteFormat
(
i
.
getTime
()));
...
@@ -110,8 +110,8 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
...
@@ -110,8 +110,8 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
int
month
=
cal
.
get
(
Calendar
.
MONTH
)
+
1
;
int
month
=
cal
.
get
(
Calendar
.
MONTH
)
+
1
;
int
year
=
cal
.
get
(
Calendar
.
YEAR
);
int
year
=
cal
.
get
(
Calendar
.
YEAR
);
// 月表
// 月表
List
<
Map
<
String
,
Object
>>
monthList
=
this
.
baseMapper
.
dayToMonth
(
TimeUtil
.
getStartTimeOfDay
(
dayTime
)
-
8
*
60
*
60
*
1000
,
List
<
Map
<
String
,
Object
>>
monthList
=
this
.
baseMapper
.
dayToMonth
(
TimeUtil
.
getStartTimeOfDay
(
dayTime
),
TimeUtil
.
getEndTimeOfDay
(
dayTime
)
-
8
*
60
*
60
*
1000
);
TimeUtil
.
getEndTimeOfDay
(
dayTime
));
for
(
int
i
=
0
;
i
<
monthList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
monthList
.
size
();
i
++)
{
monthList
.
get
(
i
).
put
(
"created_time"
,
dayTime
.
getTime
()
+
i
);
monthList
.
get
(
i
).
put
(
"created_time"
,
dayTime
.
getTime
()
+
i
);
monthList
.
get
(
i
).
put
(
"day"
,
day
);
monthList
.
get
(
i
).
put
(
"day"
,
day
);
...
@@ -127,7 +127,7 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
...
@@ -127,7 +127,7 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
for
(
Map
<
String
,
Object
>
map
:
monthList
)
{
for
(
Map
<
String
,
Object
>
map
:
monthList
)
{
for
(
JpInvertorElecHistoryMonthDto
jpInvertorElecHistoryMonthDto
:
listold
)
{
for
(
JpInvertorElecHistoryMonthDto
jpInvertorElecHistoryMonthDto
:
listold
)
{
if
(
map
.
get
(
"third_station_id"
).
toString
().
equals
(
jpInvertorElecHistoryMonthDto
.
getThirdStationId
())&&
map
.
get
(
"sn_code"
).
toString
().
trim
().
equals
(
jpInvertorElecHistoryMonthDto
.
getSnCode
().
trim
())&&
map
.
get
(
"day"
).
toString
().
equals
(
jpInvertorElecHistoryMonthDto
.
getDay
()))
{
if
(
map
.
get
(
"third_station_id"
).
toString
().
equals
(
jpInvertorElecHistoryMonthDto
.
getThirdStationId
()
.
trim
()
)&&
map
.
get
(
"sn_code"
).
toString
().
trim
().
equals
(
jpInvertorElecHistoryMonthDto
.
getSnCode
().
trim
())&&
map
.
get
(
"day"
).
toString
().
equals
(
jpInvertorElecHistoryMonthDto
.
getDay
()))
{
map
.
put
(
"created_time"
,
jpInvertorElecHistoryMonthDto
.
getCreatedTime
());
map
.
put
(
"created_time"
,
jpInvertorElecHistoryMonthDto
.
getCreatedTime
());
}
}
}
}
...
...
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