Browse Source
# Conflicts: # hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/impl/CentralMonitorServiceImpl.java # hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/controller/HomeController.java # hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/AreaMonthReportServiceImpl.java # hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.javazhongwei
yang_shj
1 year ago
25 changed files with 156 additions and 82 deletions
@ -0,0 +1,63 @@ |
|||||||
|
package com.hnac.hzims.operational.ecology.controller; |
||||||
|
|
||||||
|
|
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||||
|
import com.hnac.hzims.operational.main.service.HomeService; |
||||||
|
import com.hnac.hzims.operational.main.service.HydropowerService; |
||||||
|
import com.hnac.hzims.operational.main.service.ISideHustleService; |
||||||
|
import com.hnac.hzims.operational.main.vo.HydropowerScoreVo; |
||||||
|
import com.hnac.hzims.operational.main.vo.MapMarkerVo; |
||||||
|
import com.hnac.hzims.operational.main.vo.StationCountVo; |
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import io.swagger.annotations.ApiParam; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springblade.core.boot.ctrl.BladeController; |
||||||
|
import org.springblade.core.log.annotation.ApiLog; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author ysj |
||||||
|
*/ |
||||||
|
@Api(tags = {"黔东南首页"}) |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/QDN") |
||||||
|
public class QdnHomeController extends BladeController { |
||||||
|
|
||||||
|
private final HomeService homeService; |
||||||
|
|
||||||
|
private final ISideHustleService regionService; |
||||||
|
|
||||||
|
private final HydropowerService hydropowerService; |
||||||
|
|
||||||
|
@ApiLog |
||||||
|
@ApiOperation("首页站点数量") |
||||||
|
@GetMapping("/count") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
public R<List<StationCountVo>> count() { |
||||||
|
return R.data(homeService.count(false)); |
||||||
|
} |
||||||
|
|
||||||
|
@ApiLog |
||||||
|
@ApiOperation("水电站集团/区域指标") |
||||||
|
@GetMapping("/KPIs") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
public R<HydropowerScoreVo> KPIs(@ApiParam(value = "站点机构ID") Long deptId) { |
||||||
|
return R.data(hydropowerService.KPIs(deptId,false)); |
||||||
|
} |
||||||
|
|
||||||
|
@ApiLog |
||||||
|
@ApiOperation("获取地图标记") |
||||||
|
@GetMapping("/getMapMarker") |
||||||
|
@ApiOperationSupport(order = 6) |
||||||
|
public R<List<MapMarkerVo>> getMapMarker(@ApiParam(value = "区域机构ID") Long deptId, @RequestParam(value ="types") List<Integer> types) { |
||||||
|
return R.data(regionService.getMapMarker(deptId,types,false)); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue