From a7dc3517b3c028eab02cdde35a57389278217ed2 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期二, 25 二月 2025 19:59:33 +0800 Subject: [PATCH] 新增加后台职位接口 --- springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemRoleController.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemRoleController.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemRoleController.java index 1868240..666bd4a 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemRoleController.java +++ b/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("该角色名称已存在"); -- Gitblit v1.7.1