<发布地图根据线路查询无效>bug修改
This commit is contained in:
parent
b1e4191cea
commit
5c41dae39b
@ -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);
|
||||
|
@ -24,4 +24,6 @@ public class MapQueryVO extends PageQueryVO {
|
||||
*/
|
||||
@NotBlank(message="所属城市不能为空", groups= {DraftMapCreateCheck.class})
|
||||
private String cityCode;
|
||||
|
||||
private String lineCode;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user