暂时去掉uuid过滤会引起死锁

This commit is contained in:
Hinse 2022-06-20 15:42:38 +08:00
parent d6e416524f
commit a393d7aa4f
2 changed files with 7 additions and 7 deletions

View File

@ -292,12 +292,12 @@ namespace Waste.Application
/// <returns></returns>
public async Task InsertResultByA84GAsync(A8MyPackage myPackage)
{
//如果uuid不为空,并且以存在记录,则忽略
if (!myPackage.IsHeart && !myPackage.UUID.IsEmpty() && await dbClient.Queryable<W_MeasureResult>().AnyAsync(x => x.UUID == myPackage.UUID))
{
_loggerService.AddLogger($"A8记录重复,内容:{myPackage.ToJson()}", 1);
return;
}
////如果uuid不为空,并且以存在记录,则忽略
//if (!myPackage.IsHeart && !myPackage.UUID.IsEmpty() && await dbClient.Queryable<W_MeasureResult>().AnyAsync(x => x.UUID == myPackage.UUID))
//{
// _loggerService.AddLogger($"A8记录重复,内容:{myPackage.ToJson()}", 1);
// return;
//}
//查找设备
var device = await dbClient.Queryable<W_Device>().FirstAsync(x => myPackage.IMEI == x.Ecode);
// _loggerService.AddLogger($"接收到的数据,参数:{myPackage.ToJson()}", 3);

File diff suppressed because one or more lines are too long