运营区筛选站点
This commit is contained in:
parent
4f4962bb38
commit
85d2b1a4c3
@ -13,6 +13,7 @@ import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import static com.cdzy.operations.model.entity.table.EbikeSiteTableDef.EBIKE_SITE;
|
||||
|
||||
@ -72,8 +73,10 @@ public class EbikeSiteController {
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("list")
|
||||
public JsonResult<?> list() {
|
||||
List<EbikeSite> list = ebikeSiteService.list();
|
||||
public JsonResult<?> list(Long regionId) {
|
||||
QueryWrapper queryWrapper = QueryWrapper.create()
|
||||
.where(EBIKE_SITE.REGION_ID.eq(regionId, Objects.nonNull(regionId)));
|
||||
List<EbikeSite> list = ebikeSiteService.list(queryWrapper);
|
||||
return JsonResult.success(list);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user