fix .
This commit is contained in:
@@ -122,12 +122,6 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public async Task ManuallyUploadAsync(List<long> requestIds)
|
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>()
|
var requests = await _dbContext.Queryable<DeviceUploadLogEntity>()
|
||||||
.LeftJoin<DeviceEntity>((x, device) => x.DeviceUniqueNo == device.UniqueNo)
|
.LeftJoin<DeviceEntity>((x, device) => x.DeviceUniqueNo == device.UniqueNo)
|
||||||
.Where(x => requestIds.Contains(x.Id))
|
.Where(x => requestIds.Contains(x.Id))
|
||||||
|
|||||||
Reference in New Issue
Block a user