You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
3.8 KiB
C#
74 lines
3.8 KiB
C#
using DS.WMS.Core.WmsModule.Entity;
|
|
using Mapster;
|
|
|
|
namespace DS.WMS.Core.WmsModule;
|
|
/// <summary>
|
|
/// 初始化映射
|
|
/// </summary>
|
|
public class InitMapsterAdaptConifg
|
|
{
|
|
public TypeAdapterConfig InitMapperConfig()
|
|
{
|
|
TypeAdapterConfig config = new TypeAdapterConfig();
|
|
|
|
config.ForType<OP_WMS_IN_PLAN_GOODS, OP_WMS_BASE>()
|
|
.Map(s => s.GOODSMODEL, d => d.GOODSMODEL)
|
|
.Map(s => s.GOODSMODEL2, d => d.GOODSMODEL2)
|
|
.Map(s => s.GOODSMODEL3, d => d.GOODSMODEL3)
|
|
.Map(s => s.GOODSMODEL4, d => d.GOODSMODEL4)
|
|
.Map(s => s.PALLET, d => d.PALLET)
|
|
.Map(s => s.DIZHANGID, d => d.DIZHANGID)
|
|
.Map(s => s.GOODSMODEL5, d => d.GOODSMODEL5)
|
|
.Map(s => s.GOODSMODEL6, d => d.GOODSMODEL6)
|
|
.Map(s => s.GOODSMODEL7, d => d.GOODSMODEL7)
|
|
.Map(s => s.GOODSMODEL8, d => d.GOODSMODEL8)
|
|
.Map(s => s.GOODSMODEL9, d => d.GOODSMODEL9)
|
|
.Map(s => s.GOODSMODEL10, d => d.GOODSMODEL10)
|
|
.Map(s => s.GOODSMODEL11, d => d.GOODSMODEL11)
|
|
.Map(s => s.GOODSMODEL12, d => d.GOODSMODEL12)
|
|
.Map(s => s.GOODSMODEL13, d => d.GOODSMODEL13)
|
|
.Map(s => s.GOODSMODEL14, d => d.GOODSMODEL14)
|
|
.Map(s => s.GOODSMODEL15, d => d.GOODSMODEL15)
|
|
.Map(s => s.GOODSMODEL16, d => d.GOODSMODEL16)
|
|
.Map(s => s.GOODSMODEL17, d => d.GOODSMODEL17)
|
|
.Map(s => s.GOODSMODEL18, d => d.GOODSMODEL18)
|
|
.Map(s => s.GOODSMODEL19, d => d.GOODSMODEL19)
|
|
.Map(s => s.GOODSMODEL20, d => d.GOODSMODEL20)
|
|
|
|
.Map(s => s.GOODSMODEL_BOOL_1, d => d.GOODSMODEL_BOOL_1)
|
|
.Map(s => s.GOODSMODEL_BOOL_2, d => d.GOODSMODEL_BOOL_2)
|
|
.Map(s => s.GOODSMODEL_BOOL_3, d => d.GOODSMODEL_BOOL_3)
|
|
.Map(s => s.GOODSMODEL_BOOL_4, d => d.GOODSMODEL_BOOL_4)
|
|
.Map(s => s.GOODSMODEL_BOOL_5, d => d.GOODSMODEL_BOOL_5)
|
|
.Map(s => s.GOODSMODEL_BOOL_6, d => d.GOODSMODEL_BOOL_6)
|
|
.Map(s => s.GOODSMODEL_BOOL_7, d => d.GOODSMODEL_BOOL_7)
|
|
.Map(s => s.GOODSMODEL_BOOL_8, d => d.GOODSMODEL_BOOL_8)
|
|
.Map(s => s.GOODSMODEL_BOOL_9, d => d.GOODSMODEL_BOOL_9)
|
|
.Map(s => s.GOODSMODEL_BOOL_10, d => d.GOODSMODEL_BOOL_10)
|
|
|
|
.Map(s => s.GOODSMODEL_NUMERIC_1, d => d.GOODSMODEL_NUMERIC_1)
|
|
.Map(s => s.GOODSMODEL_NUMERIC_2, d => d.GOODSMODEL_NUMERIC_2)
|
|
.Map(s => s.GOODSMODEL_NUMERIC_3, d => d.GOODSMODEL_NUMERIC_3)
|
|
.Map(s => s.GOODSMODEL_NUMERIC_4, d => d.GOODSMODEL_NUMERIC_4)
|
|
.Map(s => s.GOODSMODEL_NUMERIC_5, d => d.GOODSMODEL_NUMERIC_5)
|
|
.Map(s => s.GOODSMODEL_NUMERIC_6, d => d.GOODSMODEL_NUMERIC_6)
|
|
.Map(s => s.GOODSMODEL_NUMERIC_7, d => d.GOODSMODEL_NUMERIC_7)
|
|
.Map(s => s.GOODSMODEL_NUMERIC_8, d => d.GOODSMODEL_NUMERIC_8)
|
|
.Map(s => s.GOODSMODEL_NUMERIC_9, d => d.GOODSMODEL_NUMERIC_9)
|
|
.Map(s => s.GOODSMODEL_NUMERIC_10, d => d.GOODSMODEL_NUMERIC_10)
|
|
|
|
.Map(s => s.GOODSMODEL_DATE_1, d => d.GOODSMODEL_DATE_1)
|
|
.Map(s => s.GOODSMODEL_DATE_2, d => d.GOODSMODEL_DATE_2)
|
|
.Map(s => s.GOODSMODEL_DATE_3, d => d.GOODSMODEL_DATE_3)
|
|
.Map(s => s.GOODSMODEL_DATE_4, d => d.GOODSMODEL_DATE_4)
|
|
.Map(s => s.GOODSMODEL_DATE_5, d => d.GOODSMODEL_DATE_5)
|
|
.Map(s => s.GOODSMODEL_DATE_6, d => d.GOODSMODEL_DATE_6)
|
|
.Map(s => s.GOODSMODEL_DATE_7, d => d.GOODSMODEL_DATE_7)
|
|
.Map(s => s.GOODSMODEL_DATE_8, d => d.GOODSMODEL_DATE_8)
|
|
.Map(s => s.GOODSMODEL_DATE_9, d => d.GOODSMODEL_DATE_9)
|
|
.Map(s => s.GOODSMODEL_DATE_10, d => d.GOODSMODEL_DATE_10)
|
|
.IgnoreNullValues(true);
|
|
|
|
return config;
|
|
}
|
|
} |