公共库缓存

下货纸
booking_auth_dev
wanghaomei 2 years ago
parent 0fc07ebb40
commit 8dc390cb8a

File diff suppressed because it is too large Load Diff

@ -569,6 +569,10 @@ namespace Myshipping.Application.Entity
/// </summary>
public string THIRDPAYADDR { get; set; }
/// <summary>
/// 场站联系人
/// </summary>
public string YARDCONTRACT { get; set; }
/// <summary>
/// 场站联系人电话
/// </summary>
public string YARDCONTRACTTEL { get; set; }

@ -34,6 +34,81 @@
订舱附件文件配置
</summary>
</member>
<member name="T:Myshipping.Application.EDI.Yard.XiahuozhiHelpler">
<summary>
下货纸辅助类
</summary>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.formatEdiStr(System.String,System.String)">
<summary>
各种文本转义字符东胜7移植
</summary>
<param name="fileType">文件类型例如txt、xml</param>
<param name="str">文本字符串</param>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetCtnEDICode(System.String,System.String)">
<summary>
获取箱型的EDI代码
</summary>
<param name="ctnCode"></param>
<param name="EDINAME"></param>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetAllCodeCtn">
<summary>
获取所有箱型(使用缓存)
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetAllCodeCarrier">
<summary>
获取所有船司(使用缓存)
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetAllMappingCtn">
<summary>
获取所有箱型映射(使用缓存)
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetAllMappingCarrier">
<summary>
获取所有船司映射(使用缓存)
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetAllCodeFrt">
<summary>
获取所有付费方式(使用缓存)
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetAllMappingFrt">
<summary>
获取所有付费方式映射(使用缓存)
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetAllTenantParam">
<summary>
获取所有公司参数(使用缓存)
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetAllCodeVessel">
<summary>
获取所有船名(使用缓存)
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Application.EDI.Yard.XiahuozhiHelpler.GetAllMappingVessel">
<summary>
获取所有船名映射(使用缓存)
</summary>
<returns></returns>
</member>
<member name="T:Myshipping.Application.Entity.BookingCtn">
<summary>
@ -974,6 +1049,11 @@
第三付款地
</summary>
</member>
<member name="P:Myshipping.Application.Entity.BookingOrder.YARDCONTRACT">
<summary>
场站联系人
</summary>
</member>
<member name="P:Myshipping.Application.Entity.BookingOrder.YARDCONTRACTTEL">
<summary>
场站联系人电话
@ -2630,6 +2710,11 @@
第三付款地
</summary>
</member>
<member name="P:Myshipping.Application.BookingOrderDto.YARDCONTRACT">
<summary>
场站联系人
</summary>
</member>
<member name="P:Myshipping.Application.BookingOrderDto.YARDCONTRACTTEL">
<summary>
场站联系人电话
@ -3360,6 +3445,11 @@
第三付款地
</summary>
</member>
<member name="P:Myshipping.Application.BookingOrderInput.YARDCONTRACT">
<summary>
场站联系人
</summary>
</member>
<member name="P:Myshipping.Application.BookingOrderInput.YARDCONTRACTTEL">
<summary>
场站联系人电话

@ -573,6 +573,10 @@ namespace Myshipping.Application
/// </summary>
public string THIRDPAYADDR { get; set; }
/// <summary>
/// 场站联系人
/// </summary>
public string YARDCONTRACT { get; set; }
/// <summary>
/// 场站联系人电话
/// </summary>
public string YARDCONTRACTTEL { get; set; }

@ -704,7 +704,12 @@ namespace Myshipping.Application
/// 第三付款地
/// </summary>
public virtual string THIRDPAYADDR { get; set; }
/// <summary>
/// 场站联系人
/// </summary>
public string YARDCONTRACT { get; set; }
/// <summary>
/// 场站联系人电话
/// </summary>

@ -10,5 +10,5 @@
"basePath": "", //使
"relativePath": "Upload/PrintTemplate",
"fileType": [ ".xls", ".xlsx", ".pdf" ]
}
},
}

@ -1,4 +1,5 @@
using System;
using Myshipping.Core.Entity;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

