Commit d01e49e1 by 谢海旭

【ID1016891】 bug修复

1 parent a792af20
......@@ -526,15 +526,14 @@ public class RiskAssessmentService {
throw new AdminException("车辆不存在");
}
List<VehicleDevice> devices = vehicleDeviceMapper.selectBindDeviceByVehicleId(vehicleId);
List<BasicDeviceDTO> devices = vehicleDeviceMapper.selectBindDeviceByVehicleIdOrderByCreatedDate(vehicleId);
List<String> snList = devices.stream().map(device -> device.getSn()).collect(Collectors.toList());
devices.sort(Comparator.comparing(VehicleDevice::getId));
Map<String, String> snDeviceNameMap = new HashMap<>();
int wireTypeNum = 1;
int wireLessTypeNum = 1;
for (VehicleDevice device : devices) {
Integer type = device.getWireType();
for (BasicDeviceDTO device : devices) {
Integer type = device.getSource();
String typeName = TypeConverseEnum.SourceEnum.getStrBySourceType(type);
if (type.equals(TypeConverseEnum.SourceEnum.HAS_SOURCE.getSourceType())) {
snDeviceNameMap.put(device.getSn(), typeName + wireTypeNum);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!