xuhy
2025-08-26 3dd961dbdcee7cde4c42de6ed738563ce30d5bbb
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingPileController.java
@@ -18,6 +18,8 @@
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.log.enums.OperatorType;
import com.ruoyi.common.security.annotation.Logical;
import com.ruoyi.common.security.service.TokenService;
import com.ruoyi.system.api.domain.SysUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
@@ -47,14 +49,16 @@
    private final TChargingPileService chargingPileService;
    private final TChargingGunService chargingGunService;
    private final TokenService tokenService;
   @Resource
   private RedisTemplate redisTemplate;
    @Autowired
    public TChargingPileController(TChargingPileService chargingPileService, TChargingGunService chargingGunService) {
    public TChargingPileController(TChargingPileService chargingPileService, TChargingGunService chargingGunService, TokenService tokenService) {
        this.chargingPileService = chargingPileService;
        this.chargingGunService = chargingGunService;
        this.tokenService = tokenService;
    }
    /**
@@ -103,7 +107,8 @@
   @GetMapping("/pageChargingPileList")
   @ApiOperation(value = "获取充电桩列表数据", tags = {"管理后台-充电桩信息"})
   public AjaxResult<PageInfo<PageChargingPileListDTO>> pageChargingPileList(PageChargingPileList page){
      PageInfo<PageChargingPileListDTO> list = chargingPileService.pageChargingPileList(page);
      SysUser sysUser = tokenService.getLoginUser().getSysUser();
      PageInfo<PageChargingPileListDTO> list = chargingPileService.pageChargingPileList(page,sysUser);
      return AjaxResult.success(list);
   }