Commit 483690dc authored by chenzhao's avatar chenzhao

修改代码

parent f881b704
......@@ -798,17 +798,13 @@ public class PointServiceImpl implements IPointService {
//给前端返回是否绑定标识
Long[] longs = new Long[]{pointId};
List<RoutePoint> list = iRoutePointDao.queryRoutePoint(routeId, longs);
List<String> rouPonintId = new ArrayList<>();
list.forEach(e->rouPonintId.add(String.valueOf(e.getId())));
List<String> strings = iRoutePointItemDao.selectByroutePointIds(rouPonintId);
String ids = StringUtils.join(strings.toArray(), ",");
String excludeItems = list.get(0).getExcludeItems();
resList.forEach(e->{
if (ids.contains(e.get("itemId").toString())){
if (excludeItems.contains(e.get("itemId").toString())){
e.put("checked",false);
}else {
e.put("checked",true);
}
});
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