Commit e426b9be by 杨林龙

报表管理页面 优化车型显示

1 parent f18e2c75
...@@ -1334,6 +1334,7 @@ public class VehicleService { ...@@ -1334,6 +1334,7 @@ public class VehicleService {
@Transactional(rollbackFor = AdminException.class) @Transactional(rollbackFor = AdminException.class)
protected void insertVehicleInfo(VehicleInfoImport vehicleInfoImport) { protected void insertVehicleInfo(VehicleInfoImport vehicleInfoImport) {
log.info("开始导入车辆和绑定设备==="); log.info("开始导入车辆和绑定设备===");
// 查询库里面有没有存在该车架号 如果没有存在该车架号则新增该车架号
Vehicle vehicle = getVehicleByVin(vehicleInfoImport.getVin()); Vehicle vehicle = getVehicleByVin(vehicleInfoImport.getVin());
if (vehicle == null) { if (vehicle == null) {
vehicle = new Vehicle(); vehicle = new Vehicle();
......
...@@ -2154,7 +2154,7 @@ public class VehicleServiceTest { ...@@ -2154,7 +2154,7 @@ public class VehicleServiceTest {
@Test @Test
public void test15(){ public void test15(){
Device device = deviceService.getDeviceBySn("1610816002"); Device device = deviceService.getDeviceBySn("1590000008");
device.setActivateTime(null); device.setActivateTime(null);
device.setActivateStatus(0); device.setActivateStatus(0);
deviceService.updateDevice(device); deviceService.updateDevice(device);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!