bug
This commit is contained in:
parent
b621350f6b
commit
bf2f6cfda7
@ -615,13 +615,16 @@ public class WorkbenchController : IDynamicApiController
|
||||
};
|
||||
|
||||
// 同赛事同场地此前投出中的记录统一置为“已被新投屏替换(20)”,保证大屏只展示最新一条
|
||||
await _screenCastRepository.AsUpdateable()
|
||||
var activeScreenCastUpdate = _screenCastRepository.AsUpdateable()
|
||||
.SetColumns(sc => new EventResultScreenCast { CastStatus = 20 },
|
||||
appendColumnsByDataFilter: true)
|
||||
.Where(sc => sc.EventId == input.EventId &&
|
||||
(!input.VenueId.HasValue || sc.VenueId == input.VenueId.Value) &&
|
||||
sc.CastStatus == 0)
|
||||
.ExecuteCommandAsync();
|
||||
.Where(sc => sc.EventId == input.EventId && sc.CastStatus == 0);
|
||||
if (input.VenueId.HasValue)
|
||||
{
|
||||
var venueId = input.VenueId.Value;
|
||||
activeScreenCastUpdate = activeScreenCastUpdate.Where(sc => sc.VenueId == venueId);
|
||||
}
|
||||
await activeScreenCastUpdate.ExecuteCommandAsync();
|
||||
|
||||
var screenCast = new EventResultScreenCast
|
||||
{
|
||||
@ -719,13 +722,16 @@ public class WorkbenchController : IDynamicApiController
|
||||
}).ToList();
|
||||
|
||||
// 同赛事同场地此前投出中的记录统一置为“已被新投屏替换(20)”,保证大屏只展示最新一条
|
||||
await _screenCastRepository.AsUpdateable()
|
||||
var activeScreenCastUpdate = _screenCastRepository.AsUpdateable()
|
||||
.SetColumns(sc => new EventResultScreenCast { CastStatus = 20 },
|
||||
appendColumnsByDataFilter: true)
|
||||
.Where(sc => sc.EventId == input.EventId &&
|
||||
(!input.VenueId.HasValue || sc.VenueId == input.VenueId.Value) &&
|
||||
sc.CastStatus == 0)
|
||||
.ExecuteCommandAsync();
|
||||
.Where(sc => sc.EventId == input.EventId && sc.CastStatus == 0);
|
||||
if (input.VenueId.HasValue)
|
||||
{
|
||||
var venueId = input.VenueId.Value;
|
||||
activeScreenCastUpdate = activeScreenCastUpdate.Where(sc => sc.VenueId == venueId);
|
||||
}
|
||||
await activeScreenCastUpdate.ExecuteCommandAsync();
|
||||
|
||||
var screenCast = new EventResultScreenCast
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user