Commit 483690dc authored by chenzhao's avatar chenzhao

修改代码

parent f881b704
...@@ -798,17 +798,13 @@ public class PointServiceImpl implements IPointService { ...@@ -798,17 +798,13 @@ public class PointServiceImpl implements IPointService {
//给前端返回是否绑定标识 //给前端返回是否绑定标识
Long[] longs = new Long[]{pointId}; Long[] longs = new Long[]{pointId};
List<RoutePoint> list = iRoutePointDao.queryRoutePoint(routeId, longs); List<RoutePoint> list = iRoutePointDao.queryRoutePoint(routeId, longs);
List<String> rouPonintId = new ArrayList<>(); String excludeItems = list.get(0).getExcludeItems();
list.forEach(e->rouPonintId.add(String.valueOf(e.getId())));
List<String> strings = iRoutePointItemDao.selectByroutePointIds(rouPonintId);
String ids = StringUtils.join(strings.toArray(), ",");
resList.forEach(e->{ resList.forEach(e->{
if (ids.contains(e.get("itemId").toString())){ if (excludeItems.contains(e.get("itemId").toString())){
e.put("checked",false); e.put("checked",false);
}else { }else {
e.put("checked",true); e.put("checked",true);
} }
}); });
return resList; return resList;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment