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
3e2256aa
Commit
3e2256aa
authored
Nov 15, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://36.40.66.175:5000/moa/amos-boot-biz
into developer
parents
48cf193e
cc7a5d84
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
8 deletions
+34
-8
JpInverterController.java
...boot/module/hygf/biz/controller/JpInverterController.java
+25
-6
IdxBizFanHealthIndexController.java
.../jxiop/biz/controller/IdxBizFanHealthIndexController.java
+7
-1
FanWarningRecord.xml
.../src/main/resources/mapper/tdengine2/FanWarningRecord.xml
+2
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpInverterController.java
View file @
3e2256aa
...
...
@@ -5,6 +5,7 @@ import com.alibaba.excel.EasyExcel;
import
com.alibaba.excel.support.ExcelTypeEnum
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpStationDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.ReviewDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.*
;
...
...
@@ -240,18 +241,24 @@ public class JpInverterController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/jpInverterDayReport"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"逆变器日报表"
,
notes
=
"逆变器日报表"
)
public
ResponseModel
<
Page
<
TdHYGFInverterDayGenerate
>>
jpInverterDayReport
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
)
{
public
ResponseModel
<
Page
<
TdHYGFInverterDayGenerate
>>
jpInverterDayReport
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
required
=
false
)
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
)
{
List
<
JpStation
>
jpStation
=
jpStationServiceImpl
.
getJpStation
(
new
JpStationDto
());
List
<
String
>
stationIds
=
jpStation
.
stream
().
map
(
jpStation1
->
jpStation1
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
if
(
StringUtils
.
isEmpty
(
time
)){
time
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
}
return
ResponseHelper
.
buildResponse
(
jpInverterServiceImpl
.
jpInverterDayReport
(
current
,
size
,
time
,
snCodes
,
stationIds
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/jpInverterDayReportExport"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"逆变器日报表导出"
,
notes
=
"逆变器日报表导出"
)
public
void
jpInverterDayReportExport
(
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
,
HttpServletResponse
response
)
{
public
void
jpInverterDayReportExport
(
@RequestParam
(
required
=
false
)
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
,
HttpServletResponse
response
)
{
List
<
JpStation
>
jpStation
=
jpStationServiceImpl
.
getJpStation
(
new
JpStationDto
());
List
<
String
>
stationIds
=
jpStation
.
stream
().
map
(
jpStation1
->
jpStation1
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
if
(
StringUtils
.
isEmpty
(
time
)){
time
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
}
List
<
TdHYGFInverterDayGenerate
>
tdHYGFInverterDayGenerates
=
jpInverterServiceImpl
.
jpInverterDayReportExport
(
time
,
snCodes
,
stationIds
);
try
{
setResponseHeadForDowload
(
response
,
"逆变器日报表.xls"
);
...
...
@@ -263,18 +270,24 @@ public class JpInverterController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/jpInverterMonthReport"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"逆变器月报表"
,
notes
=
"逆变器月报表"
)
public
ResponseModel
<
Page
<
TdHYGFInverterMonthGenerate
>>
jpInverterMonthReport
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
)
{
public
ResponseModel
<
Page
<
TdHYGFInverterMonthGenerate
>>
jpInverterMonthReport
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
required
=
false
)
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
)
{
List
<
JpStation
>
jpStation
=
jpStationServiceImpl
.
getJpStation
(
new
JpStationDto
());
List
<
String
>
stationIds
=
jpStation
.
stream
().
map
(
jpStation1
->
jpStation1
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
if
(
StringUtils
.
isEmpty
(
time
)){
time
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM"
);
}
return
ResponseHelper
.
buildResponse
(
jpInverterServiceImpl
.
jpInverterMonthReport
(
current
,
size
,
time
,
snCodes
,
stationIds
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/jpInverterMonthReportExport"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"逆变器月报表导出"
,
notes
=
"逆变器月报表导出"
)
public
void
jpInverterMonthReportExport
(
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
,
HttpServletResponse
response
)
{
public
void
jpInverterMonthReportExport
(
@RequestParam
(
required
=
false
)
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
,
HttpServletResponse
response
)
{
List
<
JpStation
>
jpStation
=
jpStationServiceImpl
.
getJpStation
(
new
JpStationDto
());
List
<
String
>
stationIds
=
jpStation
.
stream
().
map
(
jpStation1
->
jpStation1
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
if
(
StringUtils
.
isEmpty
(
time
)){
time
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM"
);
}
List
<
TdHYGFInverterMonthGenerate
>
tdHYGFInverterMonthGenerates
=
jpInverterServiceImpl
.
jpInverterMonthReportExport
(
time
,
snCodes
,
stationIds
);
try
{
setResponseHeadForDowload
(
response
,
"逆变器月报表.xls"
);
...
...
@@ -287,18 +300,24 @@ public class JpInverterController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/jpInverterYearReport"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"逆变器年报表"
,
notes
=
"逆变器年报表"
)
public
ResponseModel
<
Page
<
TdHYGFInverterYearGenerate
>>
jpInverterYearReport
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
)
{
public
ResponseModel
<
Page
<
TdHYGFInverterYearGenerate
>>
jpInverterYearReport
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
required
=
false
)
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
)
{
List
<
JpStation
>
jpStation
=
jpStationServiceImpl
.
getJpStation
(
new
JpStationDto
());
List
<
String
>
stationIds
=
jpStation
.
stream
().
map
(
jpStation1
->
jpStation1
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
if
(
StringUtils
.
isEmpty
(
time
)){
time
=
DateUtil
.
format
(
new
Date
(),
"yyyy"
);
}
return
ResponseHelper
.
buildResponse
(
jpInverterServiceImpl
.
jpInverterYearReport
(
current
,
size
,
time
,
snCodes
,
stationIds
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/jpInverterYearReportExport"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"逆变器年报表导出"
,
notes
=
"逆变器年报表导出"
)
public
void
jpInverterYearReportExport
(
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
,
HttpServletResponse
response
)
{
public
void
jpInverterYearReportExport
(
@RequestParam
(
required
=
false
)
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
,
HttpServletResponse
response
)
{
List
<
JpStation
>
jpStation
=
jpStationServiceImpl
.
getJpStation
(
new
JpStationDto
());
List
<
String
>
stationIds
=
jpStation
.
stream
().
map
(
jpStation1
->
jpStation1
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
if
(
StringUtils
.
isEmpty
(
time
)){
time
=
DateUtil
.
format
(
new
Date
(),
"yyyy"
);
}
List
<
TdHYGFInverterYearGenerate
>
tdHYGFInverterYearGenerates
=
jpInverterServiceImpl
.
jpInverterYearReportExport
(
time
,
snCodes
,
stationIds
);
try
{
setResponseHeadForDowload
(
response
,
"逆变器年报表.xls"
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizFanHealthIndexController.java
View file @
3e2256aa
...
...
@@ -392,7 +392,7 @@ public class IdxBizFanHealthIndexController extends BaseController {
int
total
=
fanHealthIndexDayMapper
.
selectDataTotal
(
healthLevel
,
area
,
equipmentName
,
subSystem
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
);
page
.
setRecords
(
fanHealthIndexDays
);
page
.
setTotal
(
total
);
page
.
setTotal
(
Long
.
valueOf
(
fanHealthIndexDays
.
size
()));
//
page.setTotal(Long.valueOf(fanHealthIndexDays.size()));
return
ResponseHelper
.
buildResponse
(
page
);
}
...
...
@@ -549,6 +549,8 @@ public class IdxBizFanHealthIndexController extends BaseController {
Page
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
int
total
=
fanHealthIndexDayMapper
.
selectDataTotal
(
healthLevel
,
area
,
equipmentName
,
subSystem
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
);
page
.
setTotal
(
total
);
page
.
setRecords
(
fanHealthIndexDays
);
return
ResponseHelper
.
buildResponse
(
page
);
}
else
if
(
requiredType
.
equals
(
"按小时"
)){
...
...
@@ -578,6 +580,8 @@ public class IdxBizFanHealthIndexController extends BaseController {
Page
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
int
total
=
fanHealthIndexDayMapper
.
selectDataTotal
(
healthLevel
,
area
,
equipmentName
,
subSystem
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
);
page
.
setTotal
(
total
);
page
.
setRecords
(
fanHealthIndexHours
);
return
ResponseHelper
.
buildResponse
(
page
);
}
else
{
...
...
@@ -600,6 +604,8 @@ public class IdxBizFanHealthIndexController extends BaseController {
Page
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
int
total
=
fanHealthIndexDayMapper
.
selectDataTotal
(
healthLevel
,
area
,
equipmentName
,
subSystem
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
);
page
.
setTotal
(
total
);
page
.
setRecords
(
fanHealthIndexMoments
);
return
ResponseHelper
.
buildResponse
(
page
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/FanWarningRecord.xml
View file @
3e2256aa
...
...
@@ -111,6 +111,7 @@
</select>
<select
id=
"selectWarningPoint"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanWarningRecord"
>
select * from (
SELECT
a.station,
a.warning_name,
...
...
@@ -134,7 +135,7 @@
point_name,
rec_date ,
content,
warning_name
warning_name
) b
limit #{current},#{size}
</select>
...
...
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