fix 逻辑取反

This commit is contained in:
2025-02-12 14:34:26 +08:00
parent 0c7508a4d4
commit 2717941757

View File

@@ -123,8 +123,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
public async Task ManuallyUploadAsync(List<long> requestIds)
{
var existsOther = await _dbContext.Queryable<DeviceUploadLogEntity>()
.Where(x => requestIds.Contains(x.Id))
.Where(x => x.Type != DeviceUploadLogTypeEnumType.Attendance)
.Where(x => requestIds.Contains(x.Id) && !x.NeedUpload)
.AnyAsync();
existsOther.ThrowIfTrue("存在非考勤通行记录,无法上传");