|
@@ -212,11 +212,14 @@ public class AsyncTaskImportService {
|
|
|
dto.setDoorNo(doorNo);
|
|
|
dto.setLocation(doorNo);
|
|
|
|
|
|
- String deviceTypeName = c_deviceType.getStringCellValue();
|
|
|
- if(StringUtils.isBlank(deviceTypeName)) {
|
|
|
+ String deviceTypeNameTemp = c_deviceType.getStringCellValue();
|
|
|
+ if(StringUtils.isBlank(deviceTypeNameTemp)) {
|
|
|
continue;
|
|
|
}
|
|
|
- DeviceTypeDto dt = deviceTypeService.getByName(deviceTypeName);
|
|
|
+ String[] temp = deviceTypeNameTemp.split("/");
|
|
|
+ String deviceTypeName = temp[1];
|
|
|
+ String deviceTypeModel = temp[2];
|
|
|
+ DeviceTypeDto dt = deviceTypeService.getByName(deviceTypeName,deviceTypeModel);
|
|
|
if(dt == null) {
|
|
|
//throw new ServiceException(ResultStatus.DEVICE_TYPE_NOT_EXISTED);
|
|
|
failTime++ ;
|