fix [IgnoreTenant]
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Dlhis.Entity.Device.Entities;
|
||||
using Dlhis.Entity.Device.Enums;
|
||||
using Dlhis.External.OpenApi.Response;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -26,6 +27,7 @@ public class DevicesController : ControllerBase
|
||||
/// <param name="factory"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[IgnoreTenant]
|
||||
public async Task<List<DeviceResponse>> GetDeviceAsync(string factory)
|
||||
{
|
||||
return await _dbContext.Queryable<DeviceEntity>()
|
||||
@@ -48,6 +50,7 @@ public class DevicesController : ControllerBase
|
||||
/// <param name="time"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("event/records")]
|
||||
[IgnoreTenant]
|
||||
public async Task<List<DeviceRecordResponse>> GetEventRecordPageAsync(string factory, DateTime time)
|
||||
{
|
||||
return await _dbContext.Queryable<DeviceUploadLogEntity>().Where(x => x.RaiseDateTime >= time)
|
||||
|
||||
@@ -4,6 +4,7 @@ using Dlhis.External.OpenApi.Request;
|
||||
using Dlhis.External.OpenApi.Response;
|
||||
using Dlhis.External.OpenApi.Services;
|
||||
using Kurisu.AspNetCore.DataAccess.Dto;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -41,6 +42,7 @@ public class GainfosController : ControllerBase
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("attendance/pagination")]
|
||||
[IgnoreTenant]
|
||||
public async Task<Pagination<DeviceUploadLogResponse>> GetAttendanceRecordPageAsync([FromQuery] DeviceUploadLogMyRecordRequest request)
|
||||
{
|
||||
return await _gainfoService.GetAttendanceRecordPageAsync(request);
|
||||
@@ -54,6 +56,7 @@ public class GainfosController : ControllerBase
|
||||
/// <param name="end"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("visitor/summary")]
|
||||
[IgnoreTenant]
|
||||
public async Task<AppointmentSummaryResponse> GetSummaryAsync(string factory, DateTime start, DateTime end)
|
||||
{
|
||||
var total = await _dbContext.Queryable<VisitorAppointmentDetailEntity>()
|
||||
|
||||
Reference in New Issue
Block a user