Browse Source

放开电机的登录权限

车车 1 month ago
parent
commit
81e1559df5

+ 1 - 1
ktg-framework/src/main/java/com/ktg/framework/config/SecurityConfig.java

@@ -105,7 +105,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 .antMatchers("/iscs/key/selectIsKeyByNfcWithoutAuth").permitAll()
                 .antMatchers("/iscs/hardware/material-api/selectMaterialsByRfidList").permitAll()
                 .antMatchers("/iscs/hardware/material-api/selectCabinetMaterials").permitAll()
-                .antMatchers("/iscs/map/selectIsMapById", "/iscs/motor/getIsMotorListByLotoId", "/iscs/station/getIsLotoStationPage").permitAll()
+                .antMatchers("/iscs/map/selectIsMapById", "/iscs/motor/getIsMotorListByLotoId", "/iscs/station/getIsLotoStationPage").anonymous()
                 .antMatchers("/iscs/hardware-api/updateSwitchList").anonymous()
                 .antMatchers(
                         HttpMethod.GET,

+ 1 - 2
ktg-iscs/src/main/java/com/ktg/iscs/service/impl/IsLotoStationServiceImpl.java

@@ -4,7 +4,6 @@ import cn.hutool.core.lang.Assert;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.ktg.common.annotation.MarsDataScope;
 import com.ktg.common.utils.StringUtils;
 import com.ktg.iscs.domain.IsIsolationPoint;
 import com.ktg.iscs.domain.IsLotoStation;
@@ -41,7 +40,7 @@ public class IsLotoStationServiceImpl extends ServiceImpl<IsLotoStationMapper, I
     private IIsMapService isMapService;
 
     @Override
-    @MarsDataScope(workstationAlias = "w", userAlias = "u")
+    //@MarsDataScope(workstationAlias = "w", userAlias = "u")
     public Page<IsLotoStationVO> getIsLotoStationPage(IsLotoStation isLotoStation, Page<IsLotoStation> page) {
         return isLotoStationMapper.getIsLotoStationPage(page, isLotoStation);
     }