@ -89,6 +89,34 @@ public class CommonConst
/// 付费方式
/// </summary>
public const string CACHE_KEY_COMMON_DB_FRT = "CommonDbFrt";
/// <summary>
/// 箱型映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_CTN = "CommonDbMappingCtn";
/// <summary>
/// 箱型映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_CARRIER = "CommonDbMappingCarrier";
/// <summary>
/// 付费方式映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_FRT = "CommonDbMappingFrt";
/// <summary>
/// 租户参数
/// </summary>
public const string CACHE_KEY_COMMON_DB_TENANT_PARAM_VALUE = "TenantParamValue";
/// <summary>
/// 船名映射
/// </summary>
public const string CACHE_KEY_COMMON_DB_MAPPING_VESSEL = "CommonDbMappingVessel";
#endregion
public const string API_USER_HEADER_KEY = "USER_KEY";

@ -44,5 +44,36 @@ namespace Myshipping.Core.Entity
}
[SugarTable("MappingCarrier")]
[Description("船公司映射")]
public class MappingCarrier : CommonDbEntity
{
/// <summary>
/// 代码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 模块
/// </summary>
public string Module { get; set; }
/// <summary>
/// 映射代码
/// </summary>
public string MapCode { get; set; }
/// <summary>
/// 映射名称
/// </summary>
public string MapName { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}

@ -45,5 +45,42 @@ namespace Myshipping.Core.Entity
}
[SugarTable("MappingCtn")]
[Description("箱型映射")]
public class MappingCtn : CommonDbEntity
{
/// <summary>
/// 代码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 船司代码
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 模块
/// </summary>
public string Module { get; set; }
/// <summary>
/// 映射代码
/// </summary>
public string MapCode { get; set; }
/// <summary>
/// 映射名称
/// </summary>
public string MapName { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}

@ -40,4 +40,40 @@ namespace Myshipping.Core.Entity
}
[SugarTable("MappingFrt")]
[Description("付费方式映射")]
public class MappingFrt : CommonDbEntity
{
/// <summary>
/// 代码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 船司代码
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 模块
/// </summary>
public string Module { get; set; }
/// <summary>
/// 映射代码
/// </summary>
public string MapCode { get; set; }
/// <summary>
/// 映射名称
/// </summary>
public string MapName { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}

@ -54,4 +54,31 @@ namespace Myshipping.Core.Entity
}
[SugarTable("MappingVessel")]
[Description("船名映射")]
public class MappingVessel : CommonDbEntity
{
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 模块
/// </summary>
public string Module { get; set; }
/// <summary>
/// 映射名称
/// </summary>
public string MapName { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}

@ -622,6 +622,31 @@
付费方式
</summary>
</member>
<member name="F:Myshipping.Core.CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CTN">
<summary>
箱型映射
</summary>
</member>
<member name="F:Myshipping.Core.CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CARRIER">
<summary>
箱型映射
</summary>
</member>
<member name="F:Myshipping.Core.CommonConst.CACHE_KEY_COMMON_DB_MAPPING_FRT">
<summary>
付费方式映射
</summary>
</member>
<member name="F:Myshipping.Core.CommonConst.CACHE_KEY_COMMON_DB_TENANT_PARAM_VALUE">
<summary>
租户参数
</summary>
</member>
<member name="F:Myshipping.Core.CommonConst.CACHE_KEY_COMMON_DB_MAPPING_VESSEL">
<summary>
船名映射
</summary>
</member>
<member name="F:Myshipping.Core.CommonConst.ENTITY_ASSEMBLY_NAME">
<summary>
程序集
@ -662,6 +687,31 @@
备注
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCarrier.Code">
<summary>
代码
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCarrier.Module">
<summary>
模块
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCarrier.MapCode">
<summary>
映射代码
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCarrier.MapName">
<summary>
映射名称
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCarrier.Remark">
<summary>
备注
</summary>
</member>
<member name="P:Myshipping.Core.Entity.CodeCity.Code">
<summary>
代码
@ -807,6 +857,36 @@
备注
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCtn.Code">
<summary>
代码
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCtn.CarrierCode">
<summary>
船司代码
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCtn.Module">
<summary>
模块
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCtn.MapCode">
<summary>
映射代码
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCtn.MapName">
<summary>
映射名称
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingCtn.Remark">
<summary>
备注
</summary>
</member>
<member name="P:Myshipping.Core.Entity.CodeDangerGrade.Code">
<summary>
代码
@ -872,6 +952,36 @@
备注
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingFrt.Code">
<summary>
代码
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingFrt.CarrierCode">
<summary>
船司代码
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingFrt.Module">
<summary>
模块
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingFrt.MapCode">
<summary>
映射代码
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingFrt.MapName">
<summary>
映射名称
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingFrt.Remark">
<summary>
备注
</summary>
</member>
<member name="P:Myshipping.Core.Entity.CodePackage.Code">
<summary>
代码
@ -1072,6 +1182,26 @@
修改人
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingVessel.Name">
<summary>
名称
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingVessel.Module">
<summary>
模块
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingVessel.MapName">
<summary>
映射名称
</summary>
</member>
<member name="P:Myshipping.Core.Entity.MappingVessel.Remark">
<summary>
备注
</summary>
</member>
<member name="P:Myshipping.Core.Entity.CodeYard.Code">
<summary>
代码
@ -5101,6 +5231,186 @@
</summary>
<example>123456</example>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodeCarrier">
<summary>
获取公共库 船公司
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodeVessel">
<summary>
获取公共库 船名
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodeForwarder">
<summary>
获取公共库 船代
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodeYard">
<summary>
获取公共库 场站
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodePortLoad">
<summary>
获取公共库 起始港
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodePort">
<summary>
获取公共库 目的港
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodePackage">
<summary>
获取公共库 包装
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodeService">
<summary>
获取公共库 运输方式
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodeCtn">
<summary>
获取公共库 箱型
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllCodeFrt">
<summary>
获取公共库 付费方式
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllMappingCtn">
<summary>
获取公共库 箱型映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllMappingCarrier">
<summary>
获取公共库 船司映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllMappingFrt">
<summary>
获取公共库 付费方式映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllMappingVessel">
<summary>
获取公共库 船名映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodeCarrier(System.Collections.Generic.List{Myshipping.Core.Entity.CodeCarrier})">
<summary>
设置公共库 船公司
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodeVessel(System.Collections.Generic.List{Myshipping.Core.Entity.CodeVessel})">
<summary>
设置公共库 船名
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodeForwarder(System.Collections.Generic.List{Myshipping.Core.Entity.CodeForwarder})">
<summary>
设置公共库 船代
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodeYard(System.Collections.Generic.List{Myshipping.Core.Entity.CodeYard})">
<summary>
设置公共库 场站
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodePortLoad(System.Collections.Generic.List{Myshipping.Core.Entity.CodePortLoad})">
<summary>
设置公共库 起始港
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodePort(System.Collections.Generic.List{Myshipping.Core.Entity.CodePort})">
<summary>
设置公共库 目的港
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodePackage(System.Collections.Generic.List{Myshipping.Core.Entity.CodePackage})">
<summary>
设置公共库 包装
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodeService(System.Collections.Generic.List{Myshipping.Core.Entity.CodeService})">
<summary>
设置公共库 运输方式
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodeCtn(System.Collections.Generic.List{Myshipping.Core.Entity.CodeCtn})">
<summary>
设置公共库 箱型
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodeFrt(System.Collections.Generic.List{Myshipping.Core.Entity.CodeFrt})">
<summary>
设置公共库 付费方式
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllMappingCtn(System.Collections.Generic.List{Myshipping.Core.Entity.MappingCtn})">
<summary>
设置公共库 箱型映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllMappingCarrier(System.Collections.Generic.List{Myshipping.Core.Entity.MappingCarrier})">
<summary>
设置公共库 船司映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllMappingFrt(System.Collections.Generic.List{Myshipping.Core.Entity.MappingFrt})">
<summary>
设置公共库 费用方式映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllMappingVessel(System.Collections.Generic.List{Myshipping.Core.Entity.MappingVessel})">
<summary>
设置公共库 船名映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllTenantParam">
<summary>
获取租户参数
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllTenantParam(System.Collections.Generic.List{Myshipping.Core.Entity.DjyTenantParamValue})">
<summary>
设置租户参数
</summary>
<returns></returns>
</member>
<member name="T:Myshipping.Core.Service.SysCacheService">
<summary>
系统缓存服务
@ -5277,6 +5587,186 @@
<param name="key"></param>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodeCarrier">
<summary>
获取公共库 船公司
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodeVessel">
<summary>
获取公共库 船名
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodeForwarder">
<summary>
获取公共库 船代
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodeYard">
<summary>
获取公共库 场站
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodePortLoad">
<summary>
获取公共库 起始港
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodePort">
<summary>
获取公共库 目的港
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodePackage">
<summary>
获取公共库 包装
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodeService">
<summary>
获取公共库 运输方式
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodeCtn">
<summary>
获取公共库 箱型
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllCodeFrt">
<summary>
获取公共库 付费方式
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllMappingCtn">
<summary>
获取公共库 船司映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllMappingCarrier">
<summary>
获取公共库 箱型映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllMappingFrt">
<summary>
获取公共库 费用方式映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllMappingVessel">
<summary>
获取公共库 船名映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodeCarrier(System.Collections.Generic.List{Myshipping.Core.Entity.CodeCarrier})">
<summary>
设置公共库 船公司
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodeVessel(System.Collections.Generic.List{Myshipping.Core.Entity.CodeVessel})">
<summary>
设置公共库 船名
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodeForwarder(System.Collections.Generic.List{Myshipping.Core.Entity.CodeForwarder})">
<summary>
设置公共库 船代
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodeYard(System.Collections.Generic.List{Myshipping.Core.Entity.CodeYard})">
<summary>
设置公共库 场站
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodePortLoad(System.Collections.Generic.List{Myshipping.Core.Entity.CodePortLoad})">
<summary>
设置公共库 起始港
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodePort(System.Collections.Generic.List{Myshipping.Core.Entity.CodePort})">
<summary>
设置公共库 目的港
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodePackage(System.Collections.Generic.List{Myshipping.Core.Entity.CodePackage})">
<summary>
设置公共库 包装
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodeService(System.Collections.Generic.List{Myshipping.Core.Entity.CodeService})">
<summary>
设置公共库 运输方式
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodeCtn(System.Collections.Generic.List{Myshipping.Core.Entity.CodeCtn})">
<summary>
设置公共库 箱型
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodeFrt(System.Collections.Generic.List{Myshipping.Core.Entity.CodeFrt})">
<summary>
设置公共库 付费方式
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllMappingCtn(System.Collections.Generic.List{Myshipping.Core.Entity.MappingCtn})">
<summary>
设置公共库 箱型映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllMappingCarrier(System.Collections.Generic.List{Myshipping.Core.Entity.MappingCarrier})">
<summary>
设置公共库 船司映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllMappingFrt(System.Collections.Generic.List{Myshipping.Core.Entity.MappingFrt})">
<summary>
设置公共库 费用方式映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllMappingVessel(System.Collections.Generic.List{Myshipping.Core.Entity.MappingVessel})">
<summary>
设置公共库 船名映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllTenantParam">
<summary>
获取租户参数
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllTenantParam(System.Collections.Generic.List{Myshipping.Core.Entity.DjyTenantParamValue})">
<summary>
设置租户参数
</summary>
<returns></returns>
</member>
<member name="T:Myshipping.Core.Service.CodeGenConfigService">
<summary>
代码生成详细配置服务

@ -1,4 +1,5 @@
using System;
using Myshipping.Core.Entity;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
@ -30,4 +31,192 @@ public interface ISysCacheService
Task<List<string>> GetAllPermission();
Task SetAllPermission(List<string> permissions);
#region 公共库缓存
/// <summary>
/// 获取公共库 船公司
/// </summary>
/// <returns></returns>
Task<List<CodeCarrier>> GetAllCodeCarrier();
/// <summary>
/// 获取公共库 船名
/// </summary>
/// <returns></returns>
Task<List<CodeVessel>> GetAllCodeVessel();
/// <summary>
/// 获取公共库 船代
/// </summary>
/// <returns></returns>
Task<List<CodeForwarder>> GetAllCodeForwarder();
/// <summary>
/// 获取公共库 场站
/// </summary>
/// <returns></returns>
Task<List<CodeYard>> GetAllCodeYard();
/// <summary>
/// 获取公共库 起始港
/// </summary>
/// <returns></returns>
Task<List<CodePortLoad>> GetAllCodePortLoad();
/// <summary>
/// 获取公共库 目的港
/// </summary>
/// <returns></returns>
Task<List<CodePort>> GetAllCodePort();
/// <summary>
/// 获取公共库 包装
/// </summary>
/// <returns></returns>
Task<List<CodePackage>> GetAllCodePackage();
/// <summary>
/// 获取公共库 运输方式
/// </summary>
/// <returns></returns>
Task<List<CodeService>> GetAllCodeService();
/// <summary>
/// 获取公共库 箱型
/// </summary>
/// <returns></returns>
Task<List<CodeCtn>> GetAllCodeCtn();
/// <summary>
/// 获取公共库 付费方式
/// </summary>
/// <returns></returns>
Task<List<CodeFrt>> GetAllCodeFrt();
/// <summary>
/// 获取公共库 箱型映射
/// </summary>
/// <returns></returns>
Task<List<MappingCtn>> GetAllMappingCtn();
/// <summary>
/// 获取公共库 船司映射
/// </summary>
/// <returns></returns>
Task<List<MappingCarrier>> GetAllMappingCarrier();
/// <summary>
/// 获取公共库 付费方式映射
/// </summary>
/// <returns></returns>
Task<List<MappingFrt>> GetAllMappingFrt();
/// <summary>
/// 获取公共库 船名映射
/// </summary>
/// <returns></returns>
Task<List<MappingVessel>> GetAllMappingVessel();
/// <summary>
/// 设置公共库 船公司
/// </summary>
/// <returns></returns>
Task SetAllCodeCarrier(List<CodeCarrier> list);
/// <summary>
/// 设置公共库 船名
/// </summary>
/// <returns></returns>
Task SetAllCodeVessel(List<CodeVessel> list);
/// <summary>
/// 设置公共库 船代
/// </summary>
/// <returns></returns>
Task SetAllCodeForwarder(List<CodeForwarder> list);
/// <summary>
/// 设置公共库 场站
/// </summary>
/// <returns></returns>
Task SetAllCodeYard(List<CodeYard> list);
/// <summary>
/// 设置公共库 起始港
/// </summary>
/// <returns></returns>
Task SetAllCodePortLoad(List<CodePortLoad> list);
/// <summary>
/// 设置公共库 目的港
/// </summary>
/// <returns></returns>
Task SetAllCodePort(List<CodePort> list);
/// <summary>
/// 设置公共库 包装
/// </summary>
/// <returns></returns>
Task SetAllCodePackage(List<CodePackage> list);
/// <summary>
/// 设置公共库 运输方式
/// </summary>
/// <returns></returns>
Task SetAllCodeService(List<CodeService> list);
/// <summary>
/// 设置公共库 箱型
/// </summary>
/// <returns></returns>
Task SetAllCodeCtn(List<CodeCtn> list);
/// <summary>
/// 设置公共库 付费方式
/// </summary>
/// <returns></returns>
Task SetAllCodeFrt(List<CodeFrt> list);
/// <summary>
/// 设置公共库 箱型映射
/// </summary>
/// <returns></returns>
Task SetAllMappingCtn(List<MappingCtn> list);
/// <summary>
/// 设置公共库 船司映射
/// </summary>
/// <returns></returns>
Task SetAllMappingCarrier(List<MappingCarrier> list);
/// <summary>
/// 设置公共库 费用方式映射
/// </summary>
/// <returns></returns>
Task SetAllMappingFrt(List<MappingFrt> list);
/// <summary>
/// 设置公共库 船名映射
/// </summary>
/// <returns></returns>
Task SetAllMappingVessel(List<MappingVessel> list);
#endregion
#region DJY
/// <summary>
/// 获取租户参数
/// </summary>
/// <returns></returns>
Task<List<DjyTenantParamValue>> GetAllTenantParam();
/// <summary>
/// 设置租户参数
/// </summary>
/// <returns></returns>
Task SetAllTenantParam(List<DjyTenantParamValue> list);
#endregion
}

