客户属性迁移

dev
嵇文龙 3 weeks ago
parent 63ddcbc22b
commit 79cb476603

@ -0,0 +1,222 @@
//using DS.Module.Core.Data;
//using SqlSugar;
//namespace DS.WMS.Core.Info.Entity;
///// <summary>
///// 往来单位标识
///// </summary>
//[SugarTable("info_client_tag", "往来单位标识")]
//public class InfoClientTag : BaseModelV2<long>
//{
// /// <summary>
// /// 往来单位id
// /// </summary>
// public long ClientId { get; set; }
// ///// <summary>
// ///// Desc:是否特批放单客户
// ///// </summary>
// //[SugarColumn(ColumnDescription = "是否特批放单客户", DefaultValue = "0")]
// //public bool IsSpecialApproval { get; set; }
// /// <summary>
// /// Desc:是否船公司
// /// </summary>
// [SugarColumn(ColumnDescription = "是否船公司", DefaultValue = "0")]
// public bool IsCarrier { get; set; } = false;
// /// <summary>
// /// Desc:是否订舱公司
// /// </summary>
// [SugarColumn(ColumnDescription = "是否订舱公司", DefaultValue = "0")]
// public bool IsBooking { get; set; } = false;
// /// <summary>
// /// Desc:是否场站
// /// </summary>
// [SugarColumn(ColumnDescription = "是否场站", DefaultValue = "0")]
// public bool IsYard { get; set; } = false;
// /// <summary>
// /// Desc:是否车队
// /// </summary>
// [SugarColumn(ColumnDescription = "是否车队", DefaultValue = "0")]
// public bool IsTruck { get; set; } = false;
// /// <summary>
// /// Desc:是否委托单位
// /// </summary>
// [SugarColumn(ColumnDescription = "是否委托单位", DefaultValue = "0")]
// public bool IsController { get; set; } = false;
// /// <summary>
// /// Desc:是否报关行
// /// </summary>
// [SugarColumn(ColumnDescription = "是否报关行", DefaultValue = "0")]
// public bool IsCustom { get; set; } = false;
// /// <summary>
// /// Desc:是否代理(国外)
// /// </summary>
// [SugarColumn(ColumnDescription = "是否代理(国外)", DefaultValue = "0")]
// public bool IsAgent { get; set; } = false;
// /// <summary>
// /// Desc:是否代理(国内)
// /// </summary>
// [SugarColumn(ColumnDescription = "是否代理(国内)", DefaultValue = "0")]
// public bool IsAgentCn { get; set; } = false;
// /// <summary>
// /// Desc:是否快递公司
// /// </summary>
// [SugarColumn(ColumnDescription = "是否快递公司", DefaultValue = "0")]
// public bool IsExpress { get; set; } = false;
// /// <summary>
// /// Desc:是否航空公司
// /// </summary>
// [SugarColumn(ColumnDescription = "是否航空公司", DefaultValue = "0")]
// public bool IsAirLines { get; set; } = false;
// /// <summary>
// /// Desc:是否发货人
// /// </summary>
// [SugarColumn(ColumnDescription = "是否发货人", DefaultValue = "0")]
// public bool IsShipper { get; set; } = false;
// /// <summary>
// /// Desc:是否收货人
// /// </summary>
// [SugarColumn(ColumnDescription = "是否收货人", DefaultValue = "0")]
// public bool IsConsignee { get; set; } = false;
// /// <summary>
// /// Desc:是否通知人
// /// </summary>
// [SugarColumn(ColumnDescription = "是否通知人", DefaultValue = "0")]
// public bool IsNotifyParty { get; set; } = false;
// /// <summary>
// /// Desc:是否仓库
// /// </summary>
// [SugarColumn(ColumnDescription = "是否仓库", DefaultValue = "0")]
// public bool IsWareHouse { get; set; }
// /// <summary>
// /// Desc:是否码头
// /// </summary>
// [SugarColumn(ColumnDescription = "是否码头", DefaultValue = "0")]
// public bool IsWharf { get; set; } = false;
// /// <summary>
// /// Desc:是否保险公司
// /// </summary>
// [SugarColumn(ColumnDescription = "是否保险公司", DefaultValue = "0")]
// public bool IsInsurer { get; set; } = false;
// /// <summary>
// /// Desc:是否租箱公司
// /// </summary>
// [SugarColumn(ColumnDescription = "是否租箱公司", DefaultValue = "0")]
// public bool IsLeasing { get; set; } = false;
// /// <summary>
// /// Desc:是否贸易代理
// /// </summary>
// [SugarColumn(ColumnDescription = "是否贸易代理", DefaultValue = "0")]
// public bool IsTradingAgency { get; set; } = false;
// /// <summary>
// /// Desc:是否其他
// /// </summary>
// [SugarColumn(ColumnDescription = "是否其他", DefaultValue = "0")]
// public bool IsOther { get; set; } = false;
// /// <summary>
// /// Desc:其他类型
// /// </summary>
// [SugarColumn(ColumnDescription = "其他类型", Length = 100,IsNullable = true)]
// public string Others { get; set; }
// /// <summary>
// /// Desc:是否船代
// /// </summary>
// [SugarColumn(ColumnDescription = "是否船代", DefaultValue = "0")]
// public bool IsShipAgency { get; set; }
// /// <summary>
// /// Desc:是否经营单位
// /// </summary>
// [SugarColumn(ColumnDescription = "是否经营单位", DefaultValue = "0")]
// public bool IsEnterprise { get; set; } = false;
// /// <summary>
// /// Desc:是否国内发货人
// /// </summary>
// [SugarColumn(ColumnDescription = "是否国内发货人", DefaultValue = "0")]
// public bool IsShipperCn { get; set; } = false;
// /// <summary>
// /// Desc:是否约主
// /// </summary>
// [SugarColumn(ColumnDescription = "是否约主", DefaultValue = "0")]
// public bool IsContract { get; set; } = false;
// /// <summary>
// /// 是否国内同行
// /// </summary>
// [SugarColumn(ColumnDescription = "是否国内同行", DefaultValue = "0")]
// public bool IsDomesticPeers { get; set; }
// /// <summary>
// /// 是否国外同行
// /// </summary>
// [SugarColumn(ColumnDescription = "是否国外同行", DefaultValue = "0")]
// public bool IsForeignCounterparts { get; set; }
// /// <summary>
// /// 是否国内直客
// /// </summary>
// [SugarColumn(ColumnDescription = "是否国内直客", DefaultValue = "0")]
// public bool IsDirectCustomerCn { get; set; }
// /// <summary>
// /// 是否国外直客
// /// </summary>
// [SugarColumn(ColumnDescription = "是否国外直客", DefaultValue = "0")]
// public bool IsDirectCustomer { get; set; }
// /// <summary>
// /// 是否指定货发货人
// /// </summary>
// [SugarColumn(ColumnDescription = "是否指定货发货人", DefaultValue = "0")]
// public bool IsShipperZDH { get; set; }
// /// <summary>
// /// 是否个人
// /// </summary>
// [SugarColumn(ColumnDescription = "是否个人", DefaultValue = "0")]
// public bool IsPersonal { get; set; }
// /// <summary>
// /// 是否装箱加固
// /// </summary>
// [SugarColumn(ColumnDescription = "是否装箱加固", DefaultValue = "0")]
// public bool IsPacking { get; set; }
// /// <summary>
// /// 是否放箱公司
// /// </summary>
// [SugarColumn(ColumnDescription = "是否放箱公司", DefaultValue = "0")]
// public bool IsContainerCompany { get; set; }
// /// <summary>
// /// 机构Id
// /// </summary>
// [SugarColumn(ColumnDescription = "机构Id")]
// public long OrgId { get; set; }
//}

