80 changed files with 1846 additions and 235 deletions
Binary file not shown.
@ -0,0 +1,10 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Chassis; |
||||
|
public interface IMesChassisManager |
||||
|
{ |
||||
|
Task<List<MesChassis>> GetToBeProcessedListAsync(); |
||||
|
Task UpdateProcessedListAsync(List<MesChassis> entities); |
||||
|
Task UpdateProcesseErrordListAsync(List<MesChassis> entities); |
||||
|
} |
@ -0,0 +1,8 @@ |
|||||
|
using Volo.Abp.Domain.Repositories; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Chassis; |
||||
|
|
||||
|
public interface IMesChassisRepository : IRepository<MesChassis> |
||||
|
{ |
||||
|
|
||||
|
} |
@ -0,0 +1,49 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Chassis; |
||||
|
public class MesChassis : Entity |
||||
|
{ /// <summary>
|
||||
|
/// 序号
|
||||
|
/// </summary>
|
||||
|
[Key] |
||||
|
public int mesout_fis_id { get; set; } |
||||
|
/// <summary>
|
||||
|
/// erp号
|
||||
|
/// </summary>
|
||||
|
public string mesout_fis_erpno { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 底盘号
|
||||
|
/// </summary>
|
||||
|
public string mesout_fis_vin { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产品类型
|
||||
|
/// </summary>
|
||||
|
public string mesout_fis_productType { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 颜色
|
||||
|
/// </summary>
|
||||
|
public string mesout_fis_productColor { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 添加时间
|
||||
|
/// </summary>
|
||||
|
public DateTime? addtime { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 修改时间
|
||||
|
/// </summary>
|
||||
|
public DateTime? updatetime { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 是否读取(0,1)
|
||||
|
/// </summary>
|
||||
|
public int mesout_fis_status { get; set; } |
||||
|
|
||||
|
public override object[] GetKeys() |
||||
|
{ |
||||
|
return new object[] { mesout_fis_id }; |
||||
|
} |
||||
|
} |
@ -0,0 +1,47 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Services; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Chassis; |
||||
|
|
||||
|
public class MesChassisManager : DomainService, IMesChassisManager |
||||
|
{ |
||||
|
private readonly IMesChassisRepository _repository; |
||||
|
|
||||
|
public MesChassisManager(IMesChassisRepository repository) |
||||
|
{ |
||||
|
_repository = repository; |
||||
|
} |
||||
|
public virtual async Task<List<MesChassis>> GetToBeProcessedListAsync() |
||||
|
{ |
||||
|
var plans = await _repository.GetListAsync(p => p.mesout_fis_status == 0).ConfigureAwait(false); |
||||
|
return plans; |
||||
|
|
||||
|
} |
||||
|
public virtual async Task UpdateProcesseErrordListAsync(List<MesChassis> entities) |
||||
|
{ |
||||
|
var ids = entities.Select(p => p.mesout_fis_id); |
||||
|
var plans = await _repository.GetListAsync(p => ids.Contains(p.mesout_fis_id)).ConfigureAwait(false); |
||||
|
plans.ForEach(p => |
||||
|
{ |
||||
|
p.mesout_fis_status = 2; |
||||
|
// p.WmsDate = Clock.Now;
|
||||
|
}); |
||||
|
await _repository.UpdateManyAsync(plans).ConfigureAwait(false); |
||||
|
} |
||||
|
public virtual async Task UpdateProcessedListAsync(List<MesChassis> entities) |
||||
|
{ |
||||
|
var ids = entities.Select(p => p.mesout_fis_id); |
||||
|
var plans = await _repository.GetListAsync(p => ids.Contains(p.mesout_fis_id)).ConfigureAwait(false); |
||||
|
plans.ForEach(p => |
||||
|
{ |
||||
|
p.mesout_fis_status = 1; |
||||
|
|
||||
|
// p.WmsDate = Clock.Now;
|
||||
|
}); |
||||
|
await _repository.UpdateManyAsync(plans).ConfigureAwait(false); |
||||
|
} |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Volo.Abp.EntityFrameworkCore.Modeling; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Chassis; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Mes; |
||||
|
public static class MesChassisDbContextModelCreatingExtensions |
||||
|
{ |
||||
|
public static void ConfigureMesChassis(this ModelBuilder builder, MesModelBuilderConfigurationOptions options) |
||||
|
{ |
||||
|
builder.Entity<MesChassis>(b => |
||||
|
{ |
||||
|
//Configure table & schema Name
|
||||
|
b.ToTable(options.TablePrefix + "mesout_fis", options.Schema); |
||||
|
//Configure ABP properties
|
||||
|
b.ConfigureByConvention(); |
||||
|
|
||||
|
//Properties
|
||||
|
b.Property(q => q.mesout_fis_id).HasMaxLength(20); |
||||
|
b.Property(q => q.mesout_fis_erpno).HasMaxLength(50); |
||||
|
b.Property(q => q.mesout_fis_vin).HasMaxLength(50); |
||||
|
b.Property(q => q.mesout_fis_productType).HasMaxLength(50); |
||||
|
b.Property(q => q.mesout_fis_productColor).HasMaxLength(50); |
||||
|
b.Property(q => q.mesout_fis_status); |
||||
|
}); |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
||||
|
using Volo.Abp.EntityFrameworkCore; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Chassis; |
||||
|
|
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Mes; |
||||
|
public class MesChassisEfCoreRepository : EfCoreRepository<MesDbContext, MesChassis>, IMesChassisRepository |
||||
|
{ |
||||
|
public MesChassisEfCoreRepository(IDbContextProvider<MesDbContext> dbContextProvider) |
||||
|
: base(dbContextProvider) |
||||
|
{ |
||||
|
} |
||||
|
} |
@ -0,0 +1,92 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text.Json; |
||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.Extensions.Logging; |
||||
|
using Win_in.Sfs.Basedata.Application.Contracts; |
||||
|
using Win_in.Sfs.Shared.Domain.Shared; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain; |
||||
|
using Win_in.Sfs.Wms.DataExchange.WMS.Chassis; |
||||
|
using Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
using Volo.Abp.ObjectMapping; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.MesAgent.Incoming; |
||||
|
public class MesChassisConverter : IIncomingConverter |
||||
|
{ |
||||
|
private readonly IIncomingFromExternalManager _incomingFromExternalManager; |
||||
|
private readonly IIncomingToWmsManager _incomingToWmsManager; |
||||
|
private readonly IObjectMapper _objectMapper; |
||||
|
private readonly IItemBasicAppService _itemBasicAppService; |
||||
|
private readonly ILocationAppService _locationAppService; |
||||
|
private readonly ILogger<MesChassisConverter> _logger; |
||||
|
|
||||
|
public MesChassisConverter( |
||||
|
IIncomingToWmsManager incomingToWmsManager |
||||
|
, IObjectMapper objectMapper |
||||
|
, IItemBasicAppService itemBasicAppService |
||||
|
, ILogger<MesChassisConverter> logger, |
||||
|
ILocationAppService locationAppService, |
||||
|
IIncomingFromExternalManager incomingFromExternalManager) |
||||
|
{ |
||||
|
_incomingToWmsManager = incomingToWmsManager; |
||||
|
_objectMapper = objectMapper; |
||||
|
_itemBasicAppService = itemBasicAppService; |
||||
|
_logger = logger; |
||||
|
_locationAppService = locationAppService; |
||||
|
_incomingFromExternalManager = incomingFromExternalManager; |
||||
|
} |
||||
|
|
||||
|
public virtual async Task ConvertAsync(List<IncomingFromExternal> incomingFromExternalList) |
||||
|
{ |
||||
|
if (!incomingFromExternalList.Any()) |
||||
|
{ |
||||
|
_logger.LogInformation("无底盘数据【转换】"); |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
//按Number合并Chassis单据
|
||||
|
var transferNoteList = await BuildIncomingToWmsOfChassisAsync(incomingFromExternalList).ConfigureAwait(false); |
||||
|
await _incomingToWmsManager.CreateManyAsync(transferNoteList).ConfigureAwait(false); |
||||
|
//归档
|
||||
|
await _incomingFromExternalManager.ArchiveManyAsync(incomingFromExternalList).ConfigureAwait(false); |
||||
|
} |
||||
|
|
||||
|
private async Task<List<IncomingToWms>> BuildIncomingToWmsOfChassisAsync(List<IncomingFromExternal> incomingDataList) |
||||
|
{ |
||||
|
var incomingToWmsList = new List<IncomingToWms>(); |
||||
|
foreach (var incomingData in incomingDataList) |
||||
|
{ |
||||
|
var incomingToWms = new IncomingToWms() |
||||
|
{ |
||||
|
DataType = incomingData.DataType, |
||||
|
DataAction = incomingData.DataAction, |
||||
|
SourceSystem = incomingData.SourceSystem, |
||||
|
DataIdentityCode = incomingData.SourceDataGroupCode, |
||||
|
}; |
||||
|
incomingToWms.SetEffectiveDate(incomingData.EffectiveDate); |
||||
|
var exchangeChassis = JsonSerializer.Deserialize<ChassisExchangeDto>(incomingData.DestinationDataContent); |
||||
|
var wmsChassis = _objectMapper.Map<ChassisExchangeDto, ChassisEditInput>(exchangeChassis); |
||||
|
try |
||||
|
{ |
||||
|
var item = await _itemBasicAppService.GetByCodeAsync(exchangeChassis.ItemCode).ConfigureAwait(false); |
||||
|
if (item != null) |
||||
|
{ |
||||
|
wmsChassis.ItemName = item.Name; |
||||
|
wmsChassis.ItemDesc1 = !string.IsNullOrEmpty(item.Desc1) ? item.Desc1 : ""; |
||||
|
wmsChassis.ItemDesc2 = !string.IsNullOrEmpty(item.Desc2) ? item.Desc2 : ""; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception) |
||||
|
{ |
||||
|
wmsChassis.ItemName = ""; |
||||
|
wmsChassis.ItemDesc1 = ""; |
||||
|
wmsChassis.ItemDesc2 = ""; |
||||
|
} |
||||
|
incomingToWms.DataContent = JsonSerializer.Serialize(wmsChassis); |
||||
|
incomingToWmsList.Add(incomingToWms); |
||||
|
} |
||||
|
return incomingToWmsList; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,116 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.Extensions.Logging; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain.Shared; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain; |
||||
|
using System.Text.Json; |
||||
|
using Win_in.Sfs.Wms.DataExchange.WMS.MesNote; |
||||
|
using Win_in.Sfs.Basedata.Application.Contracts; |
||||
|
using Win_in.Sfs.Shared.Domain.Shared; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Chassis; |
||||
|
using Win_in.Sfs.Wms.DataExchange.WMS.Chassis; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.MesAgent.Incoming; |
||||
|
public class MesChassisReader : IReader |
||||
|
{ |
||||
|
private readonly IMesChassisManager _mesChassisManager; |
||||
|
private readonly IIncomingFromExternalManager _incomingFromExternalManager; |
||||
|
private readonly ILogger<MesChassisReader> _logger; |
||||
|
private readonly ILocationAppService _locationAppService; |
||||
|
|
||||
|
public MesChassisReader( |
||||
|
IMesChassisManager mesChassisManager |
||||
|
, IIncomingFromExternalManager incomingFromExternalManager |
||||
|
, ILogger<MesChassisReader> logger |
||||
|
, ILocationAppService locationAppService |
||||
|
) |
||||
|
{ |
||||
|
_mesChassisManager = mesChassisManager; |
||||
|
_incomingFromExternalManager = incomingFromExternalManager; |
||||
|
_logger = logger; |
||||
|
_locationAppService = locationAppService; |
||||
|
} |
||||
|
|
||||
|
public virtual async Task<List<IncomingFromExternal>> ReadAsync() |
||||
|
|
||||
|
{ |
||||
|
//从MES读取待处理MesChassis
|
||||
|
var toBeProcessedPillTasks = await _mesChassisManager.GetToBeProcessedListAsync().ConfigureAwait(false); |
||||
|
if (!toBeProcessedPillTasks.Any()) |
||||
|
{ |
||||
|
_logger.LogInformation("无底盘数据【读取】"); |
||||
|
return new List<IncomingFromExternal>(); |
||||
|
} |
||||
|
//MesChassis逐一转换为MaterialRequest
|
||||
|
var incomingDataList = BuildIncomingFromExternalFromPillTaskAsync(toBeProcessedPillTasks); |
||||
|
await _incomingFromExternalManager.CreateManyAsync(incomingDataList).ConfigureAwait(false); |
||||
|
//更新MES数据状态
|
||||
|
await _mesChassisManager.UpdateProcessedListAsync(toBeProcessedPillTasks).ConfigureAwait(false); |
||||
|
|
||||
|
return incomingDataList; |
||||
|
} |
||||
|
|
||||
|
private static List<IncomingFromExternal> BuildIncomingFromExternalFromPillTaskAsync(List<MesChassis> toBeProcessedMesChassiss) |
||||
|
{ |
||||
|
var incomingDataList = new List<IncomingFromExternal>(); |
||||
|
foreach (var MesChassis in toBeProcessedMesChassiss) |
||||
|
{ |
||||
|
var incomingData = BuildIncomingFromExternal(MesChassis); |
||||
|
|
||||
|
incomingData.SetEffectiveDate(DateTime.Now); |
||||
|
incomingData.SetSuccess(); |
||||
|
try |
||||
|
{ |
||||
|
var MaterialRequest = BuildChassisCreateInput(MesChassis); |
||||
|
incomingData.DestinationDataContent = JsonSerializer.Serialize(MaterialRequest); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
incomingData.SetError(EnumExchangeDataErrorCode.Exception, ex.Message, ex.ToString()); |
||||
|
} |
||||
|
|
||||
|
incomingDataList.Add(incomingData); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
return incomingDataList; |
||||
|
} |
||||
|
|
||||
|
private static IncomingFromExternal BuildIncomingFromExternal(MesChassis MesChassis) |
||||
|
{ |
||||
|
var incomingData = new IncomingFromExternal() |
||||
|
{ |
||||
|
DataType = EnumIncomingDataType.MesChassis.ToString(), |
||||
|
DataAction = EnumExchangeDataAction.Add, |
||||
|
SourceSystem = EnumSystemType.MES.ToString(), |
||||
|
SourceDataId = MesChassis.mesout_fis_id.ToString(), |
||||
|
SourceDataGroupCode = MesChassis.mesout_fis_vin.ToString(), |
||||
|
SourceDataDetailCode = MesChassis.mesout_fis_erpno, |
||||
|
SourceDataContent = JsonSerializer.Serialize(MesChassis), |
||||
|
WriteTime = DateTime.Now, |
||||
|
Writer = nameof(MesIncomingBackgroundWorker), |
||||
|
|
||||
|
DestinationSystem = EnumSystemType.WMS.ToString(), |
||||
|
}; |
||||
|
return incomingData; |
||||
|
} |
||||
|
|
||||
|
private static ChassisExchangeDto BuildChassisCreateInput(MesChassis MesChassis) |
||||
|
{ |
||||
|
var chassis = new ChassisExchangeDto() |
||||
|
{ |
||||
|
Number = MesChassis.mesout_fis_id.ToString(), |
||||
|
ChassisNumber= MesChassis.mesout_fis_vin, |
||||
|
Description= MesChassis.mesout_fis_productType, |
||||
|
ProduceDateTime= DateTime.Now, |
||||
|
ReceiveInterfaceDateTime= DateTime.Now, |
||||
|
SortNumber = MesChassis.mesout_fis_id, |
||||
|
ItemCode = MesChassis.mesout_fis_erpno, |
||||
|
Configuration= MesChassis.mesout_fis_productColor, |
||||
|
}; |
||||
|
return chassis; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.WMS.Chassis; |
||||
|
public class ChassisExchangeDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Wms编号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "Wms编号")] |
||||
|
public string Number { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘号")] |
||||
|
public string ChassisNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 描述
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "描述")] |
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘生产时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘生产时间")] |
||||
|
public DateTime ProduceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 接收接口时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "接收接口时间")] |
||||
|
public DateTime ReceiveInterfaceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 执行位置排序列
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "执行位置排序列")] |
||||
|
public long SortNumber { get; set; } |
||||
|
|
||||
|
public string ItemCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 配置号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "配置号")] |
||||
|
public string Configuration { get; set; } |
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Domain; |
||||
|
public interface IInterfaceConfigManager |
||||
|
{ |
||||
|
Task<InterfaceConfig> GetInterfaceConfig(string code); |
||||
|
} |
@ -0,0 +1,8 @@ |
|||||
|
using System.Threading.Tasks; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Domain; |
||||
|
public interface IInterfaceConfigRepository |
||||
|
{ |
||||
|
Task<InterfaceConfig> GetInterfaceConfig(string code); |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
using Win_in.Sfs.Shared.Domain; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Domain; |
||||
|
public class InterfaceConfig : SfsAggregateRootBase |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 接口名称
|
||||
|
/// </summary>
|
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 编码
|
||||
|
/// </summary>
|
||||
|
public string Code { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 是否启用
|
||||
|
/// </summary>
|
||||
|
public bool Active { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 等级
|
||||
|
/// </summary>
|
||||
|
public int Level { get; set; } |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Services; |
||||
|
using Volo.Abp.Uow; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.Domain; |
||||
|
public class InterfaceConfigManager : DomainService, IInterfaceConfigManager |
||||
|
{ |
||||
|
private readonly IInterfaceConfigRepository _repository; |
||||
|
|
||||
|
public InterfaceConfigManager( |
||||
|
IInterfaceConfigRepository repository |
||||
|
) |
||||
|
{ |
||||
|
_repository = repository; |
||||
|
} |
||||
|
|
||||
|
public virtual async Task<InterfaceConfig> GetInterfaceConfig(string code) |
||||
|
{ |
||||
|
return await _repository.GetInterfaceConfig(code).ConfigureAwait(false); |
||||
|
} |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Volo.Abp.EntityFrameworkCore.Modeling; |
||||
|
using Win_in.Sfs.Shared.Domain.Shared; |
||||
|
using Win_in.Sfs.Shared.EntityFrameworkCore; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore; |
||||
|
public static class InterfaceConfigDbContextModelCreatingExtensions |
||||
|
{ |
||||
|
public static void ConfigureInterfaceConfig(this ModelBuilder builder, DataExchangeModelBuilderConfigurationOptions options) |
||||
|
{ |
||||
|
builder.Entity<InterfaceConfig>(b => |
||||
|
{ |
||||
|
//Configure table & schema name
|
||||
|
b.ToTable(options.TablePrefix + nameof(InterfaceConfig), options.Schema); |
||||
|
//Configure ABP properties
|
||||
|
b.ConfigureByConvention(); |
||||
|
//Configure Sfs base properties
|
||||
|
b.ConfigureSfsBase(); |
||||
|
|
||||
|
b.Property(q => q.Name).HasMaxLength(SfsPropertyConst.CodeLength); |
||||
|
b.HasIndex(q => new { q.Code }).IsUnique(); |
||||
|
}); |
||||
|
} |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Volo.Abp.EntityFrameworkCore; |
||||
|
using Win_in.Sfs.Shared.EntityFrameworkCore; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain; |
||||
|
using Win_in.Sfs.Wms.DataExchange.Domain.Shared; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore; |
||||
|
|
||||
|
public class InterfaceConfigEfCoreRepository : SfsEfCoreRepositoryBase<DataExchangeDbContext, InterfaceConfig>, IInterfaceConfigRepository |
||||
|
{ |
||||
|
public InterfaceConfigEfCoreRepository(IDbContextProvider<DataExchangeDbContext> dbContextProvider) : base(dbContextProvider) |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
public virtual async Task<InterfaceConfig> GetInterfaceConfig(string code) |
||||
|
{ |
||||
|
var dbSet = await GetDbSetAsync().ConfigureAwait(false); |
||||
|
var entitie = await dbSet.FirstOrDefaultAsync(p => p.Code == code).ConfigureAwait(false); |
||||
|
return entitie; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,191 @@ |
|||||
|
{ |
||||
|
"AlwaysAllowAuthorization": "true", |
||||
|
"RestoOptions": |
||||
|
{ |
||||
|
|
||||
|
"Address" :"http://7e42682n64.goho.co:21171/", |
||||
|
// 用户名 |
||||
|
"UserName" :"", |
||||
|
// 密码 |
||||
|
"Password" :"", |
||||
|
// 令牌 |
||||
|
"Token" :"", |
||||
|
"Path" :"zozocnApi/custom/receiveProductionPlan" |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
|
||||
|
|
||||
|
"App": { |
||||
|
"CorsOrigins": [ |
||||
|
"http://localhost:59080", |
||||
|
"http://localhost:59081", |
||||
|
"http://localhost:59090", |
||||
|
"http://localhost:59091", |
||||
|
"http://localhost:59093", |
||||
|
"http://localhost:59094", |
||||
|
"http://localhost:59095", |
||||
|
"http://localhost:59096", |
||||
|
"http://localhost:59097", |
||||
|
"http://localhost:59098", |
||||
|
"http://localhost:59099", |
||||
|
"http://localhost:59090", |
||||
|
"http://localhost:59091", |
||||
|
"http://localhost:59093", |
||||
|
"http://localhost:59094", |
||||
|
"http://localhost:59095", |
||||
|
"http://localhost:59096", |
||||
|
"http://localhost:59097", |
||||
|
"http://localhost:59098", |
||||
|
"http://localhost:59099", |
||||
|
"https://localhost:59090", |
||||
|
"https://localhost:59091", |
||||
|
"https://localhost:59093", |
||||
|
"https://localhost:59094", |
||||
|
"https://localhost:59095", |
||||
|
"https://localhost:59096", |
||||
|
"https://localhost:59097", |
||||
|
"https://localhost:59098", |
||||
|
"https://localhost:59099", |
||||
|
"https://localhost:59090", |
||||
|
"https://localhost:59091", |
||||
|
"https://localhost:59093", |
||||
|
"https://localhost:59094", |
||||
|
"https://localhost:59095", |
||||
|
"https://localhost:59096", |
||||
|
"https://localhost:59097", |
||||
|
"https://localhost:59098", |
||||
|
"https://localhost:59099", |
||||
|
"http://localhost:9527" |
||||
|
] |
||||
|
}, |
||||
|
"AuthServer": { |
||||
|
"Audience": "Auth", |
||||
|
//"Authority": "http://10.164.233.5:60083/", |
||||
|
"Authority": "http://localhost:59093/", |
||||
|
"ClientId": "Auth_App", |
||||
|
"ClientSecret": "1q2w3E*", |
||||
|
"RequireHttpsMetadata": "false", |
||||
|
"SwaggerClientId": "Auth_App", |
||||
|
"SwaggerClientSecret": "1q2w3e*", |
||||
|
"UseAuth": "true" |
||||
|
}, |
||||
|
// "ConnectionStrings": { |
||||
|
// "AbpAuditLogging": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpBackgroundJobs": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpBlobStoring": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpFeatureManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpIdentity": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpIdentityServer": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpPermissionManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpSettingManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpTenantManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Auth": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Basedata": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "DataExchange": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "FileStorage": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Inventory": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Job": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Label": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Message": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Store": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;" |
||||
|
// }, |
||||
|
"ConnectionStrings": { |
||||
|
"AbpAuditLogging": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpBackgroundJobs": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpBlobStoring": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpFeatureManagement": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpIdentity": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpIdentityServer": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpPermissionManagement": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpSettingManagement": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpTenantManagement": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Auth": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Basedata": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"DataExchange": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"FileStorage": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Inventory": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Job": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Label": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Message": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Store": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;" |
||||
|
}, |
||||
|
"IdentityClients": { |
||||
|
"Default": { |
||||
|
//"Authority": "http://10.164.233.5:60083", |
||||
|
"Authority": "http://localhost:59093", |
||||
|
"ClientId": "Auth_App", |
||||
|
"ClientSecret": "1q2w3E*", |
||||
|
"GrantType": "client_credentials", |
||||
|
"RequireHttps": "false", |
||||
|
"Scope": "Auth" |
||||
|
} |
||||
|
}, |
||||
|
"IsMultiTenancy": "True", |
||||
|
"Redis": { |
||||
|
"Configuration": "localhost:21194", |
||||
|
"KeyPrefix": "Wms:" |
||||
|
//"IsEnabled": "false" |
||||
|
}, |
||||
|
"RemoteServices": { |
||||
|
"Auth": { |
||||
|
//"BaseUrl": "http://10.164.233.5:60083/" |
||||
|
"BaseUrl": "http://localhost:59093/" |
||||
|
}, |
||||
|
"BaseData": { |
||||
|
//"BaseUrl": "http://10.164.233.5:60084/" |
||||
|
"BaseUrl": "http://localhost:59094/" |
||||
|
}, |
||||
|
"Default": { |
||||
|
//"BaseUrl": "http://10.164.233.5:60083/" |
||||
|
"BaseUrl": "http://localhost:59093/" |
||||
|
}, |
||||
|
"FileStorage": { |
||||
|
"BaseUrl": "http://10.164.233.5:60082/" |
||||
|
//"BaseUrl": "http://localhost:59092/" |
||||
|
}, |
||||
|
"Inventory": { |
||||
|
"BaseUrl": "http://localhost:59095/" |
||||
|
}, |
||||
|
"Job": { |
||||
|
"BaseUrl": "http://localhost:59095/" |
||||
|
}, |
||||
|
"Label": { |
||||
|
"BaseUrl": "http://10.164.233.5:60082/" |
||||
|
//"BaseUrl": "http://localhost:59092/" |
||||
|
}, |
||||
|
"Message": { |
||||
|
"BaseUrl": "http://10.164.233.5:60082/" |
||||
|
//"BaseUrl": "http://localhost:59092/" |
||||
|
}, |
||||
|
"Store": { |
||||
|
"BaseUrl": "http://localhost:59095/" |
||||
|
} |
||||
|
}, |
||||
|
"Serilog": { |
||||
|
"WriteTo": [ |
||||
|
{ |
||||
|
"Args": { |
||||
|
"configure": [ |
||||
|
{ |
||||
|
"Args": { |
||||
|
"path": "logs/log.txt", |
||||
|
"retainedFileCountLimit": "30", |
||||
|
"rollingInterval": "Day" |
||||
|
}, |
||||
|
"Name": "File" |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
"Name": "Async" |
||||
|
}, |
||||
|
{ |
||||
|
"Name": "Http", |
||||
|
"Args": { |
||||
|
"requestUri": "http://localhost:21093", |
||||
|
"queueLimitBytes": null |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
} |
@ -0,0 +1,191 @@ |
|||||
|
{ |
||||
|
"AlwaysAllowAuthorization": "true", |
||||
|
"RestoOptions": |
||||
|
{ |
||||
|
|
||||
|
"Address" :"http://7e42682n64.goho.co:21171/", |
||||
|
// 用户名 |
||||
|
"UserName" :"", |
||||
|
// 密码 |
||||
|
"Password" :"", |
||||
|
// 令牌 |
||||
|
"Token" :"", |
||||
|
"Path" :"zozocnApi/custom/receiveProductionPlan" |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
|
||||
|
|
||||
|
"App": { |
||||
|
"CorsOrigins": [ |
||||
|
"http://localhost:59080", |
||||
|
"http://localhost:59081", |
||||
|
"http://localhost:59090", |
||||
|
"http://localhost:59091", |
||||
|
"http://localhost:59093", |
||||
|
"http://localhost:59094", |
||||
|
"http://localhost:59095", |
||||
|
"http://localhost:59096", |
||||
|
"http://localhost:59097", |
||||
|
"http://localhost:59098", |
||||
|
"http://localhost:59099", |
||||
|
"http://localhost:59090", |
||||
|
"http://localhost:59091", |
||||
|
"http://localhost:59093", |
||||
|
"http://localhost:59094", |
||||
|
"http://localhost:59095", |
||||
|
"http://localhost:59096", |
||||
|
"http://localhost:59097", |
||||
|
"http://localhost:59098", |
||||
|
"http://localhost:59099", |
||||
|
"https://localhost:59090", |
||||
|
"https://localhost:59091", |
||||
|
"https://localhost:59093", |
||||
|
"https://localhost:59094", |
||||
|
"https://localhost:59095", |
||||
|
"https://localhost:59096", |
||||
|
"https://localhost:59097", |
||||
|
"https://localhost:59098", |
||||
|
"https://localhost:59099", |
||||
|
"https://localhost:59090", |
||||
|
"https://localhost:59091", |
||||
|
"https://localhost:59093", |
||||
|
"https://localhost:59094", |
||||
|
"https://localhost:59095", |
||||
|
"https://localhost:59096", |
||||
|
"https://localhost:59097", |
||||
|
"https://localhost:59098", |
||||
|
"https://localhost:59099", |
||||
|
"http://localhost:9527" |
||||
|
] |
||||
|
}, |
||||
|
"AuthServer": { |
||||
|
"Audience": "Auth", |
||||
|
"Authority": "http://dev.ccwin-in.com:60083/", |
||||
|
//"Authority": "http://localhost:59093/", |
||||
|
"ClientId": "Auth_App", |
||||
|
"ClientSecret": "1q2w3E*", |
||||
|
"RequireHttpsMetadata": "false", |
||||
|
"SwaggerClientId": "Auth_App", |
||||
|
"SwaggerClientSecret": "1q2w3e*", |
||||
|
"UseAuth": "true" |
||||
|
}, |
||||
|
// "ConnectionStrings": { |
||||
|
// "AbpAuditLogging": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpBackgroundJobs": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpBlobStoring": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpFeatureManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpIdentity": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpIdentityServer": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpPermissionManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpSettingManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpTenantManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Auth": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Basedata": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "DataExchange": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "FileStorage": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Inventory": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Job": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Label": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Message": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Store": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;" |
||||
|
// }, |
||||
|
"ConnectionStrings": { |
||||
|
"AbpAuditLogging": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpBackgroundJobs": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpBlobStoring": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpFeatureManagement": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpIdentity": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpIdentityServer": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpPermissionManagement": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpSettingManagement": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpTenantManagement": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Auth": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Basedata": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"DataExchange": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"FileStorage": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Inventory": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Job": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Label": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Message": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Store": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;" |
||||
|
}, |
||||
|
"IdentityClients": { |
||||
|
"Default": { |
||||
|
"Authority": "http://dev.ccwin-in.com:60083", |
||||
|
//"Authority": "http://localhost:59093", |
||||
|
"ClientId": "Auth_App", |
||||
|
"ClientSecret": "1q2w3E*", |
||||
|
"GrantType": "client_credentials", |
||||
|
"RequireHttps": "false", |
||||
|
"Scope": "Auth" |
||||
|
} |
||||
|
}, |
||||
|
"IsMultiTenancy": "True", |
||||
|
"Redis": { |
||||
|
"Configuration": "localhost:21194", |
||||
|
"KeyPrefix": "Wms:" |
||||
|
//"IsEnabled": "false" |
||||
|
}, |
||||
|
"RemoteServices": { |
||||
|
"Auth": { |
||||
|
"BaseUrl": "http://dev.ccwin-in.com:60083/" |
||||
|
//"BaseUrl": "http://localhost:59093/" |
||||
|
}, |
||||
|
"BaseData": { |
||||
|
//"BaseUrl": "http://dev.ccwin-in.com:60084/" |
||||
|
"BaseUrl": "http://localhost:59094/" |
||||
|
}, |
||||
|
"Default": { |
||||
|
"BaseUrl": "http://dev.ccwin-in.com:60083/" |
||||
|
//"BaseUrl": "http://localhost:59093/" |
||||
|
}, |
||||
|
"FileStorage": { |
||||
|
"BaseUrl": "http://dev.ccwin-in.com:60082/" |
||||
|
//"BaseUrl": "http://localhost:59092/" |
||||
|
}, |
||||
|
"Inventory": { |
||||
|
"BaseUrl": "http://localhost:59095/" |
||||
|
}, |
||||
|
"Job": { |
||||
|
"BaseUrl": "http://localhost:59095/" |
||||
|
}, |
||||
|
"Label": { |
||||
|
"BaseUrl": "http://dev.ccwin-in.com:60082/" |
||||
|
//"BaseUrl": "http://localhost:59092/" |
||||
|
}, |
||||
|
"Message": { |
||||
|
"BaseUrl": "http://dev.ccwin-in.com:60082/" |
||||
|
//"BaseUrl": "http://localhost:59092/" |
||||
|
}, |
||||
|
"Store": { |
||||
|
"BaseUrl": "http://localhost:59095/" |
||||
|
} |
||||
|
}, |
||||
|
"Serilog": { |
||||
|
"WriteTo": [ |
||||
|
{ |
||||
|
"Args": { |
||||
|
"configure": [ |
||||
|
{ |
||||
|
"Args": { |
||||
|
"path": "logs/log.txt", |
||||
|
"retainedFileCountLimit": "30", |
||||
|
"rollingInterval": "Day" |
||||
|
}, |
||||
|
"Name": "File" |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
"Name": "Async" |
||||
|
}, |
||||
|
{ |
||||
|
"Name": "Http", |
||||
|
"Args": { |
||||
|
"requestUri": "http://localhost:21093", |
||||
|
"queueLimitBytes": null |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
} |
@ -0,0 +1,191 @@ |
|||||
|
{ |
||||
|
"AlwaysAllowAuthorization": "true", |
||||
|
"RestoOptions": |
||||
|
{ |
||||
|
|
||||
|
"Address" :"http://7e42682n64.goho.co:21171/", |
||||
|
// 用户名 |
||||
|
"UserName" :"", |
||||
|
// 密码 |
||||
|
"Password" :"", |
||||
|
// 令牌 |
||||
|
"Token" :"", |
||||
|
"Path" :"zozocnApi/custom/receiveProductionPlan" |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
|
||||
|
|
||||
|
"App": { |
||||
|
"CorsOrigins": [ |
||||
|
"http://localhost:59080", |
||||
|
"http://localhost:59081", |
||||
|
"http://localhost:59090", |
||||
|
"http://localhost:59091", |
||||
|
"http://localhost:59093", |
||||
|
"http://localhost:59094", |
||||
|
"http://localhost:59095", |
||||
|
"http://localhost:59096", |
||||
|
"http://localhost:59097", |
||||
|
"http://localhost:59098", |
||||
|
"http://localhost:59099", |
||||
|
"http://localhost:59090", |
||||
|
"http://localhost:59091", |
||||
|
"http://localhost:59093", |
||||
|
"http://localhost:59094", |
||||
|
"http://localhost:59095", |
||||
|
"http://localhost:59096", |
||||
|
"http://localhost:59097", |
||||
|
"http://localhost:59098", |
||||
|
"http://localhost:59099", |
||||
|
"https://localhost:59090", |
||||
|
"https://localhost:59091", |
||||
|
"https://localhost:59093", |
||||
|
"https://localhost:59094", |
||||
|
"https://localhost:59095", |
||||
|
"https://localhost:59096", |
||||
|
"https://localhost:59097", |
||||
|
"https://localhost:59098", |
||||
|
"https://localhost:59099", |
||||
|
"https://localhost:59090", |
||||
|
"https://localhost:59091", |
||||
|
"https://localhost:59093", |
||||
|
"https://localhost:59094", |
||||
|
"https://localhost:59095", |
||||
|
"https://localhost:59096", |
||||
|
"https://localhost:59097", |
||||
|
"https://localhost:59098", |
||||
|
"https://localhost:59099", |
||||
|
"http://localhost:9527" |
||||
|
] |
||||
|
}, |
||||
|
"AuthServer": { |
||||
|
"Audience": "Auth", |
||||
|
"Authority": "http://10.164.233.5:60083/", |
||||
|
//"Authority": "http://localhost:59093/", |
||||
|
"ClientId": "Auth_App", |
||||
|
"ClientSecret": "1q2w3E*", |
||||
|
"RequireHttpsMetadata": "false", |
||||
|
"SwaggerClientId": "Auth_App", |
||||
|
"SwaggerClientSecret": "1q2w3e*", |
||||
|
"UseAuth": "true" |
||||
|
}, |
||||
|
// "ConnectionStrings": { |
||||
|
// "AbpAuditLogging": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpBackgroundJobs": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpBlobStoring": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpFeatureManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpIdentity": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpIdentityServer": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpPermissionManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpSettingManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "AbpTenantManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Auth": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Basedata": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "DataExchange": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "FileStorage": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Inventory": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Job": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Label": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Message": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;", |
||||
|
// "Store": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;" |
||||
|
// }, |
||||
|
"ConnectionStrings": { |
||||
|
"AbpAuditLogging": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpBackgroundJobs": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpBlobStoring": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpFeatureManagement": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpIdentity": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpIdentityServer": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpPermissionManagement": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpSettingManagement": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"AbpTenantManagement": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Auth": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Basedata": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"DataExchange": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"FileStorage": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Inventory": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Job": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Label": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Message": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", |
||||
|
"Store": "Server=10.164.233.6;Database=WMS_DongYang_Main_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;" |
||||
|
}, |
||||
|
"IdentityClients": { |
||||
|
"Default": { |
||||
|
"Authority": "http://10.164.233.5:60083", |
||||
|
//"Authority": "http://localhost:59093", |
||||
|
"ClientId": "Auth_App", |
||||
|
"ClientSecret": "1q2w3E*", |
||||
|
"GrantType": "client_credentials", |
||||
|
"RequireHttps": "false", |
||||
|
"Scope": "Auth" |
||||
|
} |
||||
|
}, |
||||
|
"IsMultiTenancy": "True", |
||||
|
"Redis": { |
||||
|
"Configuration": "localhost:21194", |
||||
|
"KeyPrefix": "Wms:" |
||||
|
//"IsEnabled": "false" |
||||
|
}, |
||||
|
"RemoteServices": { |
||||
|
"Auth": { |
||||
|
"BaseUrl": "http://10.164.233.5:60083/" |
||||
|
//"BaseUrl": "http://localhost:59093/" |
||||
|
}, |
||||
|
"BaseData": { |
||||
|
//"BaseUrl": "http://10.164.233.5:60084/" |
||||
|
"BaseUrl": "http://localhost:59094/" |
||||
|
}, |
||||
|
"Default": { |
||||
|
"BaseUrl": "http://10.164.233.5:60083/" |
||||
|
//"BaseUrl": "http://localhost:59093/" |
||||
|
}, |
||||
|
"FileStorage": { |
||||
|
"BaseUrl": "http://10.164.233.5:60082/" |
||||
|
//"BaseUrl": "http://localhost:59092/" |
||||
|
}, |
||||
|
"Inventory": { |
||||
|
"BaseUrl": "http://localhost:59095/" |
||||
|
}, |
||||
|
"Job": { |
||||
|
"BaseUrl": "http://localhost:59095/" |
||||
|
}, |
||||
|
"Label": { |
||||
|
"BaseUrl": "http://10.164.233.5:60082/" |
||||
|
//"BaseUrl": "http://localhost:59092/" |
||||
|
}, |
||||
|
"Message": { |
||||
|
"BaseUrl": "http://10.164.233.5:60082/" |
||||
|
//"BaseUrl": "http://localhost:59092/" |
||||
|
}, |
||||
|
"Store": { |
||||
|
"BaseUrl": "http://localhost:59095/" |
||||
|
} |
||||
|
}, |
||||
|
"Serilog": { |
||||
|
"WriteTo": [ |
||||
|
{ |
||||
|
"Args": { |
||||
|
"configure": [ |
||||
|
{ |
||||
|
"Args": { |
||||
|
"path": "logs/log.txt", |
||||
|
"retainedFileCountLimit": "30", |
||||
|
"rollingInterval": "Day" |
||||
|
}, |
||||
|
"Name": "File" |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
"Name": "Async" |
||||
|
}, |
||||
|
{ |
||||
|
"Name": "Http", |
||||
|
"Args": { |
||||
|
"requestUri": "http://localhost:21093", |
||||
|
"queueLimitBytes": null |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue