Commit 205d6b01 by 杨林龙

删除重复代码

1 parent c549a714
......@@ -45,11 +45,10 @@ public class ElectricInStoreDriveService {
List<ElectricInStoreExport> electricInStoreExportList = inStoreDriveMapper.getAllTestDrive(search);
log.info("全部试驾车辆的数量===" + electricInStoreExportList.size());
for (ElectricInStoreExport electricInStoreExport : electricInStoreExportList) {
log.info("查询在店统计车辆的Sn===" + electricInStoreExport.getSn());
log.info("查询在店统计车辆车辆Id===" + electricInStoreExport.getVehicleId());
electricInStoreExport.setStatDate(DateUtil.formatDate(new Date()));
// 如果sn不为null 则封装每天具体数据
if (electricInStoreExport.getSn() != null) {
search.setVehicleId(electricInStoreExport.getVehicleId());
List<ElectricInStoreDrive> inStoreDataList = inStoreDriveMapper.getInStoreDataListBySn(search);
Integer num1 = 0;
......@@ -346,7 +345,6 @@ public class ElectricInStoreDriveService {
electricInStoreExport.setDayNum31(replaceDayNum(electricInStoreExport.getDayNum31()));
}
}
}
return electricInStoreExportList;
}
......
......@@ -2118,5 +2118,17 @@ public class VehicleServiceTest {
System.out.println("vehicleService success= ");
}
@Test
public void test12() {
R<DeviceStatusModel> deviceStatusBySn = deviceFeignService.getDeviceStatusBySn("75108160001", 0L);
System.out.println("deviceStatusBySn = " + deviceStatusBySn);
if (deviceStatusBySn != null) {
// 状态(0 行驶中 1 静止 2离线 3 在线)
DeviceStatusModel deviceStatusModel = deviceStatusBySn.getData(DeviceStatusModel.class);
if (deviceStatusModel != null) {
System.out.println("deviceStatusModel = " + deviceStatusModel.getStatus());
}
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!