diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/alloc/AllocAreaMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/alloc/AllocAreaMapper.xml
index ed29103..b89dca7 100644
--- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/alloc/AllocAreaMapper.xml
+++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/alloc/AllocAreaMapper.xml
@@ -99,13 +99,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- delete from alloc_area where area_id = #{areaId}
+ delete from alloc_area where parent_id != 0 and area_id = #{areaId}
- delete from alloc_area where area_id in
-
- #{areaId}
-
+ delete from alloc_area
+ where parent_id != 0 and area_id in
+
+ #{areaId}
+