管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-15 f19c018440a835f4871a8cb9de8334ba8dd922ca
src/main/java/com/lf/server/controller/sys/RoleResController.java
@@ -1,10 +1,11 @@
package com.lf.server.controller.sys;
import com.lf.server.aspect.SysLog;
import com.lf.server.annotation.SysLog;
import com.lf.server.controller.all.BaseController;
import com.lf.server.entity.all.ResponseMsg;
import com.lf.server.entity.sys.RoleResEntity;
import com.lf.server.entity.sys.UserEntity;
import com.lf.server.service.all.PermsService;
import com.lf.server.service.sys.RoleResService;
import com.lf.server.service.sys.TokenService;
import io.swagger.annotations.Api;
@@ -30,6 +31,9 @@
    @Autowired
    TokenService tokenService;
    @Autowired
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
@@ -137,6 +141,9 @@
            }
            int count = roleResService.insert(entity);
            if (count > 0) {
                permsService.clearResCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -160,6 +167,9 @@
            }
            int count = roleResService.inserts(list);
            if (count > 0) {
                permsService.clearResCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -176,6 +186,9 @@
    public ResponseMsg<Integer> delete(int id) {
        try {
            int count = roleResService.delete(id);
            if (count > 0) {
                permsService.clearResCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -196,6 +209,9 @@
            }
            int count = roleResService.deletes(ids);
            if (count > 0) {
                permsService.clearResCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -218,6 +234,9 @@
            }
            int count = roleResService.update(entity);
            if (count > 0) {
                permsService.clearResCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -242,6 +261,9 @@
            }
            int count = roleResService.updates(list);
            if (count > 0) {
                permsService.clearResCache();
            }
            return success(count);
        } catch (Exception ex) {