fix 逻辑取反
This commit is contained in:
@@ -123,8 +123,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
|||||||
public async Task ManuallyUploadAsync(List<long> requestIds)
|
public async Task ManuallyUploadAsync(List<long> requestIds)
|
||||||
{
|
{
|
||||||
var existsOther = await _dbContext.Queryable<DeviceUploadLogEntity>()
|
var existsOther = await _dbContext.Queryable<DeviceUploadLogEntity>()
|
||||||
.Where(x => requestIds.Contains(x.Id))
|
.Where(x => requestIds.Contains(x.Id) && !x.NeedUpload)
|
||||||
.Where(x => x.Type != DeviceUploadLogTypeEnumType.Attendance)
|
|
||||||
.AnyAsync();
|
.AnyAsync();
|
||||||
|
|
||||||
existsOther.ThrowIfTrue("存在非考勤通行记录,无法上传");
|
existsOther.ThrowIfTrue("存在非考勤通行记录,无法上传");
|
||||||
|
|||||||
Reference in New Issue
Block a user