whyclxw
2025-06-04 4288e68cced096a216bebfcd797e78791e192c67
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,15 @@
    @Autowired
    private BattInfService binfService;
    @Autowired
    private BattalarmDataService  almDataService;
    @Autowired
    private DeviceStateService  deviceStateService;
    @Autowired
    private BattRtstateService  rtstateService;
    @ApiOperation("获取所有的省份(下拉)")
    @GetMapping("getProviceByUid")
@@ -119,6 +125,13 @@
        return powerInfService.getPowerModelByUid(uinf.getId());
    }
    @ApiOperation("获取电源协议(下拉)")
    @GetMapping("getProtocolByUid")
    public Response getProtocolByUid() {
        User uinf= ActionUtil.getUser();
        return powerInfService.getProtocolByUid(uinf.getId());
    }
    @ApiOperation(value = "当前用户所在包机组下所有的用户(下拉)")
    @GetMapping("getBaojiUserByUid")
@@ -127,6 +140,23 @@
        return bjGroupService.getBaojiUserByUid(uinf.getId());
    }
    @ApiOperation(value = "获取电池告警类型(下拉)")
    @GetMapping("getSingalIdIdType")
    public Response getSingalIdIdType(){
        return almDataService.getSingalIdType();
    }
    @ApiOperation(value = "获取设备工作类型(下拉)")
    @GetMapping("getDevState")
    public Response getDevState(){
        return deviceStateService.getDevState();
    }
    @ApiOperation(value = "获取电池组工作状态类型(下拉)")
    @GetMapping("getBattState")
    public Response getBattState(){
        return rtstateService.getBattState();
    }
}