Commit 8140fef0 by 杨林龙

添加试驾车辆的时候 添加车主姓名

1 parent 01fbd23d
......@@ -1097,7 +1097,7 @@ public class VehicleService {
}
}
}
// 暂时删除设备状态的筛选条件
// 暂时删除设备状态的筛选条件
// if (search.getDeviceState() != null) {
// vehicleInfoList.removeIf(vehicleInfoPageDTO -> {
// Integer deviceState = vehicleInfoPageDTO.getDeviceState();
......@@ -1234,7 +1234,7 @@ public class VehicleService {
}
}
}
// 暂时删除设备状态的筛选条件
// 暂时删除设备状态的筛选条件
// if (search.getDeviceState() != null) {
// vehicleInfoReportExportList.removeIf(vehicleInfoReportExport -> {
// Integer deviceState = vehicleInfoReportExport.getDeviceState();
......@@ -1267,10 +1267,13 @@ public class VehicleService {
vehicleDeviceService.saveSnToVehicleId(deviceInfoDto.getSn(), vehicle.getId());
// 修改设备为激活状态
Device unActiveDeviceBySn = deviceService.getUnActiveDeviceBySn(deviceInfoDto.getSn());
// 激活状态:0未激活,1激活
unActiveDeviceBySn.setActivateStatus(1);
unActiveDeviceBySn.setActivateTime(new Date());
deviceService.updateDevice(unActiveDeviceBySn);
if (unActiveDeviceBySn != null) {
// 激活状态:0未激活,1激活
log.info("设置设备为激活===" + deviceInfoDto.getSn());
unActiveDeviceBySn.setActivateStatus(1);
unActiveDeviceBySn.setActivateTime(new Date());
deviceService.updateDevice(unActiveDeviceBySn);
}
}
}
......@@ -1319,9 +1322,12 @@ public class VehicleService {
// 修改设备为激活状态
Device unActiveDeviceBySn = deviceService.getUnActiveDeviceBySn(deviceInfoDto.getSn());
// 激活状态:0未激活,1激活
unActiveDeviceBySn.setActivateStatus(1);
unActiveDeviceBySn.setActivateTime(new Date());
deviceService.updateDevice(unActiveDeviceBySn);
if (unActiveDeviceBySn != null) {
log.info("设置设备为激活===" + deviceInfoDto.getSn());
unActiveDeviceBySn.setActivateStatus(1);
unActiveDeviceBySn.setActivateTime(new Date());
deviceService.updateDevice(unActiveDeviceBySn);
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!