Browse Source

修改库位导入

集成Redis
郑渤旭[Irelia] 2 years ago
parent
commit
fd920e21a3
  1. 32
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Locations/LocationAutoMapperProfile.cs
  2. 7
      be/Modules/Shared/src/Win_in.Sfs.Shared.Application/SfsCrudWithDetailsAppServiceBase.cs

32
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Locations/LocationAutoMapperProfile.cs

@ -17,22 +17,22 @@ public partial class BasedataApplicationAutoMapperProfile : Profile
.Ignore(x => x.TenantId) .Ignore(x => x.TenantId)
.Ignore(x => x.ExtraProperties) .Ignore(x => x.ExtraProperties)
.Ignore(x => x.ConcurrencyStamp) .Ignore(x => x.ConcurrencyStamp)
.Ignore(x => x.EnableMixItem) //.Ignore(x => x.EnableMixItem)
.Ignore(x => x.EnableMixLot) //.Ignore(x => x.EnableMixLot)
.Ignore(x => x.EnableMixStatus) //.Ignore(x => x.EnableMixStatus)
.Ignore(x => x.EnableNegative) //.Ignore(x => x.EnableNegative)
.Ignore(x => x.EnableKeepZero) //.Ignore(x => x.EnableKeepZero)
.Ignore(x => x.EnableOpportunityCount) //.Ignore(x => x.EnableOpportunityCount)
.Ignore(x => x.EnablePick) //.Ignore(x => x.EnablePick)
.Ignore(x => x.EnableOverPick) //.Ignore(x => x.EnableOverPick)
.Ignore(x => x.EnableWholeStore) //.Ignore(x => x.EnableWholeStore)
.Ignore(x => x.EnableBreakStore) //.Ignore(x => x.EnableBreakStore)
.Ignore(x => x.EnableShip) //.Ignore(x => x.EnableShip)
.Ignore(x => x.EnableReceive) //.Ignore(x => x.EnableReceive)
.Ignore(x => x.EnableReturnToSupplier) //.Ignore(x => x.EnableReturnToSupplier)
.Ignore(x => x.EnableReturnFromCustomer) //.Ignore(x => x.EnableReturnFromCustomer)
.Ignore(x => x.EnableSplitPallet) //.Ignore(x => x.EnableSplitPallet)
.Ignore(x => x.EnableSplitBox) //.Ignore(x => x.EnableSplitBox)
; ;

7
be/Modules/Shared/src/Win_in.Sfs.Shared.Application/SfsCrudWithDetailsAppServiceBase.cs

@ -772,8 +772,11 @@ public abstract class SfsCrudWithDetailsAppServiceBase<TEntity, TEntityDto, TReq
{ {
if (entity != null) if (entity != null)
{ {
var first = entity.GetProps().First(p => p.Name == "Worker"); if (entity.GetProps().Any(p => p.Name == "Worker"))
first.SetValue(first, CurrentUser.GetUserName()); {
var first = entity.GetProps().First(p => p.Name == "Worker");
first.SetValue(first, CurrentUser.GetUserName());
}
} }
var hasEntity = entity != null; var hasEntity = entity != null;

Loading…
Cancel
Save