@ -16,7 +16,6 @@ using DS.WMS.Core.Sys.Entity;
using DS.WMS.Core.Sys.Interface; using DS.WMS.Core.Sys.Interface;
using DS.WMS.Core.TaskInteraction.Dtos; using DS.WMS.Core.TaskInteraction.Dtos;
using DS.WMS.Core.TaskInteraction.Interface; using DS.WMS.Core.TaskInteraction.Interface;
using Fasterflect;
using Mapster; using Mapster;
using Masuit.Tools.Systems; using Masuit.Tools.Systems;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;

@ -61,6 +61,9 @@ public class ClientInfoController : ApiController
// List<InfoClientAttribute> attributes = []; // List<InfoClientAttribute> attributes = [];
// foreach (var dbLink in dbLinks) // foreach (var dbLink in dbLinks)
// { // {
// if (dbLink.TenantId != 1819549542425694208)
// continue;
// tenantDb = new SqlSugarClient(new ConnectionConfig // tenantDb = new SqlSugarClient(new ConnectionConfig
// { // {
// ConfigId = dbLink.Id, // ConfigId = dbLink.Id,
@ -75,7 +78,7 @@ public class ClientInfoController : ApiController
// foreach (var item in dicList) // foreach (var item in dicList)
// { // {
// object value = PropertyExtensions.GetPropertyValue(tag, item.ArName); // object value = PropertyExtensions.GetPropertyValue(tag, item.ArName);
// if (value != null && value is bool boolVal && boolVal) // if (value is bool boolVal && boolVal)
// { // {
// var attribute = new InfoClientAttribute // var attribute = new InfoClientAttribute
// { // {

Loading…
Cancel
Save