Pu Zhibing
2025-02-25 a7dc3517b3c028eab02cdde35a57389278217ed2
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemRoleController.java
@@ -50,7 +50,7 @@
   @ApiOperation(value = "添加角色", tags = {"三个身边后台-角色管理"})
   @OperLog(operModul = "三个身边后台",operType = 1,businessType = "添加角色")
   public R add(@RequestBody AddSystemRole addSystemRole){
      int count = systemRoleService.count(new LambdaQueryWrapper<SystemRole>().eq(SystemRole::getDel, 0).eq(SystemRole::getName, addSystemRole.getName()));
      long count = systemRoleService.count(new LambdaQueryWrapper<SystemRole>().eq(SystemRole::getDel, 0).eq(SystemRole::getName, addSystemRole.getName()));
      if(0 < count){
         return R.fail("该角色名称已存在");
      }
@@ -74,7 +74,7 @@
   @ApiOperation(value = "编辑角色", tags = {"三个身边后台-角色管理"})
   @OperLog(operModul = "三个身边后台",operType = 2,businessType = "编辑角色")
   public R edit(@RequestBody EditSystemRole editSystemRole){
      int count = systemRoleService.count(new LambdaQueryWrapper<SystemRole>().eq(SystemRole::getDel, 0)
      long count = systemRoleService.count(new LambdaQueryWrapper<SystemRole>().eq(SystemRole::getDel, 0)
            .eq(SystemRole::getName, editSystemRole.getName()).ne(SystemRole::getId, editSystemRole.getId()));
      if(0 < count){
         return R.fail("该角色名称已存在");