This commit is contained in:
2025-02-12 14:58:00 +08:00
parent a3ba973988
commit 167995a48e

View File

@@ -122,12 +122,6 @@ public class DeviceUploadLogService : IDeviceUploadLogService
/// <inheritdoc />
public async Task ManuallyUploadAsync(List<long> requestIds)
{
var existsOther = await _dbContext.Queryable<DeviceUploadLogEntity>()
.Where(x => requestIds.Contains(x.Id) && !x.NeedUpload)
.AnyAsync();
existsOther.ThrowIfTrue("存在非考勤通行记录,无法上传");
var requests = await _dbContext.Queryable<DeviceUploadLogEntity>()
.LeftJoin<DeviceEntity>((x, device) => x.DeviceUniqueNo == device.UniqueNo)
.Where(x => requestIds.Contains(x.Id))