From 5c41dae39b31822061422eaf5cdd3fb3a3695f2e Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Fri, 11 Dec 2020 09:58:49 +0800 Subject: [PATCH] =?UTF-8?q?<=E5=8F=91=E5=B8=83=E5=9C=B0=E5=9B=BE=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E7=BA=BF=E8=B7=AF=E6=9F=A5=E8=AF=A2=E6=97=A0=E6=95=88?= =?UTF-8?q?>bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/club/joylink/rtss/services/MapService.java | 3 +++ src/main/java/club/joylink/rtss/vo/client/MapQueryVO.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/main/java/club/joylink/rtss/services/MapService.java b/src/main/java/club/joylink/rtss/services/MapService.java index 1f5484797..49ae19bc6 100644 --- a/src/main/java/club/joylink/rtss/services/MapService.java +++ b/src/main/java/club/joylink/rtss/services/MapService.java @@ -189,6 +189,9 @@ public class MapService implements IMapService { if (StringUtils.hasText(queryVO.getCityCode())) { criteria.andCityCodeEqualTo(queryVO.getCityCode()); } + if (StringUtils.hasText(queryVO.getLineCode())) { + criteria.andLineCodeEqualTo(queryVO.getLineCode()); + } Page page = (Page) mapInfoDAO.selectByExample(example); List mapVOS = MapVO.convert2VOList(page.getResult()); return PageVO.convert(page, mapVOS); diff --git a/src/main/java/club/joylink/rtss/vo/client/MapQueryVO.java b/src/main/java/club/joylink/rtss/vo/client/MapQueryVO.java index 408868d02..68abac662 100644 --- a/src/main/java/club/joylink/rtss/vo/client/MapQueryVO.java +++ b/src/main/java/club/joylink/rtss/vo/client/MapQueryVO.java @@ -24,4 +24,6 @@ public class MapQueryVO extends PageQueryVO { */ @NotBlank(message="所属城市不能为空", groups= {DraftMapCreateCheck.class}) private String cityCode; + + private String lineCode; }