| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.db_user.Baojigroup; |
| | | import com.whyc.pojo.db_user.User; |
| | | import com.whyc.service.*; |
| | | import com.whyc.util.ActionUtil; |
| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "下拉条件管理") |
| | |
| | | private PwrdevAlarmService pwrAlmService; |
| | | |
| | | @Autowired |
| | | private PowerInfService pinfService; |
| | | |
| | | @Autowired |
| | | private DeviceStateService deviceStateService; |
| | | |
| | | @Autowired |
| | | private BattRtstateService rtstateService; |
| | | |
| | | @Autowired |
| | | private BatttestdataInfService tinfService; |
| | | |
| | | @ApiOperation("获取所有的省份(下拉)") |
| | | @GetMapping("getProviceByUid") |
| | |
| | | ,@RequestParam(required = false) String country,@RequestParam(required = false) String stationName) { |
| | | User uinf= ActionUtil.getUser(); |
| | | return stationInfService.getPowerByUid(uinf.getId(),provice,city,country,stationName); |
| | | } |
| | | @ApiOperation("获取站点下的电池组(下拉)") |
| | | @GetMapping("getBattByUid") |
| | | public Response getBattByUid(@RequestParam(required = false) String provice,@RequestParam(required = false) String city |
| | | ,@RequestParam(required = false) String country,@RequestParam(required = false) String stationName) { |
| | | User uinf= ActionUtil.getUser(); |
| | | return binfService.getBattByUid(uinf.getId(),provice,city,country,stationName); |
| | | } |
| | | |
| | | @ApiOperation("获取电压等级(下拉)") |
| | |
| | | public Response getPwrAlmIdType(){ |
| | | return pwrAlmService.getPwrAlmIdType(); |
| | | } |
| | | @ApiOperation(value = "获取核容停止原因类型(下拉)") |
| | | @GetMapping("getStopReasonType") |
| | | public Response getStopReasonType(){ |
| | | return tinfService.getStopReasonType(); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取容量性能(下拉)") |
| | | @GetMapping("getCapperformance") |
| | | public Response getCapperformance(){ |
| | | return binfService.getCapperformance(); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取电源性能(下拉)") |
| | | @GetMapping("getPwrCapperformance") |
| | | public Response getPwrCapperformance(){ |
| | | return pinfService.getPwrCapperformance(); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取设备工作类型(下拉)") |
| | | @GetMapping("getDevState") |
| | |
| | | return rtstateService.getBattState(); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取所有的班组(下拉)") |
| | | @GetMapping("getBattGroupBZ") |
| | | public Response getBattGroupBZ(){ |
| | | List<Baojigroup> list=bjGroupService.getGroupList(); |
| | | return new Response().setII(1,true,list,"获取所有的班组(下拉)"); |
| | | } |
| | | |
| | | |
| | | |
| | | } |