whyclxw
2025-05-17 feaaad2d357f5084d21f14a6929fe208b4c4ad0e
src/main/java/com/whyc/controller/ConditionController.java
@@ -3,6 +3,8 @@
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.util.ActionUtil;
import io.swagger.annotations.Api;
@@ -18,7 +20,13 @@
    private StationInfService stationInfService;
    @Autowired
    private PowerInfService  powerInfService;
    @Autowired
    private BaojigroupService bjGroupService;
    @Autowired
    private BattInfService binfService;
    @ApiOperation("获取所有的省份(下拉)")
    @GetMapping("getProviceByUid")
@@ -48,6 +56,69 @@
        return stationInfService.getStationByUid(uinf.getId(),provice,city,country);
    }
    @ApiOperation("获取站点下的电源(下拉)")
    @GetMapping("getPowerByUid")
    public Response getPowerByUid(@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 stationInfService.getPowerByUid(uinf.getId(),provice,city,country,stationName);
    }
    @ApiOperation("获取电压等级(下拉)")
    @GetMapping("getStationType")
    public Response getStationTypeByUid() {
        User uinf= ActionUtil.getUser();
        return stationInfService.getStationTypeByUid(uinf.getId());
    }
    @ApiOperation("获取电池品牌(下拉)")
    @GetMapping("getProductByUid")
    public Response getProductByUid() {
        User uinf= ActionUtil.getUser();
        return binfService.getProductByUid(uinf.getId());
    }
    @ApiOperation("获取标称单体电压(下拉)")
    @GetMapping("getMonVolByUid")
    public Response getMonVolByUid() {
        User uinf= ActionUtil.getUser();
        return binfService.getMonVolByUid(uinf.getId());
    }
    @ApiOperation("获取标称容量(下拉)")
    @GetMapping("getMonCapByUid")
    public Response getMonCapByUid() {
        User uinf= ActionUtil.getUser();
        return binfService.getMonCapByUid(uinf.getId());
    }
    @ApiOperation("获取标称内阻(下拉)")
    @GetMapping("getMonResByUid")
    public Response getMonResByUid() {
        User uinf= ActionUtil.getUser();
        return binfService.getMonResByUid(uinf.getId());
    }
    @ApiOperation("获取设备型号(下拉)")
    @GetMapping("getDevTypeByUid")
    public Response getDevTypeByUid() {
        User uinf= ActionUtil.getUser();
        return binfService.getDevTypeByUid(uinf.getId());
    }
    @ApiOperation("获取电源品牌(下拉)")
    @GetMapping("getCompanyByUid")
    public Response getCompanyByUid() {
        User uinf= ActionUtil.getUser();
        return powerInfService.getCompanyByUid(uinf.getId());
    }
    @ApiOperation("获取电源型号(下拉)")
    @GetMapping("getPowerModelByUid")
    public Response getPowerModelByUid() {
        User uinf= ActionUtil.getUser();
        return powerInfService.getPowerModelByUid(uinf.getId());
    }
    @ApiOperation(value = "当前用户所在包机组下所有的用户(下拉)")
    @GetMapping("getBaojiUserByUid")