Commit 296375cf by 刘宇峰

bug处理

1 parent 1097aaac
...@@ -19,7 +19,6 @@ import org.springframework.beans.BeanUtils; ...@@ -19,7 +19,6 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.StopWatch; import org.springframework.util.StopWatch;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -181,6 +180,9 @@ public class VehicleMonitorSevice { ...@@ -181,6 +180,9 @@ public class VehicleMonitorSevice {
*/ */
private List<OrgVehicleTree> convert2ovt(List<OrgVehicleModel> modelList) { private List<OrgVehicleTree> convert2ovt(List<OrgVehicleModel> modelList) {
List<OrgVehicleTree> vehicleList = Lists.newArrayList(); List<OrgVehicleTree> vehicleList = Lists.newArrayList();
if (CollectionUtils.isEmpty(modelList)) {
return vehicleList;
}
modelList.forEach(model -> { modelList.forEach(model -> {
OrgVehicleTree ovt = new OrgVehicleTree(); OrgVehicleTree ovt = new OrgVehicleTree();
ovt.setId("d" + model.getId());//加个前缀是为了保证前端树形控件id的唯一性(组织o,用户u,车辆v,设备d) ovt.setId("d" + model.getId());//加个前缀是为了保证前端树形控件id的唯一性(组织o,用户u,车辆v,设备d)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!