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