From 092bd3dddb5bbd2127add80b07bc257f8d1cddb8 Mon Sep 17 00:00:00 2001 From: gaowdong Date: Fri, 7 Mar 2025 18:33:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0LeNiuDataPermission=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../allocation/canteen/mapper/AllocAreaMapper.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/mapper/AllocAreaMapper.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/mapper/AllocAreaMapper.java index acca4e1f..7d47a4e3 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/mapper/AllocAreaMapper.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/mapper/AllocAreaMapper.java @@ -31,14 +31,14 @@ public interface AllocAreaMapper extends BaseMapper { @Select({"SELECT MAX(area_num) FROM alloc_area WHERE if_del = 2 AND super_id = #{superId}"}) String getLatestAreaNum(Long superId); -// + @Select({"SELECT area_id, area_name FROM alloc_area WHERE if_del = 2 AND area_name = #{areaName}"}) AllocArea getAreaIdByName(String areaName); -// -// @LeNiuDataPermission( -// alias = "t1", -// permissionType = DataPermissionTypeEnum.PERMISSION_AREA -// ) + + @LeNiuDataPermission( + alias = "t1", + permissionType = DataPermissionTypeEnum.PERMISSION_AREA + ) List listAllTreeArea(); List listSystemArea(Long tenantId);