From 2bc9353473a664e974db96e7728ce1b48e0a0bba Mon Sep 17 00:00:00 2001 From: lxw <810412026@qq.com> Date: 星期四, 09 三月 2023 16:28:14 +0800 Subject: [PATCH] 总站查询加条件 --- src/main/java/com/whyc/controller/StationInfController.java | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/controller/StationInfController.java b/src/main/java/com/whyc/controller/StationInfController.java index 9c458f1..2e43358 100644 --- a/src/main/java/com/whyc/controller/StationInfController.java +++ b/src/main/java/com/whyc/controller/StationInfController.java @@ -2,7 +2,9 @@ import com.whyc.dto.Response; import com.whyc.pojo.StationInf; +import com.whyc.pojo.UserInf; import com.whyc.service.StationInfService; +import com.whyc.util.ActionUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; @@ -36,4 +38,25 @@ return service.deleteStation(num); } + @GetMapping("/searchAllStationName1") + @ApiOperation(value = "鏌ヨ鐪�") + public Response searchAllStationName1() { + UserInf userInf = (UserInf) ActionUtil.getUser(); + return service.searchAllStationName1(userInf.getUId().intValue()); + } + + @GetMapping("/searchAllStationName2") + @ApiOperation("鏌ヨ甯�") + public Response searchAllStationName2(@RequestParam(required = false) String stationName1) { + UserInf userInf = (UserInf) ActionUtil.getUser(); + return service.searchAllStationName2(userInf.getUId().intValue(), stationName1); + } + + @GetMapping("/searchAllStationName5") + @ApiOperation("鏌ヨ鍖�") + public Response searchAllStationName5(@RequestParam(required = false) String stationName1, @RequestParam(required = false) String stationName2) { + UserInf userInf = (UserInf) ActionUtil.getUser(); + return service.searchAllStationName5(userInf.getUId().intValue(), stationName1, stationName2); + } + } -- Gitblit v1.9.1