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
553dc03b
Commit
553dc03b
authored
Jul 12, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建表、新建API
parent
158b459c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
1 deletion
+37
-1
MonitorFanIndicatorMapper.java
...ot/module/jxiop/api/mapper/MonitorFanIndicatorMapper.java
+2
-0
MonitorFanIndicatorMapper.xml
...i/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
+23
-0
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+6
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+6
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/MonitorFanIndicatorMapper.java
View file @
553dc03b
...
...
@@ -35,4 +35,6 @@ public interface MonitorFanIndicatorMapper extends BaseMapper<MonitorFanIndicato
Object
getIndicatoralueTotal
(
String
gateway
,
String
indicator
);
List
<
Map
<
String
,
String
>>
getFanConfigPower
(
@Param
(
"gatewayId"
)
String
gatewayId
);
List
<
Map
<
String
,
String
>>
getBoosterStationInfo
(
@Param
(
"gatewayId"
)
String
gatewayId
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
View file @
553dc03b
...
...
@@ -88,4 +88,27 @@
from fan_config_power
where gateway_id = #{gatewayId}
</select>
<select
id=
"getBoosterStationInfo"
resultType=
"java.util.Map"
>
select
`sequence_nbr` as id,
`gateway_id` as gatewayId,
`booster_name` as text,
booster_name as value,
<!-- `booster_code` as value,-->
`sort` as sort
from booster_station_info
<where>
<if
test=
"gatewayId != null and gatewayId != ''"
>
AND gateway_id = #{gatewayId}
</if>
<!-- <if test="sort != null and sort != ''">-->
<!-- AND sort = #{sort}-->
<!-- </if>-->
<!-- <if test="boosterName != null and boosterName != '' and (sort = null or sort = '')">-->
<!-- AND booster_name = #{boosterName}-->
<!-- </if>-->
</where>
ORDER BY sort ASC
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
553dc03b
...
...
@@ -248,5 +248,11 @@ public class MonitorFanIdxController extends BaseController {
return
ResponseHelper
.
buildResponse
(
result
);
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"获取升压站信息 通过排序等"
)
@GetMapping
(
"/getBoosterStationInfo"
)
public
ResponseModel
<
List
<
Map
<
String
,
String
>>>
getBoosterStationInfo
(
@RequestParam
(
value
=
"stationId"
,
required
=
false
)
String
stationId
)
{
return
ResponseHelper
.
buildResponse
(
monitorFanIndicator
.
getBoosterStationInfo
(
stationId
));
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
553dc03b
...
...
@@ -559,5 +559,9 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
}
public
List
<
Map
<
String
,
String
>>
getBoosterStationInfo
(
String
stationId
)
{
StationBasic
stationBasic
=
getOneByStationNumber
(
stationId
);
List
<
Map
<
String
,
String
>>
boosterStationInfo
=
monitorFanIndicatorregionMapper
.
getBoosterStationInfo
(
stationBasic
.
getFanGatewayId
());
return
boosterStationInfo
;
}
}
\ No newline at end of file
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