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
cb5f03fa
Commit
cb5f03fa
authored
Sep 19, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分析需求API
parent
c113fe8a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
BigScreenAnalyseController.java
...dule/jxiop/biz/controller/BigScreenAnalyseController.java
+7
-4
IdxBizFanWarningRecordMapper.java
...odule/jxiop/biz/mapper2/IdxBizFanWarningRecordMapper.java
+2
-1
IdxBizFanWarningRecordMapper.xml
...resources/mapper/cluster/IdxBizFanWarningRecordMapper.xml
+6
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/BigScreenAnalyseController.java
View file @
cb5f03fa
...
...
@@ -43,8 +43,10 @@ public class BigScreenAnalyseController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"场站设备健康状态指数与趋势 - 仪表盘"
,
notes
=
"场站设备健康状态指数与趋势 - 仪表盘"
)
@GetMapping
(
value
=
"/getHealthScoreInfo"
)
public
ResponseModel
<
BigDecimal
>
getHealthScoreInfo
(
@RequestParam
(
required
=
false
)
String
areaCode
,
@RequestParam
(
required
=
false
)
String
stationCode
)
{
return
ResponseHelper
.
buildResponse
(
idxBizFanHealthIndexMapper
.
getHealthScoreInfo
(
areaCode
,
stationCode
));
public
ResponseModel
<
Map
<
String
,
BigDecimal
>>
getHealthScoreInfo
(
@RequestParam
(
required
=
false
)
String
areaCode
,
@RequestParam
(
required
=
false
)
String
stationCode
)
{
HashMap
<
String
,
BigDecimal
>
stringBigDecimalHashMap
=
new
HashMap
<>();
stringBigDecimalHashMap
.
put
(
"value"
,
idxBizFanHealthIndexMapper
.
getHealthScoreInfo
(
areaCode
,
stationCode
));
return
ResponseHelper
.
buildResponse
(
stringBigDecimalHashMap
);
}
...
...
@@ -143,9 +145,10 @@ public class BigScreenAnalyseController extends BaseController {
@RequestParam
(
value
=
"station"
,
required
=
false
)
String
station
,
@RequestParam
(
value
=
"stationType"
,
required
=
false
)
String
stationType
,
@RequestParam
(
value
=
"current"
,
required
=
false
)
Integer
current
,
@RequestParam
(
value
=
"size"
,
required
=
false
)
Integer
size
)
{
@RequestParam
(
value
=
"size"
,
required
=
false
)
Integer
size
,
@RequestParam
(
value
=
"warningName"
,
required
=
false
)
String
warningName
)
{
Integer
count
=
idxBizFanWarningRecordMapper
.
getEquipWarningInfoByPageCount
(
arae
,
station
,
stationType
);
List
<
IdxBizFanWarningRecord
>
idxBizFanWarningRecordIPage
=
idxBizFanWarningRecordMapper
.
getEquipWarningInfoByPage
(
arae
,
station
,
stationType
,
current
,
size
);
List
<
IdxBizFanWarningRecord
>
idxBizFanWarningRecordIPage
=
idxBizFanWarningRecordMapper
.
getEquipWarningInfoByPage
(
arae
,
station
,
stationType
,
current
,
size
,
warningName
);
Page
<
IdxBizFanWarningRecord
>
idxBizFanWarningRecordPage
=
new
Page
<>(
current
,
size
);
idxBizFanWarningRecordPage
.
setRecords
(
idxBizFanWarningRecordIPage
);
idxBizFanWarningRecordPage
.
setTotal
(
count
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/mapper2/IdxBizFanWarningRecordMapper.java
View file @
cb5f03fa
...
...
@@ -18,7 +18,8 @@ public interface IdxBizFanWarningRecordMapper extends BaseMapper<IdxBizFanWarnin
@Param
(
"station"
)
String
station
,
@Param
(
"stationType"
)
String
stationType
,
@Param
(
"current"
)
Integer
current
,
@Param
(
"size"
)
Integer
size
);
@Param
(
"size"
)
Integer
size
,
@Param
(
"warningName"
)
String
warningName
);
Integer
getEquipWarningInfoByPageCount
(
@Param
(
"arae"
)
String
arae
,
@Param
(
"station"
)
String
station
,
@Param
(
"stationType"
)
String
stationType
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanWarningRecordMapper.xml
View file @
cb5f03fa
...
...
@@ -41,6 +41,9 @@
<if
test=
"stationType != '' and stationType != null"
>
AND a.stationType = #{stationType}
</if>
<if
test=
"warningName != '' and warningName != null"
>
AND a.WARNING_NAME = #{warningName}
</if>
</where>
limit #{current}, #{size}
</select>
...
...
@@ -83,6 +86,9 @@
<if
test=
"stationType != '' and stationType != null"
>
AND a.stationType = #{stationType}
</if>
<if
test=
"warningName != '' and warningName != null"
>
AND a.WARNING_NAME = #{warningName}
</if>
</where>
</select>
</mapper>
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