diff --git a/src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs b/src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs index e40b368..10c0119 100644 --- a/src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs +++ b/src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs @@ -1,4 +1,5 @@ using Microsoft.AspNetCore.Authorization; +using SqlSugar; using System; using System.Collections.Generic; using System.Linq; @@ -6,19 +7,36 @@ using System.Text; using System.Threading.Tasks; using TencentCloud.Dlc.V20210125.Models; using Volo.Abp.Application.Services; +using Volo.Abp.Domain.Repositories; +using Volo.Abp.Identity; namespace Shentun.Peis.DataMigrations { /// /// 基础数据处理 /// - [Authorize] + //[Authorize] public class BaseDataHandleAppService : ApplicationService { + + private readonly SqlSugarClient Db = new SqlSugarClient(new ConnectionConfig() + { + ConnectionString = "4444444444444", + DbType = DbType.PostgreSQL, + IsAutoCloseConnection = true + }); + public BaseDataHandleAppService() { } - + + public void Dffff() + { + + var ddd = Db.Ado.GetDataTable("select * from ActivityLink"); + + } + } } diff --git a/src/Shentun.Peis.Application/Shentun.Peis.Application.csproj b/src/Shentun.Peis.Application/Shentun.Peis.Application.csproj index ca2ad41..b237a6e 100644 --- a/src/Shentun.Peis.Application/Shentun.Peis.Application.csproj +++ b/src/Shentun.Peis.Application/Shentun.Peis.Application.csproj @@ -23,6 +23,7 @@ + diff --git a/src/Shentun.Peis.DbMigrator/appsettings.json b/src/Shentun.Peis.DbMigrator/appsettings.json index c3b419c..aa92f4a 100644 --- a/src/Shentun.Peis.DbMigrator/appsettings.json +++ b/src/Shentun.Peis.DbMigrator/appsettings.json @@ -30,5 +30,6 @@ } } - } + }, + "AdminId": "3a11fe49-5719-0e9e-dd44-0c4aff0900b0" } \ No newline at end of file