| | |
| | | public Response searchStationAll(@RequestParam int pageCurr, @RequestParam int pageSize |
| | | , @RequestParam(required = false) String stationName1 |
| | | , @RequestParam(required = false) String stationName2 |
| | | , @RequestParam(required = false) String stationName5) { |
| | | return service.searchStationAll(pageCurr, pageSize, stationName1, stationName2, stationName5); |
| | | , @RequestParam(required = false) String stationName5 |
| | | , @RequestParam(required = false) String nodeStation |
| | | , @RequestParam(required = false) String stationType) { |
| | | return service.searchStationAll(pageCurr, pageSize, stationName1, stationName2, stationName5, nodeStation, stationType); |
| | | } |
| | | |
| | | @ApiOperation(value = "添加站点") |
| | |
| | | //穿梭框查询所有的站点 |
| | | List<StationInf> searchShuttle(long uId); |
| | | |
| | | List<StationInf> searchStationAll(String stationName1, String stationName2, String stationName5, String uId); |
| | | List<StationInf> searchStationAll(String stationName1, String stationName2, String stationName5, String nodeStation, String stationType, String uId); |
| | | |
| | | //站点信息 |
| | | List<StationInf> getSateAnalysis(int userId); |
| | |
| | | } |
| | | |
| | | //查询所有的站点 |
| | | public Response searchStationAll(int pageCurr, int pageSize, String stationName1, String stationName2, String stationName5) { |
| | | public Response searchStationAll(int pageCurr, int pageSize, String stationName1, String stationName2, String stationName5, String nodeStation, String stationType) { |
| | | PageHelper.startPage(pageCurr, pageSize); |
| | | /* QueryWrapper wrapper = new QueryWrapper(); |
| | | if (!(stationName1 == null || stationName1.isEmpty())) { |
| | |
| | | } |
| | | List<StationInf> list = mapper.selectList(wrapper);*/ |
| | | String uId = ActionUtil.getUser().getUId().toString(); |
| | | List<StationInf> list = mapper.searchStationAll(stationName1, stationName2, stationName5, uId); |
| | | List<StationInf> list = mapper.searchStationAll(stationName1, stationName2, stationName5, nodeStation, stationType, uId); |
| | | PageInfo pageInfo = new PageInfo(list); |
| | | return new Response().setII(1, list.size() > 0, pageInfo, "查询站点"); |
| | | } |
| | |
| | | <if test="stationName5!=null&&stationName5!=''"> |
| | | and stationName5=#{stationName5} |
| | | </if> |
| | | <if test="stationType!=null&&stationType!=''"> |
| | | and stationType=#{stationType} |
| | | </if> |
| | | <if test="nodeStation!=null&&nodeStation!=''"> |
| | | and nodeStation=#{nodeStation} |
| | | </if> |
| | | and stationId in ( |
| | | select distinct db_user.tb_user_battgroup_baojigroup_battgroup.StationId |
| | | from db_user.tb_user_battgroup_baojigroup_battgroup |