fix 逻辑取反
This commit is contained in:
@@ -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("存在非考勤通行记录,无法上传");
|
||||
|
||||
Reference in New Issue
Block a user