| | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | |
| | | @Autowired |
| | | private INkyClient nkyClient; |
| | | |
| | | // /** |
| | | // * 大坝安全监测状况统计 |
| | | // * @param damSecurityStatistics |
| | | // * @return |
| | | // */ |
| | | // @ApiOperation(value = "大坝安全统计-大坝安全监测状况统计", notes = "大坝安全统计-大坝安全监测状况统计") |
| | | // @GetMapping(value = "/singleRegionCount") |
| | | // public R singleRegionCount(DamSecurityStatistics damSecurityStatistics) { |
| | | // DamSecurityStatistics data = damSecurityService.getSingleRegionCount(damSecurityStatistics); |
| | | // return R.data(data); |
| | | // } |
| | | |
| | | /** |
| | | * 大坝安全监测状况统计 |
| | | * 大坝安全监测状况统计(逻辑已修改) |
| | | * @param damSecurityStatistics |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "大坝安全统计-大坝安全监测状况统计", notes = "大坝安全统计-大坝安全监测状况统计") |
| | | @GetMapping(value = "/singleRegionCount") |
| | | public R singleRegionCount(DamSecurityStatistics damSecurityStatistics) { |
| | | DamSecurityStatistics data = damSecurityService.getSingleRegionCount(damSecurityStatistics); |
| | | public R singleRegionCountOptimize(DamSecurityStatistics damSecurityStatistics) { |
| | | DamSecurityStatistics data = damSecurityService.getSingleRegionCountOptimize(damSecurityStatistics); |
| | | return R.data(data); |
| | | } |
| | | |
| | | /** |
| | | * 大坝安全监测区域统计 |
| | | * 大坝安全监测区域统计(逻辑已修改) |
| | | * @param damSecurityStatistics |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 大坝安全监测表格 |
| | | * 大坝安全监测表格(逻辑已修改) |
| | | * @param damStationStatistics |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 大坝安全监测表格导出 |
| | | * 大坝安全监测表格导出(逻辑已修改) |
| | | * @param damStationStatistics |
| | | * @return |
| | | */ |
| | |
| | | @ApiOperation(value = "大坝安全统计-大坝安全监测预警详情", notes = "大坝安全统计-大坝安全监测预警详情") |
| | | @GetMapping(value = "/alarmDetailPage") |
| | | public R alarmDetail(AlarmGetVO alarmGet,Query query){ |
| | | PageVO<AlarmGetVO> page = nkyClient.getAlarmDetailPage(query.getCurrent(), query.getSize(), alarmGet); |
| | | String ascs = StringUtil.isBlank(query.getAscs())?"":query.getAscs(); |
| | | String descs = StringUtil.isBlank(query.getDescs())?"":query.getDescs(); |
| | | PageVO<AlarmGetVO> page = nkyClient.getAlarmDetailPage(query.getCurrent(), query.getSize(), alarmGet,ascs,descs); |
| | | return R.data(page); |
| | | } |
| | | |
| | | /** |
| | | * 大坝安全监测预警异常统计 |
| | | * 大坝安全监测预警异常统计-南科院 |
| | | * @param damStationStatistics |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 业务一张图 大坝安全监测 |
| | | * 大坝安全监测预警异常统计-中台预警 |
| | | * @param damMonitor |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "大坝安全统计-大坝安全监测预警异常统计", notes = "大坝安全统计-大坝安全监测预警异常统计") |
| | | @GetMapping(value = "/alarmResCountZt") |
| | | public R alarmResCountZt(DamMonitor damMonitor){ |
| | | if (StringUtil.isBlank(damMonitor.getStartTime()) || StringUtil.isBlank(damMonitor.getEndTime())) |
| | | return R.fail("查询时间不能为空"); |
| | | List<DamStationStatistics> list = damSecurityService.alarmResCount(damMonitor); |
| | | return R.data(list); |
| | | } |
| | | |
| | | // /** |
| | | // * 业务一张图 大坝安全监测 |
| | | // * @param adCode |
| | | // * @return |
| | | // */ |
| | | // @ApiOperation(value = "大坝安全统计-大坝安全监测", notes = "大坝安全统计-大坝安全监测") |
| | | // @GetMapping(value = "/damResInfoCount") |
| | | // public R damResInfoCount(String adCode){ |
| | | // List<DamStatisticsRes> list = damSecurityService.damResInfoCount(adCode); |
| | | // return R.data(list); |
| | | // } |
| | | |
| | | /** |
| | | * 业务一张图 大坝安全监测(优化) |
| | | * @param adCode |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "大坝安全统计-大坝安全监测", notes = "大坝安全统计-大坝安全监测") |
| | | @GetMapping(value = "/damResInfoCount") |
| | | public R damResInfoCount(String adCode){ |
| | | List<DamStatisticsRes> list = damSecurityService.damResInfoCount(adCode); |
| | | public R damResInfoCountOptimize(String adCode){ |
| | | List<DamStatisticsRes> list = damSecurityService.damResInfoCountOptimize(adCode); |
| | | return R.data(list); |
| | | } |
| | | |
| | | /** |
| | | * 业务一张图 大坝安全监测(地图) |
| | | * 单项---业务一张图 大坝安全监测(优化) |
| | | * @param adCode |
| | | * @param type sy sl wy |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "大坝安全统计-大坝安全监测", notes = "大坝安全统计-大坝安全监测") |
| | | @GetMapping(value = "/damResInfoCountType") |
| | | public R damResInfoCountOptimizeType(String adCode,String type){ |
| | | DamStatisticsRes damStatisticsRes = damSecurityService.damResInfoCountOptimizeType(adCode,type); |
| | | return R.data(damStatisticsRes); |
| | | } |
| | | |
| | | /** |
| | | * 业务一张图 大坝安全监测(地图)(逻辑已修改) |
| | | * @param obj(adCode :行政区划;type:监测类型;status :状态 1全部;2正常;3异常) |
| | | * @return |
| | | */ |
| | |
| | | return R.data(list); |
| | | } |
| | | |
| | | @GetMapping(value = "/getDamInfoCountByRegion") |
| | | @GetMapping(value = "/getDamInfoCountByRegion")//已修改逻辑 |
| | | public R getDamInfoCountByRegion(DamStatisticsRegion damStatisticsRegion){ |
| | | List<DamStatisticsRegion> list = damSecurityService.getDamInfoCountByRegion(damStatisticsRegion); |
| | | return R.data(list); |
| | |
| | | return R.data(nkyClient.updateAlarmGet(alarmGet)); |
| | | } |
| | | |
| | | /** |
| | | * 预警状态修改 |
| | | * @param alarmGet |
| | | * @return |
| | | */ |
| | | @PostMapping("/updateStatus") |
| | | @ApiOperation(value = "大坝安全统计-预警状态修改", notes = "大坝安全统计-预警状态修改") |
| | | public R updateStatus(AlarmGet alarmGet){ |
| | | return R.data(nkyClient.updateStatus(alarmGet)); |
| | | } |
| | | |
| | | @GetMapping("/getLatestResRecord") |
| | | public R getLatestResRecord(AlarmGet alarmGet){ |
| | | List<AlarmGetVO> list = damSecurityService.getLatestResRecord(alarmGet); |
| | | return R.data(list); |
| | | } |
| | | |
| | | } |