| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.service_community.entity.BcRegion; |
| | | import com.panzhihua.service_community.service.BcRegionService; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | /** |
| | | * 关键字查询 |
| | | * |
| | | * @param name 查询实体 |
| | | * @param province 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestParam("name") String name) { |
| | | return this.bcRegionService.pageList(name); |
| | | public R selectAll(@RequestParam("province") String province, @RequestParam("city") String city, @RequestParam("county")String country,@RequestParam("town")String town) { |
| | | return this.bcRegionService.pageList(province,city,country,town); |
| | | } |
| | | @GetMapping("levelList") |
| | | public R levelList(@RequestParam("level")Integer level,@RequestParam("code")String code){ |
| | | return this.bcRegionService.levelList(level,code); |
| | | } |
| | | |
| | | @GetMapping("levelListBackstage") |
| | | public R levelListBackstage(){ |
| | | return this.bcRegionService.levelListBackstage(); |
| | | } |
| | | } |