| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @Service |
| | |
| | | */ |
| | | @Transactional |
| | | public int save(BaDistrict po){ |
| | | return this.dao.insert(po) ; |
| | | return this.dao.putin(po) ; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据级别获取行政区划列表 |
| | | * @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); |
| | | } |
| | | } |