whyclxw
2025-06-10 f0ea9047affb84dbec1726b01895b7e0c420263f
src/main/java/com/whyc/controller/ConditionController.java
@@ -2,10 +2,7 @@
import com.whyc.dto.Response;
import com.whyc.pojo.db_user.User;
import com.whyc.service.BaojigroupService;
import com.whyc.service.BattInfService;
import com.whyc.service.PowerInfService;
import com.whyc.service.StationInfService;
import com.whyc.service.*;
import com.whyc.util.ActionUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -27,6 +24,24 @@
    @Autowired
    private BattInfService binfService;
    @Autowired
    private BattalarmDataService  almDataService;
    @Autowired
    private DevalarmDataService  devAlmService;
    @Autowired
    private PwrdevAlarmService  pwrAlmService;
    @Autowired
    private DeviceStateService  deviceStateService;
    @Autowired
    private BattRtstateService  rtstateService;
    @Autowired
    private BatttestdataInfService  tinfService;
    @ApiOperation("获取所有的省份(下拉)")
    @GetMapping("getProviceByUid")
@@ -134,6 +149,45 @@
        return bjGroupService.getBaojiUserByUid(uinf.getId());
    }
    @ApiOperation(value = "获取电池告警类型(下拉)")
    @GetMapping("getAlarmIdType")
    public Response getAlarmIdType(){
        return almDataService.getAlarmIdType();
    }
    @ApiOperation(value = "获取设备告警类型(下拉)")
    @GetMapping("getDevAlmIdType")
    public Response getDevAlmIdType(){
        return devAlmService.getDevAlmIdType();
    }
    @ApiOperation(value = "获取电源告警类型(下拉)")
    @GetMapping("getPwrAlmIdType")
    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("getDevState")
    public Response getDevState(){
        return deviceStateService.getDevState();
    }
    @ApiOperation(value = "获取电池组工作状态类型(下拉)")
    @GetMapping("getBattState")
    public Response getBattState(){
        return rtstateService.getBattState();
    }
}