|
|
@@ -37,8 +37,13 @@ public class CityDataController extends BaseController {
|
|
|
|
|
|
|
|
|
//@PreAuthorize("hasRole('ADMIN')")
|
|
|
+ @PostMapping("/all")
|
|
|
+ public Page<CityData> all(@RequestBody PageQuery pageQuery) {
|
|
|
+ return cityDataRepo.findAll(JpaUtils.toSpecification(pageQuery, CityData.class), JpaUtils.toPageRequest(pageQuery));
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/all")
|
|
|
- public Page<CityData> all(PageQuery pageQuery) {
|
|
|
+ public Page<CityData> all1(PageQuery pageQuery) {
|
|
|
return cityDataRepo.findAll(JpaUtils.toSpecification(pageQuery, CityData.class), JpaUtils.toPageRequest(pageQuery));
|
|
|
}
|
|
|
|