完善设备升级记录更新
This commit is contained in:
parent
7b57e93c04
commit
c8c8d1c45f
@ -1169,6 +1169,7 @@ namespace JiShe.IoT.DeviceAggregation
|
||||
|
||||
var upgradeRecordInput = new CreateDeviceUpgradeRecordInput()
|
||||
{
|
||||
DeviceDataId = deviceInfo.Id,
|
||||
DeviceName = deviceInfo.DeviceName,
|
||||
DeviceAddress = deviceInfo.DeviceAddress,
|
||||
OldFirmwareVersion = deviceInfo.FirmwareVersion,
|
||||
|
||||
@ -195,7 +195,7 @@ namespace JiShe.ServicePro.OneNETManagement.Subscribers
|
||||
.Set(d => d.UpgradeDate, currentTime)
|
||||
.Set(d => d.LastModificationTime, currentTime)
|
||||
.Set(d => d.LastModifierId, CurrentUser.Id)
|
||||
.Where(d=>d.DeviceAddress == deviceUpgradeRecordEntity.DeviceAddress)
|
||||
.Where(d=>d.Id == deviceUpgradeRecordEntity.DeviceDataId)
|
||||
.ExecuteAffrowsAsync();
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user