月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-08-08 3b1af08ca296f9cecc1944dd282031cc684fba23
src/main/java/com/moon/server/controller/sys/RoleLayerController.java
@@ -6,6 +6,7 @@
import com.moon.server.entity.sys.RoleLayerEntity;
import com.moon.server.entity.sys.RoleResEntity;
import com.moon.server.entity.sys.UserEntity;
import com.moon.server.service.all.PermsService;
import com.moon.server.service.sys.RoleLayerService;
import com.moon.server.service.sys.TokenService;
import io.swagger.annotations.Api;
@@ -22,7 +23,7 @@
 * 角色-图层
 * @author WWW
 */
@Api(tags = "运维管理\\角色-图层")
@Api(tags = "运维管理\\角色图层")
@RestController
@RequestMapping("/roleLayer")
public class RoleLayerController extends BaseController {
@@ -31,6 +32,9 @@
    @Autowired
    TokenService tokenService;
    @Autowired
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "根据角色ID查询资源")
@@ -105,6 +109,9 @@
            }
            int count = roleLayerService.insert(entity);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -128,6 +135,9 @@
            }
            int count = roleLayerService.inserts(list);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -144,6 +154,9 @@
    public ResponseMsg<Integer> delete(int id) {
        try {
            int count = roleLayerService.delete(id);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -164,6 +177,9 @@
            }
            int count = roleLayerService.deletes(ids);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -186,6 +202,9 @@
            }
            int count = roleLayerService.update(entity);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -210,6 +229,9 @@
            }
            int count = roleLayerService.updates(list);
            if (count > 0) {
                permsService.clearLayerCache();
            }
            return success(count);
        } catch (Exception ex) {