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
7c64b560
Commit
7c64b560
authored
Nov 27, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
789f9d37
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
17 deletions
+22
-17
TdHYGFInverterDayGenerate.java
...oot/module/hygf/api/entity/TdHYGFInverterDayGenerate.java
+8
-8
JpStationMapper.xml
...f-api/src/main/resources/mapper/mysql/JpStationMapper.xml
+1
-1
TdHygfJpInverterWarnController.java
...e/hygf/biz/controller/TdHygfJpInverterWarnController.java
+12
-7
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/TdHYGFInverterDayGenerate.java
View file @
7c64b560
...
...
@@ -80,42 +80,42 @@ public class TdHYGFInverterDayGenerate implements Serializable {
/**
* 交流电压1
*/
@ExcelProperty
(
"交流电压
1
(V)"
)
@ExcelProperty
(
"交流电压
U
(V)"
)
private
Double
dcv1
;
/**
* 交流电压2
*/
@ExcelProperty
(
"交流电压
2
(V)"
)
@ExcelProperty
(
"交流电压
V
(V)"
)
private
Double
dcv2
;
/**
* 交流电压3
*/
@ExcelProperty
(
"交流电压
3
(V)"
)
@ExcelProperty
(
"交流电压
W
(V)"
)
private
Double
dcv3
;
/**
* 交流电压4
*/
@Excel
Property
(
"交流电压4(V)"
)
@Excel
Ignore
private
Double
dcv4
;
/**
* 交流电流1
*/
@ExcelProperty
(
"交流电流
1
(A)"
)
@ExcelProperty
(
"交流电流
U
(A)"
)
private
Double
dcc1
;
/**
* 交流电流2
*/
@ExcelProperty
(
"交流电流
2
(A)"
)
@ExcelProperty
(
"交流电流
V
(A)"
)
private
Double
dcc2
;
/**
* 交流电流3
*/
@ExcelProperty
(
"交流电流
3
(A)"
)
@ExcelProperty
(
"交流电流
W
(A)"
)
private
Double
dcc3
;
/**
* 交流电流4
*/
@Excel
Property
(
"交流电流4(A)"
)
@Excel
Ignore
private
Double
dcc4
;
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
7c64b560
...
...
@@ -178,7 +178,7 @@
<if
test=
"dto.area!=null"
>
and hygf_jp_station.area like concat(concat("%",#{dto.area}),"%")
</if>
<if
test=
"dto.thirdStationIds!=null"
>
<if
test=
"dto.thirdStationIds!=null
and dto.thirdStationIds.size()> 0
"
>
and hygf_jp_station.third_station_id in
<foreach
collection=
"dto.thirdStationIds"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpInverterWarnController.java
View file @
7c64b560
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserLimits
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpStationDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpPersonStation
;
...
...
@@ -17,10 +18,9 @@ import io.swagger.annotations.Api;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.TdHygfJpInverterWarnServiceImpl
;
...
...
@@ -252,7 +252,7 @@ public class TdHygfJpInverterWarnController extends BaseController {
Page
<
TdHygfJpInverterWarnDto
>
result
=
new
Page
<>();
JpStationDto
reviewDto
=
new
JpStationDto
();
Map
<
String
,
String
>
nameMaps
=
new
HashMap
<>();
if
(
null
!=
stationName
){
if
(
null
!=
stationName
&&
stationName
!=
""
){
reviewDto
.
setName
(
stationName
);
}
List
<
JpStation
>
jpStation
=
jpStationMapper
.
getJpStation
(
reviewDto
);
...
...
@@ -264,8 +264,13 @@ public class TdHygfJpInverterWarnController extends BaseController {
String
startTime
=
""
;
String
endTime
=
""
;
if
(
null
!=
time
){
startTime
=
time
.
get
(
0
);
endTime
=
time
.
get
(
1
);
try
{
startTime
=
String
.
valueOf
(
DateUtils
.
dateParse
(
time
.
get
(
0
),
null
).
getTime
());
endTime
=
String
.
valueOf
(
DateUtils
.
dateParse
(
time
.
get
(
1
),
null
).
getTime
());
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
}
if
(
StringUtils
.
isNotEmpty
(
snCode
)){
snCode
=
'%'
+
snCode
+
'%'
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/JpStationServiceImpl.java
View file @
7c64b560
...
...
@@ -449,7 +449,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setState
(
jpStation
.
getState
());
hd
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setFullhour
(
Double
.
valueOf
(
String
.
format
(
"%.2f"
,
jpStation
.
getAccumulatedPower
()
/
jpStation
.
getCapacity
())));
hd
.
setFullhour
(
Double
.
valueOf
(
String
.
format
(
"%.2f"
,
jpStation
.
getAccumulatedPower
()
*
1000
/
jpStation
.
getRatedPower
())));
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setCumulativeIncome
(
jpStation
.
getCumulativeIncome
());
ld
.
add
(
hd
);
...
...
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