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);