| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | return R.ok(regionService.list(new LambdaQueryWrapper<Region>() |
| | | .eq(Region::getParentId, parentId))); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据城市编号获取数据 |
| | | * @param code |
| | | * @return |
| | | */ |
| | | @PostMapping("/getRegionBiCode") |
| | | public R<Region> getRegionBiCode(@RequestParam("code") String code){ |
| | | Region one = regionService.getOne(new LambdaQueryWrapper<Region>().eq(Region::getCode, code)); |
| | | return R.ok(one); |
| | | } |
| | | } |