| | |
| | | return service.searchMonVol(); |
| | | } |
| | | |
| | | @GetMapping("searchBattGroupIdByDevId") |
| | | @ApiOperation(value = "根据设备id查询电池组id(取第一个)") |
| | | public Response searchBattGroupIdByDevId(@RequestParam int devId) { |
| | | return service.searchBattGroupIdByDevId(devId); |
| | | } |
| | | } |
| | |
| | | //设备告警删除告警 |
| | | @ApiOperation(value = "设备告警删除告警") |
| | | @GetMapping("delete") |
| | | public Response delete(@RequestParam int num){ |
| | | return service.delete(num); |
| | | public Response delete(@RequestParam int num) { |
| | | return service.delete(num); |
| | | } |
| | | |
| | | @GetMapping("searchNums") |
| | | @ApiOperation( value = "设备告警数查询") |
| | | @ApiOperation(value = "设备告警数查询") |
| | | public Response searchNums() { |
| | | return service.searchNums(); |
| | | return service.searchNums(); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | //未放电电池组数 |
| | | int searchInDischarge(int userId); |
| | | |
| | | //根据设备id查询电池组id(取第一个) |
| | | String searchBattGroupIdByDevId(int devId); |
| | | } |
| | |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.whyc.util.ActionUtil.createFilefolderIFNotExist; |
| | | |
| | |
| | | List<String> list = battInfMapper.searchMonVol(); |
| | | return new Response().setII(1, list.size() > 0 ? true : false, list, "查询标称电压类别"); |
| | | } |
| | | |
| | | //根据设备id查询电池组id(取第一个) |
| | | public Response searchBattGroupIdByDevId(int devId) { |
| | | String battGroupId = battInfMapper.searchBattGroupIdByDevId(devId); |
| | | return new Response().setII(1, battGroupId != null, battGroupId != null ? battGroupId : "0", "返回电池组id"); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | public int getCountByStationIds(List<String> stationIdList, Integer level) { |
| | | return mapper.getCountByStationIds(stationIdList,level); |
| | | return mapper.getCountByStationIds(stationIdList, level); |
| | | } |
| | | |
| | | public List<DevalarmData> getListByStationIds(List<String> stationIdList) { |
| | | return mapper.getListByStationIds(stationIdList); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | and db_user.tb_user_inf.uid = db_user.tb_user_battgroup_baojigroup_usr.uid |
| | | and db_user.tb_user_inf.uid = #{userId}) |
| | | </select> |
| | | <select id="searchBattGroupIdByDevId" resultType="java.lang.String"> |
| | | select distinct BattGroupId |
| | | from db_battinf.tb_battinf |
| | | where FBSDeviceId = #{devId} |
| | | ORDER by GroupIndexInFBSDevice limit 1 |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | <select id="searchBattGroupIdByDevId" resultType="java.lang.String"> |
| | | select distinct BattGroupId |
| | | from db_battinf.tb_battinf |
| | | where FBSDeviceId = #{devId} |
| | | ORDER by GroupIndexInFBSDevice limit 1 |
| | | </select> |
| | | </mapper> |