Commit 6ad6da01 by 王欣伟

山东顺骋开发完成

1 parent bc63019d
package cn.com.glsx; package cn.com.glsx;
import cn.com.glsx.admin.modules.model.datasync.TenantDeviceSync;
import com.glsx.plat.context.EnableRestAdmin; import com.glsx.plat.context.EnableRestAdmin;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableMBeanExport; import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.jmx.support.RegistrationPolicy; import org.springframework.jmx.support.RegistrationPolicy;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
......
package cn.com.glsx.admin.common.enums;
import com.glsx.plat.exception.SystemMessage;
/**
* 数据部门 - 租户ID
*
* @author wangxw
*/
public enum TenantDataEnum {
SHANDONG_SHUNCHENG(32, "山东顺骋")
;
private final Integer code;
private final String message;
TenantDataEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
TenantDataEnum(SystemMessage systemMessage) {
this.code = systemMessage.getCode();
this.message = systemMessage.getMsg();
}
public Integer getCode() {
return code;
}
public String getMessage() {
return message;
}
}
package cn.com.glsx.admin.common.enums;
import com.glsx.plat.exception.SystemMessage;
/**
* 数据部门 - 数据同步操作
*
* @author wangxw
*/
public enum TenantDataOperatorEnum {
ADD_DEVICE(1, "添加"),
DELETE_DEVICE(2, "删除"),
UPDATE_DEVICE(3, "更新")
;
private final Integer code;
private final String message;
TenantDataOperatorEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
TenantDataOperatorEnum(SystemMessage systemMessage) {
this.code = systemMessage.getCode();
this.message = systemMessage.getMsg();
}
public Integer getCode() {
return code;
}
public String getMessage() {
return message;
}
}
package cn.com.glsx.admin.modules.component;
import cn.com.glsx.admin.common.enums.TenantDataEnum;
import cn.com.glsx.admin.common.enums.TenantDataOperatorEnum;
import cn.com.glsx.admin.modules.model.datasync.TenantDeviceSync;
import com.glsx.plat.context.utils.PropertiesUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
/**
* @author wangxw
* @version 1.0.0
* @ClassName DeviceSyncEventHandle.java
* @description: 租户设备数据同步到数据平台 - 处理设备添加、删除事件
* @createTime 2022年03月07日 19:47:00
*/
@Slf4j
@Component
public class DeviceSyncEventHandle {
@Autowired
private TenantDeviceSyncComponent tenantDeviceSyncComponent;
@EventListener
public void event(TenantDeviceSync tenantDeviceSync) {
log.info("event channel req:{} snSize:{}", tenantDeviceSync.getTenantId(), tenantDeviceSync.getSnList().size());
if (tenantDeviceSync==null
|| tenantDeviceSync.getTenantId()==null
|| CollectionUtils.isEmpty(tenantDeviceSync.getSnList())
|| tenantDeviceSync.getTenantDataOperatorEnum()==null) {
return;
}
// 验证客户推送状态
boolean pushShunChengStatus = validTenantSDShunCheng(tenantDeviceSync.getTenantId());
if (!pushShunChengStatus) {
return;
}
// 当前默认山东顺骋,后续可以根据validTenant状态进行判断
TenantDataEnum tenantDataEnum = TenantDataEnum.SHANDONG_SHUNCHENG;
if (tenantDeviceSync.getTenantDataOperatorEnum().equals(TenantDataOperatorEnum.ADD_DEVICE)) {
tenantDeviceSyncComponent.addDeviceList(tenantDeviceSync.getSnList(), tenantDataEnum);
} else if (tenantDeviceSync.getTenantDataOperatorEnum().equals(TenantDataOperatorEnum.DELETE_DEVICE)) {
tenantDeviceSyncComponent.deleteDeviceList(tenantDeviceSync.getSnList(), tenantDataEnum);
} else {
log.info("un implement operator.{}", tenantDeviceSync.getTenantDataOperatorEnum().getMessage());
}
}
/**
* 验证客户是否是山东顺骋
* @param tenantId
* @return
*/
private boolean validTenantSDShunCheng(Long tenantId) {
String sdShunChengConfigTenantId = PropertiesUtils.getProperty("tenant.id.shandongshuncheng");
if (sdShunChengConfigTenantId.equals(String.valueOf(tenantId))) {
return true;
}
return false;
}
}
package cn.com.glsx.admin.modules.component;
import cn.com.glsx.admin.common.enums.TenantDataEnum;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.http.HttpUtil;
import com.glsx.plat.common.utils.StringUtils;
import com.glsx.plat.context.utils.PropertiesUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import java.text.MessageFormat;
import java.util.List;
/**
* @author wangxw
* @version 1.0.0
* @ClassName TenantDeviceSyncComponent.java
* @description: 租户设备数据同步到数据平台 - 用于数据平台数据分发
* @createTime 2022年03月07日 19:47:00
*/
@Slf4j
@Component
public class TenantDeviceSyncComponent {
// 0关,1开
private static int valid_on = 1;
private static int valid_off = 0;
/**
* 添加同步设备
* @param sn
* @param tenantDataEnum
*/
@Async("threadPoolTaskExecutor")
public void addDevice(String sn, TenantDataEnum tenantDataEnum) {
if (StringUtils.isBlank(sn)) {
return;
}
invokeDataAPI(sn, tenantDataEnum, valid_on);
}
/**
* 删除同步设备
* @param sn
* @param tenantDataEnum
*/
@Async("threadPoolTaskExecutor")
public void deleteDevice(String sn, TenantDataEnum tenantDataEnum) {
if (StringUtils.isBlank(sn)) {
return;
}
invokeDataAPI(sn, tenantDataEnum, valid_off);
}
/**
* 批量添加设备
* @param snList
* @param tenantDataEnum
*/
@Async("threadPoolTaskExecutor")
public void addDeviceList(List<String> snList, TenantDataEnum tenantDataEnum) {
if (CollectionUtil.isEmpty(snList)) {
return;
}
for (String sn: snList) {
invokeDataAPI(sn, tenantDataEnum, valid_on);
}
}
/**
* 批量删除设备
* @param snList
* @param tenantDataEnum
*/
@Async("threadPoolTaskExecutor")
public void deleteDeviceList(List<String> snList, TenantDataEnum tenantDataEnum) {
if (CollectionUtil.isEmpty(snList)) {
return;
}
for (String sn: snList) {
invokeDataAPI(sn, tenantDataEnum, valid_off);
}
}
private void invokeDataAPI(String sn, TenantDataEnum tenantDataEnum, int valid) {
String modul = PropertiesUtils.getProperty("tenant.deivce.sync.datahourse.url");
String timeOutConfig = PropertiesUtils.getProperty("tenant.deivce.sync.datahourse.timeout");
int timeOut = (StringUtils.isNotBlank(timeOutConfig))?Integer.parseInt(timeOutConfig):3000;
try {
String url = MessageFormat.format(modul, sn, tenantDataEnum.getCode(), valid);
log.info("tenant device data sync to data url:{}", url);
String result = HttpUtil.get(url, timeOut);
log.info("tenant device data sync result:{}", result);
} catch (Exception e) {
log.error("tenant device data sync exception:{}", e.getMessage(), e);
}
}
}
package cn.com.glsx.admin.modules.model.datasync;
import cn.com.glsx.admin.common.enums.TenantDataOperatorEnum;
import java.util.List;
public class TenantDeviceSync{
/**
* 租户ID
*/
private Long tenantId;
/**
* 设备列表
*/
private List<String> snList;
/**
* 操作类型
*/
private TenantDataOperatorEnum tenantDataOperatorEnum;
public TenantDeviceSync() {
}
public TenantDeviceSync(Long tenantId, List<String> snList, TenantDataOperatorEnum tenantDataOperatorEnum) {
this.setTenantId(tenantId);
this.setSnList(snList);
this.setTenantDataOperatorEnum(tenantDataOperatorEnum);
}
public Long getTenantId() {
return tenantId;
}
public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
}
public List<String> getSnList() {
return snList;
}
public void setSnList(List<String> snList) {
this.snList = snList;
}
public TenantDataOperatorEnum getTenantDataOperatorEnum() {
return tenantDataOperatorEnum;
}
public void setTenantDataOperatorEnum(TenantDataOperatorEnum tenantDataOperatorEnum) {
this.tenantDataOperatorEnum = tenantDataOperatorEnum;
}
}
...@@ -4,10 +4,12 @@ import cn.com.glsx.admin.common.constants.Constants; ...@@ -4,10 +4,12 @@ import cn.com.glsx.admin.common.constants.Constants;
import cn.com.glsx.admin.common.constants.ConstantsDevice; import cn.com.glsx.admin.common.constants.ConstantsDevice;
import cn.com.glsx.admin.common.constants.ConstantsVehicle; import cn.com.glsx.admin.common.constants.ConstantsVehicle;
import cn.com.glsx.admin.common.enums.ResultEnum; import cn.com.glsx.admin.common.enums.ResultEnum;
import cn.com.glsx.admin.common.enums.TenantDataOperatorEnum;
import cn.com.glsx.admin.common.exception.AdminException; import cn.com.glsx.admin.common.exception.AdminException;
import cn.com.glsx.admin.modules.entity.*; import cn.com.glsx.admin.modules.entity.*;
import cn.com.glsx.admin.modules.mapper.*; import cn.com.glsx.admin.modules.mapper.*;
import cn.com.glsx.admin.modules.model.*; import cn.com.glsx.admin.modules.model.*;
import cn.com.glsx.admin.modules.model.datasync.TenantDeviceSync;
import cn.com.glsx.admin.modules.model.export.TrialDriveVehicleExport; import cn.com.glsx.admin.modules.model.export.TrialDriveVehicleExport;
import cn.com.glsx.admin.modules.model.export.VehicleInfoReportExport; import cn.com.glsx.admin.modules.model.export.VehicleInfoReportExport;
import cn.com.glsx.admin.modules.model.imports.TrialDriveVehicleImport; import cn.com.glsx.admin.modules.model.imports.TrialDriveVehicleImport;
...@@ -26,6 +28,7 @@ import cn.com.glsx.devicemonitor.api.feign.DeviceFeignService; ...@@ -26,6 +28,7 @@ import cn.com.glsx.devicemonitor.api.feign.DeviceFeignService;
import cn.com.glsx.loggincenter.api.dto.request.CustomLogRequest; import cn.com.glsx.loggincenter.api.dto.request.CustomLogRequest;
import cn.com.glsx.publiccenter.api.dto.response.SysDictDataResponse; import cn.com.glsx.publiccenter.api.dto.response.SysDictDataResponse;
import cn.com.glsx.usercenter.api.dto.response.User; import cn.com.glsx.usercenter.api.dto.response.User;
import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.github.pagehelper.Page; import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
...@@ -1264,6 +1267,13 @@ public class VehicleService { ...@@ -1264,6 +1267,13 @@ public class VehicleService {
deviceService.updateDevice(unActiveDeviceBySn); deviceService.updateDevice(unActiveDeviceBySn);
} }
} }
// 发送设备添加事件
if (CollectionUtil.isEmpty(deviceInfoDtos)) {
return;
}
List<String> snList = deviceInfoDtos.stream().filter(deviceInfo -> StringUtils.isNotBlank(deviceInfo.getSn())).map(deviceInfo -> deviceInfo.getSn()).collect(Collectors.toList());
pushDeviceEvent(snList, TenantDataOperatorEnum.ADD_DEVICE);
} }
public VehicleInfoVo findVehicleInfoById(Long id) { public VehicleInfoVo findVehicleInfoById(Long id) {
...@@ -1398,6 +1408,12 @@ public class VehicleService { ...@@ -1398,6 +1408,12 @@ public class VehicleService {
for (VehicleInfoImport vehicleInfoImport : vehicleInfoList) { for (VehicleInfoImport vehicleInfoImport : vehicleInfoList) {
this.insertVehicleInfo(vehicleInfoImport); this.insertVehicleInfo(vehicleInfoImport);
} }
// 发送设备添加事件
if (CollectionUtil.isNotEmpty(vehicleInfoList)) {
List<String> snList = vehicleInfoList.stream().filter(vehicleInfo -> StringUtils.isNotBlank(vehicleInfo.getSn())).map(vehicleInfoImport -> vehicleInfoImport.getSn()).collect(Collectors.toList());
pushDeviceEvent(snList, TenantDataOperatorEnum.ADD_DEVICE);
}
} }
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
...@@ -1658,6 +1674,15 @@ public class VehicleService { ...@@ -1658,6 +1674,15 @@ public class VehicleService {
freq.setDelFlag(-1); freq.setDelFlag(-1);
deviceFreqMapper.updateByPrimaryKey(freq); deviceFreqMapper.updateByPrimaryKey(freq);
} }
// 发送设备删除事件
List<String> snList = new ArrayList<>();
snList.add(vehicleDevice.getSn());
pushDeviceEvent(snList, TenantDataOperatorEnum.DELETE_DEVICE);
}
private void pushDeviceEvent(List<String> snList, TenantDataOperatorEnum tenantDataOperatorEnum) {
applicationEventPublisher.publishEvent(new TenantDeviceSync(ShieldContextHolder.getTenantId(), snList, tenantDataOperatorEnum));
} }
public List<Vehicle> getAllVehicle() { public List<Vehicle> getAllVehicle() {
...@@ -1674,4 +1699,5 @@ public class VehicleService { ...@@ -1674,4 +1699,5 @@ public class VehicleService {
vehicle.setDelFlag(0); vehicle.setDelFlag(0);
return vehicleMapper.selectOne(vehicle); return vehicleMapper.selectOne(vehicle);
} }
} }
package cn.com.glsx.admin.modules.component;
import cn.com.glsx.Application;
import cn.com.glsx.admin.common.enums.TenantDataOperatorEnum;
import cn.com.glsx.admin.modules.model.datasync.TenantDeviceSync;
import cn.com.glsx.admin.modules.model.export.TearDownModelExport;
import cn.com.glsx.admin.modules.model.param.TearDownQueryBo;
import cn.com.glsx.admin.modules.model.param.VehicleLocationBo;
import cn.com.glsx.admin.modules.service.TearDownAlarmSevice;
import cn.com.glsx.admin.modules.service.VehicleMonitorSevice;
import cn.com.glsx.alarm.api.AlarmFeignClient;
import cn.com.glsx.alarm.services.model.AlarmBo;
import cn.com.glsx.auth.utils.ShieldContextHolder;
import cn.com.glsx.devicemonitor.api.dto.request.LocationHistoryRequest;
import cn.com.glsx.devicemonitor.api.enums.DeviceTypeRelationEnum;
import cn.com.glsx.devicemonitor.api.feign.GpsBsFeignService;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.glsx.plat.context.utils.PropertiesUtils;
import com.glsx.plat.core.web.R;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.test.context.junit4.SpringRunner;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class TenantDeviceSyncComponentTest {
@Autowired
private ApplicationEventPublisher applicationEventPublisher;
@Test
public void getTrackHistory() {
String modul = "http://192.168.3.236:40100/gpsmsg/setSyncDataDevice?DeviceNO={0}&cmdBit={1}&valid={2}";
modul = PropertiesUtils.getProperty("tenant.deivce.sync.datahourse.url");
String sn = "1710424001";
int cmdBit = 32;
// 0关,1开
int valid = 0;
int timeOut = 3000;
String url = MessageFormat.format(modul, sn, cmdBit, valid);
System.out.println("===" + url);
String result = HttpUtil.get(url, timeOut);
System.out.println(result);
}
@Test
public void publishEnvent() {
List<String> snList = new ArrayList<>();
snList.add("111111");
snList.add("111112");
snList.add("111113");
applicationEventPublisher.publishEvent(new TenantDeviceSync(123L, snList, TenantDataOperatorEnum.ADD_DEVICE));
System.out.println("success");
}
}
\ No newline at end of file \ No newline at end of file
...@@ -78,4 +78,9 @@ public class VehicleMonitorSeviceTest { ...@@ -78,4 +78,9 @@ public class VehicleMonitorSeviceTest {
List<VehicleLocationBo> vehicleLocation = vehicleMonitorSevice.getVehicleLocation(sns, deviceCode); List<VehicleLocationBo> vehicleLocation = vehicleMonitorSevice.getVehicleLocation(sns, deviceCode);
System.out.println("getVehicleLocation = " + JSON.toJSONString(vehicleLocation)); System.out.println("getVehicleLocation = " + JSON.toJSONString(vehicleLocation));
} }
@Test
public void getGetTree() {
vehicleMonitorSevice.selectTreeByOrgId(1L, 2);
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -15,6 +15,7 @@ import cn.com.glsx.alarm.services.model.DevicePowerDto; ...@@ -15,6 +15,7 @@ import cn.com.glsx.alarm.services.model.DevicePowerDto;
import cn.com.glsx.auth.model.Department; import cn.com.glsx.auth.model.Department;
import cn.com.glsx.auth.model.Role; import cn.com.glsx.auth.model.Role;
import cn.com.glsx.auth.model.SyntheticUser; import cn.com.glsx.auth.model.SyntheticUser;
import cn.com.glsx.auth.model.Tenant;
import cn.com.glsx.auth.utils.ShieldContextHolder; import cn.com.glsx.auth.utils.ShieldContextHolder;
import cn.com.glsx.devicemonitor.api.dto.response.DeviceStatusModel; import cn.com.glsx.devicemonitor.api.dto.response.DeviceStatusModel;
import cn.com.glsx.devicemonitor.api.feign.DeviceFeignService; import cn.com.glsx.devicemonitor.api.feign.DeviceFeignService;
...@@ -93,6 +94,13 @@ public class VehicleServiceTest { ...@@ -93,6 +94,13 @@ public class VehicleServiceTest {
user.setUserId(6551L); user.setUserId(6551L);
user.setIsSupperAdmin(false); user.setIsSupperAdmin(false);
user.setAccount("DGD101"); user.setAccount("DGD101");
// 山东顺骋租户数据
Tenant tenant = new Tenant();
tenant.setTenantId(82L);
tenant.setTenantName("山东顺骋");
user.setTenant(tenant);
Department department = new Department(); Department department = new Department();
department.setDeptId(182L); department.setDeptId(182L);
user.setDepartment(department); user.setDepartment(department);
...@@ -256,1689 +264,7 @@ public class VehicleServiceTest { ...@@ -256,1689 +264,7 @@ public class VehicleServiceTest {
typesBO.setName("京东车型库"); typesBO.setName("京东车型库");
typesBO.setEnableStatus(1); typesBO.setEnableStatus(1);
Integer[] typeIds = new Integer[]{ Integer[] typeIds = new Integer[]{
36622, 36622,36623,36624,36625,36628,36629,36630,36631,36600,36601,36602,36603,36606,36607,36608,36609,36626,36627,36632,36633,36604,36605,36610,36611,32044,32045,32050,32051,32040,32046,32041,32047,32042,32043,32048,32049,30088,30297,30306,30307,30293,30298,30294,30299,30295,30296,30300,30305,25901,25906,25902,25907,25898,25903,25899,25904,25900,25905,27076,27078,21567,21569,21568,21570,18658,21598,22883,22884,22885,22886,22887,22888,18637,20245,18638,20246,18639,20247,16571,20248,42417,42418,42419,42420,42423,42424,42425,42426,42421,42422,42427,42428,43603,43604,43605,43606,43596,43597,43598,43599,43607,43608,43600,43601,43593,43594,35368,32014,35367,35369,36412,35370,36413,35371,36414,32015,32016,32017,35372,36415,35373,36416,32018,32019,27317,26201,29978,29977,28656,27436,29973,27318,29974,27319,27320,29976,29975,23928,24833,23929,23924,24830,23925,24831,23839,23926,24832,23927,23922,24829,23923,19493,19491,19492,22889,19487,22890,19488,19489,19490,19485,19486,13527,16957,13526,13515,13523,13524,13525,13521,13522,12675,10766,10767,10762,10763,10764,10765,10760,10761,8585,8583,8584,8578,8579,8580,8581,8575,5890,5864,5886,5887,5888,5889,5863,4639,4637,4641,4642,4640,44081,44082,44083,44084,44085,44086,44087,44088,44089,37344,37345,37346,37347,37348,37204,37349,37350,36844,37351,37352,37353,31530,31527,31529,31526,37391,31524,37390,31525,31523,37389,27960,27961,27959,27957,27958,27954,27955,27956,25066,25067,25065,25063,25064,27080,25014,25062,24969,22389,22632,22633,22882,22881,18112,18109,18110,18111,18106,18107,18108,18103,18104,18105,12268,12415,12416,12417,12203,12418,12419,12412,12413,12414,9314,9311,9312,9313,9315,9308,9309,9310,9305,9306,9307,9316,5776,5780,5778,5777,5895,5782,5783,5781,5774,5775,5779,4449,4447,4448,4430,4444,4445,4446,4441,4442,4443,3674,3672,3673,6765,3670,3671,3667,3668,3669,6767,3665,3666,2643,2641,2652,2653,2642,1597,1723,1599,1596,1720,1721,2562,1397,1598,1878,35951,34968,35657,35658,35659,39962,39963,39964,39965,39966,43974,43975,43976,43977,43978,38819,38820,38821,38822,38400,38401,38823,38699,38825,38826,38402,38403,32898,32895,32896,32897,32892,32893,32894,29134,29135,29129,29130,29131,29132,29133,29125,29126,29127,29128,26244,26238,26237,26234,26235,26236,27079,24991,24992,24993,26229,24989,26232,24990,26156,22896,19465,22891,19460,22892,19461,22893,19462,22894,19463,22895,19464,18971,18972,18973,14411,14775,15533,15534,14774,15535,44786,44787,44788,44789,44790,44791,44792,44793,34853,34851,34854,34855,34856,34646,39929,39930,39931,39932,39933,39934,43097,43098,43099,43100,43101,43102,31521,42454,39893,42875,1145114,3621,3622,3623,2915,2916,2917,2918,2919,1398,1916,1917,1918,1522,1523,1524,1525,1526,145,146,147,325,326,327,3624,3625,3626,2920,2921,2922,3211,1920,1922,1923,2564,1527,1528,1529,1530,1653,329,854,870,981,982,1227,148,149,331,642,643,644,646,647,984,985,1071,1072,34703,27901,27902,27903,27904,27905,24079,24080,24081,24082,21117,21118,21119,15734,15837,15838,11446,11447,11448,9017,9019,9020,5302,7362,34704,30961,30962,30963,30964,30965,24083,25450,25451,27077,21120,21121,21122,15839,15840,15841,11449,11450,9021,9022,7363,7364,1149115,36622,36623,36624,36625,36628,36629,36630,36631,36600,36601,36602,36603,36606,36607,36608,36609,36626,36627,36632,36633,36604,36605,36610,36611,32044,32045,32050,32051,32040,32046,32041,32047,32042,32043,32048,32049,30088,30297,30306,30307,30293,30298,30294,30299,30295,30296,30300,30305,25901,25906,25902,25907,25898,25903,25899,25904,25900,25905,27076,27078,21567,21569,21568,21570,18658,21598,22883,22884,22885,22886,22887,22888,18637,20245,18638,20246,18639,20247,16571,20248,42417,42418,42419,42420,42423,42424,42425,42426,42421,42422,42427,42428,43603,43604,43605,43606,43596,43597,43598,43599,43607,43608,43600,43601,43593,43594,35368,32014,35367,35369,36412,35370,36413,35371,36414,32015,32016,32017,35372,36415,35373,36416,32018,32019,27317,26201,29978,29977,28656,27436,29973,27318,29974,27319,27320,29976,29975,23928,24833,23929,23924,24830,23925,24831,23839,23926,24832,23927,23922,24829,23923,19493,19491,19492,22889,19487,22890,19488,19489,19490,19485,19486,13527,16957,13526,13515,13523,13524,13525,13521,13522,12675,10766,10767,10762,10763,10764,10765,10760,10761,8585,8583,8584,8578,8579,8580,8581,8575,5890,5864,5886,5887,5888,5889,5863,4639,4637,4641,4642,4640,44081,44082,44083,44084,44085,44086,44087,44088,44089,37344,37345,37346,37347,37348,37204,37349,37350,36844,37351,37352,37353,31530,31527,31529,31526,37391,31524,37390,31525,31523,37389,27960,27961,27959,27957,27958,27954,27955,27956,25066,25067,25065,25063,25064,27080,25014,25062,24969,22389,22632,22633,22882,22881,18112,18109,18110,18111,18106,18107,18108,18103,18104,18105,12268,12415,12416,12417,12203,12418,12419,12412,12413,12414,9314,9311,9312,9313,9315,9308,9309,9310,9305,9306,9307,9316,5776,5780,5778,5777,5895,5782,5783,5781,5774,5775,5779,4449,4447,4448,4430,4444,4445,4446,4441,4442,4443,3674,3672,3673,6765,3670,3671,3667,3668,3669,6767,3665,3666,2643,2641,2652,2653,2642,1597,1723,1599,1596,1720,1721,2562,1397,1598,1878,35951,34968,35657,35658,35659,39962,39963,39964,39965,39966,43974,43975,43976,43977,43978,38819,38820,38821,38822,38400,38401,38823,38699,38825,38826,38402,38403,32898,32895,32896,32897,32892,32893,32894,29134,29135,29129,29130,29131,29132,29133,29125,29126,29127,29128,26244,26238,26237,26234,26235,26236,27079,24991,24992,24993,26229,24989,26232,24990,26156,22896,19465,22891,19460,22892,19461,22893,19462,22894,19463,22895,19464,18971,18972,18973,14411,14775,15533,15534,14774,15535,44786,44787,44788,44789,44790,44791,44792,44793,34853,34851,34854,34855,34856,34646,39929,39930,39931,39932,39933,39934,43097,43098,43099,43100,43101,43102,31521,42454,39893,42875,1145114,3621,3622,3623,2915,2916,2917,2918,2919,1398,1916,1917,1918,1522,1523,1524,1525,1526,145,146,147,325,326,327,3624,3625,3626,2920,2921,2922,3211,1920,1922,1923,2564,1527,1528,1529,1530,1653,329,854,870,981,982,1227,148,149,331,642,643,644,646,647,984,985,1071,1072,34703,27901,27902,27903,27904,27905,24079,24080,24081,24082,21117,21118,21119,15734,15837,15838,11446,11447,11448,9017,9019,9020,5302,7362,34704,30961,30962,30963,30964,30965,24083,25450,25451,27077,21120,21121,21122,15839,15840,15841,11449,11450,9021,9022,7363,7364,1149115,38058,38059,28945,28946,28947,38061,38062,28944,28943,28580,24182,24183,24184,24185,24186,24187,20194,20240,20195,16543,16542,16541,15816,39307,39313,39308,39314,39309,39315,28541,28542,39310,39316,39311,39317,39258,39318,39312,39319,39282,39320,25891,25892,25893,25894,24188,24189,24458,19523,19429,19508,19509,19510,19511,15948,15949,15950,10956,10957,10952,10953,10954,10955,4808,4809,4810,4811,4812,4813,4814,5407,4151,4152,4153,4154,4155,4156,3457,2095,2070,2096,2071,2097,2072,611,24204,24205,24206,24207,23072,28091,28092,28093,28094,27240,38382,38383,38384,38268,43089,43091,43090,43092,36464,36467,36465,36468,35773,36466,36361,36460,36362,36461,36299,36462,35772,36463,29140,29141,29142,29143,29144,20081,20871,20870,20916,20917,40643,40644,40645,40646,40647,40648,40649,40650,40651,40652,40653,40654,40655,40192,43914,43915,43916,43917,43918,43919,43920,36144,36148,36145,36149,36146,36150,36147,36151,30975,30976,30977,36238,36239,36256,36240,36257,36241,36258,36242,36259,36243,36260,36244,36261,35109,35110,30947,30948,30949,30950,30951,30302,30303,30945,30946,25647,25648,22375,22376,22378,22518,22270,22373,22374,15963,20619,20622,20623,15962,20614,12031,12077,12078,12076,12065,7252,7253,7254,7249,7250,7251,4330,3764,3449,2975,2976,3448,2974,1825,1627,1824,1626,1192,42645,42646,42647,42648,42649,29666,29667,29665,29254,29664,43204,43205,24851,24852,24853,24854,24680,21465,21466,21467,13041,11399,15608,13042,15609,41795,41796,41410,28950,28585,28951,28952,28953,28954,20143,20144,24126,20041,20139,20141,20142,19007,14500,14501,14435,14498,14499,5487,5703,5705,5704,5706,12652,38058,38059,28945,28946,28947,38061,38062,28944,28943,28580,24182,24183,24184,24185,24186,24187,20194,20240,20195,16543,16542,16541,15816,39307,39313,39308,39314,39309,39315,28541,28542,39310,39316,39311,39317,39258,39318,39312,39319,39282,39320,25891,25892,25893,25894,24188,24189,24458,19523,19429,19508,19509,19510,19511,15948,15949,15950,10956,10957,10952,10953,10954,10955,4808,4809,4810,4811,4812,4813,4814,5407,4151,4152,4153,4154,4155,4156,3457,2095,2070,2096,2071,2097,2072,611,24204,24205,24206,24207,23072,28091,28092,28093,28094,27240,38382,38383,38384,38268,43089,43091,43090,43092,36464,36467,36465,36468,35773,36466,36361,36460,36362,36461,36299,36462,35772,36463,29140,29141,29142,29143,29144,20081,20871,20870,20916,20917,40643,40644,40645,40646,40647,40648,40649,40650,40651,40652,40653,40654,40655,40192,43914,43915,43916,43917,43918,43919,43920,36144,36148,36145,36149,36146,36150,36147,36151,30975,30976,30977,36238,36239,36256,36240,36257,36241,36258,36242,36259,36243,36260,36244,36261,35109,35110,30947,30948,30949,30950,30951,30302,30303,30945,30946,25647,25648,22375,22376,22378,22518,22270,22373,22374,15963,20619,20622,20623,15962,20614,12031,12077,12078,12076,12065,7252,7253,7254,7249,7250,7251,4330,3764,3449,2975,2976,3448,2974,1825,1627,1824,1626,1192,42645,42646,42647,42648,42649,29666,29667,29665,29254,29664,43204,43205,24851,24852,24853,24854,24680,21465,21466,21467,13041,11399,15608,13042,15609,41795,41796,41410,28950,28585,28951,28952,28953,28954,20143,20144,24126,20041,20139,20141,20142,19007,14500,14501,14435,14498,14499,5487,5703,5705,5704,5706,12652,38954,38161,40568,40569,44685,36977,37813,38504,38505,36978,35060,35061,36857,38497,35062,36986,38367,33086,35063,30739,30740,29431,21496,21495,21497,18742,21498,40550,40551,40552,40553,40554,40555,40556,40557,40558,41692
36623,
36624,
36625,
36628,
36629,
36630,
36631,
36600,
36601,
36602,
36603,
36606,
36607,
36608,
36609,
36626,
36627,
36632,
36633,
36604,
36605,
36610,
36611,
32044,
32045,
32050,
32051,
32040,
32046,
32041,
32047,
32042,
32043,
32048,
32049,
30088,
30297,
30306,
30307,
30293,
30298,
30294,
30299,
30295,
30296,
30300,
30305,
25901,
25906,
25902,
25907,
25898,
25903,
25899,
25904,
25900,
25905,
27076,
27078,
21567,
21569,
21568,
21570,
18658,
21598,
22883,
22884,
22885,
22886,
22887,
22888,
18637,
20245,
18638,
20246,
18639,
20247,
16571,
20248,
42417,
42418,
42419,
42420,
42423,
42424,
42425,
42426,
42421,
42422,
42427,
42428,
43603,
43604,
43605,
43606,
43596,
43597,
43598,
43599,
43607,
43608,
43600,
43601,
43593,
43594,
35368,
32014,
35367,
35369,
36412,
35370,
36413,
35371,
36414,
32015,
32016,
32017,
35372,
36415,
35373,
36416,
32018,
32019,
27317,
26201,
29978,
29977,
28656,
27436,
29973,
27318,
29974,
27319,
27320,
29976,
29975,
23928,
24833,
23929,
23924,
24830,
23925,
24831,
23839,
23926,
24832,
23927,
23922,
24829,
23923,
19493,
19491,
19492,
22889,
19487,
22890,
19488,
19489,
19490,
19485,
19486,
13527,
16957,
13526,
13515,
13523,
13524,
13525,
13521,
13522,
12675,
10766,
10767,
10762,
10763,
10764,
10765,
10760,
10761,
8585,
8583,
8584,
8578,
8579,
8580,
8581,
8575,
5890,
5864,
5886,
5887,
5888,
5889,
5863,
4639,
4637,
4641,
4642,
4640,
44081,
44082,
44083,
44084,
44085,
44086,
44087,
44088,
44089,
37344,
37345,
37346,
37347,
37348,
37204,
37349,
37350,
36844,
37351,
37352,
37353,
31530,
31527,
31529,
31526,
37391,
31524,
37390,
31525,
31523,
37389,
27960,
27961,
27959,
27957,
27958,
27954,
27955,
27956,
25066,
25067,
25065,
25063,
25064,
27080,
25014,
25062,
24969,
22389,
22632,
22633,
22882,
22881,
18112,
18109,
18110,
18111,
18106,
18107,
18108,
18103,
18104,
18105,
12268,
12415,
12416,
12417,
12203,
12418,
12419,
12412,
12413,
12414,
9314,
9311,
9312,
9313,
9315,
9308,
9309,
9310,
9305,
9306,
9307,
9316,
5776,
5780,
5778,
5777,
5895,
5782,
5783,
5781,
5774,
5775,
5779,
4449,
4447,
4448,
4430,
4444,
4445,
4446,
4441,
4442,
4443,
3674,
3672,
3673,
6765,
3670,
3671,
3667,
3668,
3669,
6767,
3665,
3666,
2643,
2641,
2652,
2653,
2642,
1597,
1723,
1599,
1596,
1720,
1721,
2562,
1397,
1598,
1878,
35951,
34968,
35657,
35658,
35659,
39962,
39963,
39964,
39965,
39966,
43974,
43975,
43976,
43977,
43978,
38819,
38820,
38821,
38822,
38400,
38401,
38823,
38699,
38825,
38826,
38402,
38403,
32898,
32895,
32896,
32897,
32892,
32893,
32894,
29134,
29135,
29129,
29130,
29131,
29132,
29133,
29125,
29126,
29127,
29128,
26244,
26238,
26237,
26234,
26235,
26236,
27079,
24991,
24992,
24993,
26229,
24989,
26232,
24990,
26156,
22896,
19465,
22891,
19460,
22892,
19461,
22893,
19462,
22894,
19463,
22895,
19464,
18971,
18972,
18973,
14411,
14775,
15533,
15534,
14774,
15535,
44786,
44787,
44788,
44789,
44790,
44791,
44792,
44793,
34853,
34851,
34854,
34855,
34856,
34646,
39929,
39930,
39931,
39932,
39933,
39934,
43097,
43098,
43099,
43100,
43101,
43102,
31521,
42454,
39893,
42875,
1145114,
3621,
3622,
3623,
2915,
2916,
2917,
2918,
2919,
1398,
1916,
1917,
1918,
1522,
1523,
1524,
1525,
1526,
145,
146,
147,
325,
326,
327,
3624,
3625,
3626,
2920,
2921,
2922,
3211,
1920,
1922,
1923,
2564,
1527,
1528,
1529,
1530,
1653,
329,
854,
870,
981,
982,
1227,
148,
149,
331,
642,
643,
644,
646,
647,
984,
985,
1071,
1072,
34703,
27901,
27902,
27903,
27904,
27905,
24079,
24080,
24081,
24082,
21117,
21118,
21119,
15734,
15837,
15838,
11446,
11447,
11448,
9017,
9019,
9020,
5302,
7362,
34704,
30961,
30962,
30963,
30964,
30965,
24083,
25450,
25451,
27077,
21120,
21121,
21122,
15839,
15840,
15841,
11449,
11450,
9021,
9022,
7363,
7364,
1149115,
36622,
36623,
36624,
36625,
36628,
36629,
36630,
36631,
36600,
36601,
36602,
36603,
36606,
36607,
36608,
36609,
36626,
36627,
36632,
36633,
36604,
36605,
36610,
36611,
32044,
32045,
32050,
32051,
32040,
32046,
32041,
32047,
32042,
32043,
32048,
32049,
30088,
30297,
30306,
30307,
30293,
30298,
30294,
30299,
30295,
30296,
30300,
30305,
25901,
25906,
25902,
25907,
25898,
25903,
25899,
25904,
25900,
25905,
27076,
27078,
21567,
21569,
21568,
21570,
18658,
21598,
22883,
22884,
22885,
22886,
22887,
22888,
18637,
20245,
18638,
20246,
18639,
20247,
16571,
20248,
42417,
42418,
42419,
42420,
42423,
42424,
42425,
42426,
42421,
42422,
42427,
42428,
43603,
43604,
43605,
43606,
43596,
43597,
43598,
43599,
43607,
43608,
43600,
43601,
43593,
43594,
35368,
32014,
35367,
35369,
36412,
35370,
36413,
35371,
36414,
32015,
32016,
32017,
35372,
36415,
35373,
36416,
32018,
32019,
27317,
26201,
29978,
29977,
28656,
27436,
29973,
27318,
29974,
27319,
27320,
29976,
29975,
23928,
24833,
23929,
23924,
24830,
23925,
24831,
23839,
23926,
24832,
23927,
23922,
24829,
23923,
19493,
19491,
19492,
22889,
19487,
22890,
19488,
19489,
19490,
19485,
19486,
13527,
16957,
13526,
13515,
13523,
13524,
13525,
13521,
13522,
12675,
10766,
10767,
10762,
10763,
10764,
10765,
10760,
10761,
8585,
8583,
8584,
8578,
8579,
8580,
8581,
8575,
5890,
5864,
5886,
5887,
5888,
5889,
5863,
4639,
4637,
4641,
4642,
4640,
44081,
44082,
44083,
44084,
44085,
44086,
44087,
44088,
44089,
37344,
37345,
37346,
37347,
37348,
37204,
37349,
37350,
36844,
37351,
37352,
37353,
31530,
31527,
31529,
31526,
37391,
31524,
37390,
31525,
31523,
37389,
27960,
27961,
27959,
27957,
27958,
27954,
27955,
27956,
25066,
25067,
25065,
25063,
25064,
27080,
25014,
25062,
24969,
22389,
22632,
22633,
22882,
22881,
18112,
18109,
18110,
18111,
18106,
18107,
18108,
18103,
18104,
18105,
12268,
12415,
12416,
12417,
12203,
12418,
12419,
12412,
12413,
12414,
9314,
9311,
9312,
9313,
9315,
9308,
9309,
9310,
9305,
9306,
9307,
9316,
5776,
5780,
5778,
5777,
5895,
5782,
5783,
5781,
5774,
5775,
5779,
4449,
4447,
4448,
4430,
4444,
4445,
4446,
4441,
4442,
4443,
3674,
3672,
3673,
6765,
3670,
3671,
3667,
3668,
3669,
6767,
3665,
3666,
2643,
2641,
2652,
2653,
2642,
1597,
1723,
1599,
1596,
1720,
1721,
2562,
1397,
1598,
1878,
35951,
34968,
35657,
35658,
35659,
39962,
39963,
39964,
39965,
39966,
43974,
43975,
43976,
43977,
43978,
38819,
38820,
38821,
38822,
38400,
38401,
38823,
38699,
38825,
38826,
38402,
38403,
32898,
32895,
32896,
32897,
32892,
32893,
32894,
29134,
29135,
29129,
29130,
29131,
29132,
29133,
29125,
29126,
29127,
29128,
26244,
26238,
26237,
26234,
26235,
26236,
27079,
24991,
24992,
24993,
26229,
24989,
26232,
24990,
26156,
22896,
19465,
22891,
19460,
22892,
19461,
22893,
19462,
22894,
19463,
22895,
19464,
18971,
18972,
18973,
14411,
14775,
15533,
15534,
14774,
15535,
44786,
44787,
44788,
44789,
44790,
44791,
44792,
44793,
34853,
34851,
34854,
34855,
34856,
34646,
39929,
39930,
39931,
39932,
39933,
39934,
43097,
43098,
43099,
43100,
43101,
43102,
31521,
42454,
39893,
42875,
1145114,
3621,
3622,
3623,
2915,
2916,
2917,
2918,
2919,
1398,
1916,
1917,
1918,
1522,
1523,
1524,
1525,
1526,
145,
146,
147,
325,
326,
327,
3624,
3625,
3626,
2920,
2921,
2922,
3211,
1920,
1922,
1923,
2564,
1527,
1528,
1529,
1530,
1653,
329,
854,
870,
981,
982,
1227,
148,
149,
331,
642,
643,
644,
646,
647,
984,
985,
1071,
1072,
34703,
27901,
27902,
27903,
27904,
27905,
24079,
24080,
24081,
24082,
21117,
21118,
21119,
15734,
15837,
15838,
11446,
11447,
11448,
9017,
9019,
9020,
5302,
7362,
34704,
30961,
30962,
30963,
30964,
30965,
24083,
25450,
25451,
27077,
21120,
21121,
21122,
15839,
15840,
15841,
11449,
11450,
9021,
9022,
7363,
7364,
1149115,
38058,
38059,
28945,
28946,
28947,
38061,
38062,
28944,
28943,
28580,
24182,
24183,
24184,
24185,
24186,
24187,
20194,
20240,
20195,
16543,
16542,
16541,
15816,
39307,
39313,
39308,
39314,
39309,
39315,
28541,
28542,
39310,
39316,
39311,
39317,
39258,
39318,
39312,
39319,
39282,
39320,
25891,
25892,
25893,
25894,
24188,
24189,
24458,
19523,
19429,
19508,
19509,
19510,
19511,
15948,
15949,
15950,
10956,
10957,
10952,
10953,
10954,
10955,
4808,
4809,
4810,
4811,
4812,
4813,
4814,
5407,
4151,
4152,
4153,
4154,
4155,
4156,
3457,
2095,
2070,
2096,
2071,
2097,
2072,
611,
24204,
24205,
24206,
24207,
23072,
28091,
28092,
28093,
28094,
27240,
38382,
38383,
38384,
38268,
43089,
43091,
43090,
43092,
36464,
36467,
36465,
36468,
35773,
36466,
36361,
36460,
36362,
36461,
36299,
36462,
35772,
36463,
29140,
29141,
29142,
29143,
29144,
20081,
20871,
20870,
20916,
20917,
40643,
40644,
40645,
40646,
40647,
40648,
40649,
40650,
40651,
40652,
40653,
40654,
40655,
40192,
43914,
43915,
43916,
43917,
43918,
43919,
43920,
36144,
36148,
36145,
36149,
36146,
36150,
36147,
36151,
30975,
30976,
30977,
36238,
36239,
36256,
36240,
36257,
36241,
36258,
36242,
36259,
36243,
36260,
36244,
36261,
35109,
35110,
30947,
30948,
30949,
30950,
30951,
30302,
30303,
30945,
30946,
25647,
25648,
22375,
22376,
22378,
22518,
22270,
22373,
22374,
15963,
20619,
20622,
20623,
15962,
20614,
12031,
12077,
12078,
12076,
12065,
7252,
7253,
7254,
7249,
7250,
7251,
4330,
3764,
3449,
2975,
2976,
3448,
2974,
1825,
1627,
1824,
1626,
1192,
42645,
42646,
42647,
42648,
42649,
29666,
29667,
29665,
29254,
29664,
43204,
43205,
24851,
24852,
24853,
24854,
24680,
21465,
21466,
21467,
13041,
11399,
15608,
13042,
15609,
41795,
41796,
41410,
28950,
28585,
28951,
28952,
28953,
28954,
20143,
20144,
24126,
20041,
20139,
20141,
20142,
19007,
14500,
14501,
14435,
14498,
14499,
5487,
5703,
5705,
5704,
5706,
12652,
38058,
38059,
28945,
28946,
28947,
38061,
38062,
28944,
28943,
28580,
24182,
24183,
24184,
24185,
24186,
24187,
20194,
20240,
20195,
16543,
16542,
16541,
15816,
39307,
39313,
39308,
39314,
39309,
39315,
28541,
28542,
39310,
39316,
39311,
39317,
39258,
39318,
39312,
39319,
39282,
39320,
25891,
25892,
25893,
25894,
24188,
24189,
24458,
19523,
19429,
19508,
19509,
19510,
19511,
15948,
15949,
15950,
10956,
10957,
10952,
10953,
10954,
10955,
4808,
4809,
4810,
4811,
4812,
4813,
4814,
5407,
4151,
4152,
4153,
4154,
4155,
4156,
3457,
2095,
2070,
2096,
2071,
2097,
2072,
611,
24204,
24205,
24206,
24207,
23072,
28091,
28092,
28093,
28094,
27240,
38382,
38383,
38384,
38268,
43089,
43091,
43090,
43092,
36464,
36467,
36465,
36468,
35773,
36466,
36361,
36460,
36362,
36461,
36299,
36462,
35772,
36463,
29140,
29141,
29142,
29143,
29144,
20081,
20871,
20870,
20916,
20917,
40643,
40644,
40645,
40646,
40647,
40648,
40649,
40650,
40651,
40652,
40653,
40654,
40655,
40192,
43914,
43915,
43916,
43917,
43918,
43919,
43920,
36144,
36148,
36145,
36149,
36146,
36150,
36147,
36151,
30975,
30976,
30977,
36238,
36239,
36256,
36240,
36257,
36241,
36258,
36242,
36259,
36243,
36260,
36244,
36261,
35109,
35110,
30947,
30948,
30949,
30950,
30951,
30302,
30303,
30945,
30946,
25647,
25648,
22375,
22376,
22378,
22518,
22270,
22373,
22374,
15963,
20619,
20622,
20623,
15962,
20614,
12031,
12077,
12078,
12076,
12065,
7252,
7253,
7254,
7249,
7250,
7251,
4330,
3764,
3449,
2975,
2976,
3448,
2974,
1825,
1627,
1824,
1626,
1192,
42645,
42646,
42647,
42648,
42649,
29666,
29667,
29665,
29254,
29664,
43204,
43205,
24851,
24852,
24853,
24854,
24680,
21465,
21466,
21467,
13041,
11399,
15608,
13042,
15609,
41795,
41796,
41410,
28950,
28585,
28951,
28952,
28953,
28954,
20143,
20144,
24126,
20041,
20139,
20141,
20142,
19007,
14500,
14501,
14435,
14498,
14499,
5487,
5703,
5705,
5704,
5706,
12652,
38954,
38161,
40568,
40569,
44685,
36977,
37813,
38504,
38505,
36978,
35060,
35061,
36857,
38497,
35062,
36986,
38367,
33086,
35063,
30739,
30740,
29431,
21496,
21495,
21497,
18742,
21498,
40550,
40551,
40552,
40553,
40554,
40555,
40556,
40557,
40558,
41692
}; };
typesBO.setTypeIds(Arrays.asList(typeIds)); typesBO.setTypeIds(Arrays.asList(typeIds));
vehicleService.saveVehicleTypes(typesBO, 1L); vehicleService.saveVehicleTypes(typesBO, 1L);
...@@ -2024,17 +350,17 @@ public class VehicleServiceTest { ...@@ -2024,17 +350,17 @@ public class VehicleServiceTest {
VehicleInfoVo vehicleInfoVo = new VehicleInfoVo(); VehicleInfoVo vehicleInfoVo = new VehicleInfoVo();
ArrayList<DeviceInfoDto> deviceInfoDtos = new ArrayList<>(); ArrayList<DeviceInfoDto> deviceInfoDtos = new ArrayList<>();
for (int i = 0; i < 10; i++) { for (int i = 0; i < 3; i++) {
DeviceInfoDto deviceInfoDto = new DeviceInfoDto(); DeviceInfoDto deviceInfoDto = new DeviceInfoDto();
deviceInfoDto.setSn(i + ""); deviceInfoDto.setSn("70020220308" + i);
deviceInfoDtos.add(deviceInfoDto); deviceInfoDtos.add(deviceInfoDto);
} }
vehicleInfoVo.setOwnerName("杨林龙03"); vehicleInfoVo.setOwnerName("乍可001");
vehicleInfoVo.setOwnerSex("男"); vehicleInfoVo.setOwnerSex("男");
vehicleInfoVo.setOwnerTel("13086716076"); vehicleInfoVo.setOwnerTel("15234057707");
vehicleInfoVo.setLicensePlate("月1234j"); vehicleInfoVo.setLicensePlate("粤B45S45");
vehicleInfoVo.setVin("dsfsdfs4456666116"); vehicleInfoVo.setVin("LSCDSDF31231231");
vehicleInfoVo.setEngine("adfd"); vehicleInfoVo.setEngine("adfd");
vehicleInfoVo.setOrganizationId("0"); vehicleInfoVo.setOrganizationId("0");
vehicleInfoVo.setModelId(40610); vehicleInfoVo.setModelId(40610);
...@@ -2124,7 +450,7 @@ public class VehicleServiceTest { ...@@ -2124,7 +450,7 @@ public class VehicleServiceTest {
@Test @Test
public void test11() { public void test11() {
vehicleService.deleteVehicleInfo(1); vehicleService.deleteVehicleInfo(16044);
System.out.println("vehicleService success= "); System.out.println("vehicleService success= ");
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!