<发布地图根据线路查询无效>bug修改

This commit is contained in:
joylink_zhangsai 2020-12-11 09:58:49 +08:00
parent b1e4191cea
commit 5c41dae39b
2 changed files with 5 additions and 0 deletions

View File

@ -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<MapInfo> page = (Page<MapInfo>) mapInfoDAO.selectByExample(example);
List<MapVO> mapVOS = MapVO.convert2VOList(page.getResult());
return PageVO.convert(page, mapVOS);

View File

@ -24,4 +24,6 @@ public class MapQueryVO extends PageQueryVO {
*/
@NotBlank(message="所属城市不能为空", groups= {DraftMapCreateCheck.class})
private String cityCode;
private String lineCode;
}