@ -2,6 +2,7 @@
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Myshipping.Core.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
@ -284,4 +285,288 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
{
return _cache.ExistsAsync(key);
}
#region 公共库缓存
/// <summary>
/// 获取公共库 船公司
/// </summary>
/// <returns></returns>
public Task<List<CodeCarrier>> GetAllCodeCarrier()
{
return _cache.GetAsync<List<CodeCarrier>>(CommonConst.CACHE_KEY_COMMON_DB_CARRIER);
}
/// <summary>
/// 获取公共库 船名
/// </summary>
/// <returns></returns>
public Task<List<CodeVessel>> GetAllCodeVessel()
{
return _cache.GetAsync<List<CodeVessel>>(CommonConst.CACHE_KEY_COMMON_DB_VESSEL);
}
/// <summary>
/// 获取公共库 船代
/// </summary>
/// <returns></returns>
public Task<List<CodeForwarder>> GetAllCodeForwarder()
{
return _cache.GetAsync<List<CodeForwarder>>(CommonConst.CACHE_KEY_COMMON_DB_FORWARDER);
}
/// <summary>
/// 获取公共库 场站
/// </summary>
/// <returns></returns>
public Task<List<CodeYard>> GetAllCodeYard()
{
return _cache.GetAsync<List<CodeYard>>(CommonConst.CACHE_KEY_COMMON_DB_YARD);
}
/// <summary>
/// 获取公共库 起始港
/// </summary>
/// <returns></returns>
public Task<List<CodePortLoad>> GetAllCodePortLoad()
{
return _cache.GetAsync<List<CodePortLoad>>(CommonConst.CACHE_KEY_COMMON_DB_PORTLOAD);
}
/// <summary>
/// 获取公共库 目的港
/// </summary>
/// <returns></returns>
public Task<List<CodePort>> GetAllCodePort()
{
return _cache.GetAsync<List<CodePort>>(CommonConst.CACHE_KEY_COMMON_DB_PORT);
}
/// <summary>
/// 获取公共库 包装
/// </summary>
/// <returns></returns>
public Task<List<CodePackage>> GetAllCodePackage()
{
return _cache.GetAsync<List<CodePackage>>(CommonConst.CACHE_KEY_COMMON_DB_PACKAGE);
}
/// <summary>
/// 获取公共库 运输方式
/// </summary>
/// <returns></returns>
public Task<List<CodeService>> GetAllCodeService()
{
return _cache.GetAsync<List<CodeService>>(CommonConst.CACHE_KEY_COMMON_DB_SERVICE);
}
/// <summary>
/// 获取公共库 箱型
/// </summary>
/// <returns></returns>
public Task<List<CodeCtn>> GetAllCodeCtn()
{
return _cache.GetAsync<List<CodeCtn>>(CommonConst.CACHE_KEY_COMMON_DB_CTN);
}
/// <summary>
/// 获取公共库 付费方式
/// </summary>
/// <returns></returns>
public Task<List<CodeFrt>> GetAllCodeFrt()
{
return _cache.GetAsync<List<CodeFrt>>(CommonConst.CACHE_KEY_COMMON_DB_FRT);
}
/// <summary>
/// 获取公共库 船司映射
/// </summary>
/// <returns></returns>
public Task<List<MappingCtn>> GetAllMappingCtn()
{
return _cache.GetAsync<List<MappingCtn>>(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CTN);
}
/// <summary>
/// 获取公共库 箱型映射
/// </summary>
/// <returns></returns>
public Task<List<MappingCarrier>> GetAllMappingCarrier()
{
return _cache.GetAsync<List<MappingCarrier>>(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CARRIER);
}
/// <summary>
/// 获取公共库 费用方式映射
/// </summary>
/// <returns></returns>
public Task<List<MappingFrt>> GetAllMappingFrt()
{
return _cache.GetAsync<List<MappingFrt>>(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_FRT);
}
/// <summary>
/// 获取公共库 船名映射
/// </summary>
/// <returns></returns>
public Task<List<MappingVessel>> GetAllMappingVessel()
{
return _cache.GetAsync<List<MappingVessel>>(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_VESSEL);
}
/// <summary>
/// 设置公共库 船公司
/// </summary>
/// <returns></returns>
public Task SetAllCodeCarrier(List<CodeCarrier> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CARRIER, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 船名
/// </summary>
/// <returns></returns>
public Task SetAllCodeVessel(List<CodeVessel> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_VESSEL, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 船代
/// </summary>
/// <returns></returns>
public Task SetAllCodeForwarder(List<CodeForwarder> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FORWARDER, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 场站
/// </summary>
/// <returns></returns>
public Task SetAllCodeYard(List<CodeYard> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_YARD, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 起始港
/// </summary>
/// <returns></returns>
public Task SetAllCodePortLoad(List<CodePortLoad> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORTLOAD, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 目的港
/// </summary>
/// <returns></returns>
public Task SetAllCodePort(List<CodePort> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORT, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 包装
/// </summary>
/// <returns></returns>
public Task SetAllCodePackage(List<CodePackage> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PACKAGE, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 运输方式
/// </summary>
/// <returns></returns>
public Task SetAllCodeService(List<CodeService> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_SERVICE, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 箱型
/// </summary>
/// <returns></returns>
public Task SetAllCodeCtn(List<CodeCtn> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CTN, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 付费方式
/// </summary>
/// <returns></returns>
public Task SetAllCodeFrt(List<CodeFrt> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FRT, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 箱型映射
/// </summary>
/// <returns></returns>
public Task SetAllMappingCtn(List<MappingCtn> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CTN, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 船司映射
/// </summary>
/// <returns></returns>
public Task SetAllMappingCarrier(List<MappingCarrier> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CARRIER, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 费用方式映射
/// </summary>
/// <returns></returns>
public Task SetAllMappingFrt(List<MappingFrt> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_FRT, list, TimeSpan.FromMinutes(5));
}
/// <summary>
/// 设置公共库 船名映射
/// </summary>
/// <returns></returns>
public Task SetAllMappingVessel(List<MappingVessel> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_VESSEL, list, TimeSpan.FromMinutes(5));
}
#endregion
#region DJY
/// <summary>
/// 获取租户参数
/// </summary>
/// <returns></returns>
public Task<List<DjyTenantParamValue>> GetAllTenantParam()
{
return _cache.GetAsync<List<DjyTenantParamValue>>(CommonConst.CACHE_KEY_COMMON_DB_TENANT_PARAM_VALUE);
}
/// <summary>
/// 设置租户参数
/// </summary>
/// <returns></returns>
public Task SetAllTenantParam(List<DjyTenantParamValue> list)
{
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_TENANT_PARAM_VALUE, list, TimeSpan.FromMinutes(5));
}
#endregion
}

@ -210,14 +210,15 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodeCarrier>> GetAllCarrier()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_CARRIER))
var list = await _sysCacheService.GetAllCodeCarrier();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodeCarrier>>(CommonConst.CACHE_KEY_COMMON_DB_CARRIER);
return list;
}
else
{
var list = await _codeCarrierRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_CARRIER, list, TimeSpan.FromMinutes(5));
list = await _codeCarrierRep.ToListAsync();
await _sysCacheService.SetAllCodeCarrier(list);
return list;
}
}
@ -225,14 +226,15 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodeVessel>> GetAllVessel()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_VESSEL))
var list = await _sysCacheService.GetAllCodeVessel();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodeVessel>>(CommonConst.CACHE_KEY_COMMON_DB_VESSEL);
return list;
}
else
{
var list = await _codeVesselRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_VESSEL, list, TimeSpan.FromMinutes(5));
list = await _codeVesselRep.ToListAsync();
await _sysCacheService.SetAllCodeVessel(list);
return list;
}
}
@ -240,14 +242,15 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodeForwarder>> GetAllForwarder()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_FORWARDER))
var list = await _sysCacheService.GetAllCodeForwarder();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodeForwarder>>(CommonConst.CACHE_KEY_COMMON_DB_FORWARDER);
return list;
}
else
{
var list = await _codeForwarderRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_FORWARDER, list, TimeSpan.FromMinutes(5));
list = await _codeForwarderRep.ToListAsync();
await _sysCacheService.SetAllCodeForwarder(list);
return list;
}
}
@ -255,14 +258,15 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodeYard>> GetAllYard()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_YARD))
var list = await _sysCacheService.GetAllCodeYard();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodeYard>>(CommonConst.CACHE_KEY_COMMON_DB_YARD);
return list;
}
else
{
var list = await _codeYardRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_YARD, list, TimeSpan.FromMinutes(5));
list = await _codeYardRep.ToListAsync();
await _sysCacheService.SetAllCodeYard(list);
return list;
}
}
@ -270,14 +274,15 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodePortLoad>> GetAllPortload()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_PORTLOAD))
var list = await _sysCacheService.GetAllCodePortLoad();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodePortLoad>>(CommonConst.CACHE_KEY_COMMON_DB_PORTLOAD);
return list;
}
else
{
var list = await _codePortLoadrRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_PORTLOAD, list, TimeSpan.FromMinutes(5));
list = await _codePortLoadrRep.ToListAsync();
await _sysCacheService.SetAllCodePortLoad(list);
return list;
}
}
@ -285,14 +290,15 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodePort>> GetAllPort()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_PORT))
var list = await _sysCacheService.GetAllCodePort();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodePort>>(CommonConst.CACHE_KEY_COMMON_DB_PORT);
return list;
}
else
{
var list = await _codePortRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_PORT, list, TimeSpan.FromMinutes(5));
list = await _codePortRep.ToListAsync();
await _sysCacheService.SetAllCodePort(list);
return list;
}
}
@ -300,14 +306,15 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodePackage>> GetAllPackage()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_PACKAGE))
var list = await _sysCacheService.GetAllCodePackage();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodePackage>>(CommonConst.CACHE_KEY_COMMON_DB_PACKAGE);
return list;
}
else
{
var list = await _codePackageRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_PACKAGE, list, TimeSpan.FromMinutes(5));
list = await _codePackageRep.ToListAsync();
await _sysCacheService.SetAllCodePackage(list);
return list;
}
}
@ -315,14 +322,15 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodeService>> GetAllService()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_SERVICE))
var list = await _sysCacheService.GetAllCodeService();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodeService>>(CommonConst.CACHE_KEY_COMMON_DB_SERVICE);
return list;
}
else
{
var list = await _codeServiceRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_SERVICE, list, TimeSpan.FromMinutes(5));
list = await _codeServiceRep.ToListAsync();
await _sysCacheService.SetAllCodeService(list);
return list;
}
}
@ -330,14 +338,16 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodeCtn>> GetAllCtn()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_CTN))
var list = await _sysCacheService.GetAllCodeCtn();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodeCtn>>(CommonConst.CACHE_KEY_COMMON_DB_CTN);
return list;
}
else
{
var list = await _codeCtnRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_CTN, list, TimeSpan.FromMinutes(5));
list = await _codeCtnRep.ToListAsync();
await _sysCacheService.SetAllCodeCtn(list);
return list;
}
}
@ -345,17 +355,22 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
[NonAction]
public async Task<List<CodeFrt>> GetAllFrt()
{
if (_sysCacheService.Exists(CommonConst.CACHE_KEY_COMMON_DB_FRT))
var list = await _sysCacheService.GetAllCodeFrt();
if (list != null && list.Count > 0)
{
return await _sysCacheService.GetAsync<List<CodeFrt>>(CommonConst.CACHE_KEY_COMMON_DB_FRT);
return list;
}
else
{
var list = await _codeFrtRep.ToListAsync();
await _sysCacheService.SetTimeoutAsync(CommonConst.CACHE_KEY_COMMON_DB_FRT, list, TimeSpan.FromMinutes(5));
list = await _codeFrtRep.ToListAsync();
await _sysCacheService.SetAllCodeFrt(list);
return list;
}
}
#endregion
}

@ -60,4 +60,5 @@ public interface ICommonDBService
/// </summary>
/// <returns></returns>
Task<List<CodeCtn>> GetAllCtn();
}

Loading…
Cancel
Save