|  |  | 
 |  |  | import org.springframework.transaction.annotation.Transactional; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  |  | 
 |  |  | @Slf4j | 
 |  |  | @Service | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @Transactional | 
 |  |  |     public int delete(Long id){ | 
 |  |  |         return this.dao.deleteLogicById(id) ; | 
 |  |  |         return this.dao.deleteByPrimaryKey(id) ; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据级别获取行政区划列表 | 
 |  |  |      * @param level | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public List<Map<String, Object>> getDistrictgsByLevel(Integer level) { | 
 |  |  |         return dao.getDistrictgsByLevel(level); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据父ID获取行政区划列表 | 
 |  |  |      * @param supperId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public List<Map<String, Object>> getDistrictsBySupperId(Long supperId) { | 
 |  |  |         return dao.getDistrictsBySupperId(supperId); | 
 |  |  |     } | 
 |  |  | } |