|
@@ -70,6 +70,11 @@ namespace WingDeviceService.Service
|
|
|
{
|
|
|
ThrowCustomerException(CustomerRpcCode.DeviceTypeError, "DeviceType error");
|
|
|
}
|
|
|
+ var deviceModelList = await _deviceInfoDBServiceProxy.FindDictionaryItemsAsync(new FindDictionaryItemsDBRequest { DictionaryType = (int)DictionaryTypeEnum.DeviceModel });
|
|
|
+ if (!deviceModelList.Select(x => x.Value).Contains(request.DeviceModel))
|
|
|
+ {
|
|
|
+ ThrowCustomerException(CustomerRpcCode.DeviceModelError, "DeviceModel error");
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
var deviceDto = await _deviceInfoDBServiceProxy.FindDeviceInfoBySerialNumberAsync(request.DeviceUniqueCode);
|