去除无用隐藏字符
parent
67088943f5
commit
d1b2320745
|
|
@ -1,24 +1,15 @@
|
|||
using DocumentFormat.OpenXml.Drawing;
|
||||
using Infrastructure;
|
||||
using NetTopologySuite.Geometries;
|
||||
using NetTopologySuite;
|
||||
using Infrastructure;
|
||||
using OpenAuth.App.BaseApp.Base;
|
||||
using OpenAuth.App.Interface;
|
||||
using OpenAuth.Repository;
|
||||
using OpenAuth.Repository.Domain;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yitter.IdGenerator;
|
||||
|
||||
namespace OpenAuth.App.ServiceApp
|
||||
{
|
||||
public class ManageApp : SqlSugarBaseApp<LasaDronePort, SugarDbContext>
|
||||
public class ManageApp : SqlSugarBaseApp<LasaDronePort, SugarDbContext>
|
||||
{
|
||||
public ManageApp(ISugarUnitOfWork<SugarDbContext> unitWork, ISimpleClient<LasaDronePort> repository, IAuth auth) : base(unitWork, repository, auth)
|
||||
public ManageApp(ISugarUnitOfWork<SugarDbContext> unitWork, ISimpleClient<LasaDronePort> repository, IAuth auth) : base(unitWork, repository, auth)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -29,7 +20,7 @@ namespace OpenAuth.App.ServiceApp
|
|||
/// <param name="pageSize"></param>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<Response<PageInfo<List<LasaDronePort>>>> GetPageList(int pageIndex, int pageSize, string key)
|
||||
public async Task<Response<PageInfo<List<LasaDronePort>>>> GetPageList(int pageIndex, int pageSize, string key)
|
||||
{
|
||||
int totalCount = 0;
|
||||
PageModel pageModel = new PageModel()
|
||||
|
|
@ -39,9 +30,9 @@ namespace OpenAuth.App.ServiceApp
|
|||
TotalCount = totalCount
|
||||
};
|
||||
var list = await Repository.GetPageListAsync(it => it.Name.Contains(key), pageModel, it => it.UpdateTime, OrderByType.Desc);
|
||||
return new Response<PageInfo<List<LasaDronePort>>>
|
||||
return new Response<PageInfo<List<LasaDronePort>>>
|
||||
{
|
||||
Result = new PageInfo<List<LasaDronePort>> { Items = list, Total = totalCount }
|
||||
Result = new PageInfo<List<LasaDronePort>> { Items = list, Total = totalCount }
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ namespace OpenAuth.Repository
|
|||
|
||||
#region 管理
|
||||
public SugarRepositiry<LasaUav> LasaUav { get; set; }
|
||||
public SugarRepositiry<LasaDronePort> LasaDronePort { get; set; }
|
||||
public SugarRepositiry<LasaDronePort> LasaDronePort { get; set; }
|
||||
public SugarRepositiry<LasaTask> LasaTask { get; set; }
|
||||
public SugarRepositiry<LasaAirLine> LasaAirLine { get; set; }
|
||||
public SugarRepositiry<LasaWorkspace> LasaWorkspace { get; set; }
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
|||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<Response<PageInfo<List<LasaDronePort>>>> GetDataList(int page, int limit, string key)
|
||||
public async Task<Response<PageInfo<List<LasaDronePort>>>> GetDataList(int page, int limit, string key)
|
||||
{
|
||||
var result = new Response<PageInfo<List<LasaDronePort>>>();
|
||||
var result = new Response<PageInfo<List<LasaDronePort>>>();
|
||||
try
|
||||
{
|
||||
result = await _app.GetPageList(page, limit, key);
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ namespace OpenAuth.WebApi
|
|||
|
||||
#region Quartz
|
||||
//设置定时启动的任务
|
||||
//services.AddHostedService<QuartzService>();
|
||||
services.AddHostedService<QuartzService>();
|
||||
#endregion
|
||||
|
||||
#region SignalR
|
||||
|
|
|
|||
Loading…
Reference in New Issue