Browse Source

up

master
mahao 12 months ago
parent
commit
12fce6aaef
  1. 15
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/SeSyncExtendManager.cs

15
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/SeSyncExtendManager.cs

@ -126,7 +126,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
RealPartCode = t.RealPartCode,
Seq = t.Seq,
UniqueCode = isJisTable ? t.UniqueCode : t.DeliverCode,
VinCode = t.VinCode,
VinCode = t.PN,
Version = GetVersionByBillTimeAsync(t.BillTime.Value, value),//加区间字段
factory = t.BusinessType.ToString()
}).ToList();
@ -167,8 +167,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
ReMark = t.Remark,
RealPartCode = t.PartCode,
VinCode = t.PN,
Version=GetVersionByBillTimeAsync(t.BillTime.Value,value),//加区间字段
factory=t.BusinessType.ToString()
Version = GetVersionByBillTimeAsync(t.BillTime.Value, value),//加区间字段
factory = t.BusinessType.ToString()
}).ToList();
var returnVmiLogList = returnSeDetails.Select(t => new VmiLog
@ -189,6 +189,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
Qty = -t.Qty,
ReMark = t.Remark,
RealPartCode = t.PartCode,
VinCode = t.PN,
Version = GetVersionByBillTimeAsync(t.BillTime.Value, value),//加区间字段
factory = t.BusinessType.ToString()
@ -219,13 +220,13 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
}
public int GetVersionByBillTimeAsync(DateTime p_billtime,string p_day)
public int GetVersionByBillTimeAsync(DateTime p_billtime, string p_day)
{
var before = p_billtime.Year;
var last = before - 1;
DateTime lastYear = DateTime.ParseExact(string.Format("{0}-12-{1} 08:00:00", last,p_day), "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);//上期时间
DateTime beforeYear = DateTime.ParseExact(string.Format("{0}-12-{1} 07:59:59", before,p_day), "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);//这期时间
DateTime lastYear = DateTime.ParseExact(string.Format("{0}-12-{1} 08:00:00", last, p_day), "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);//上期时间
DateTime beforeYear = DateTime.ParseExact(string.Format("{0}-12-{1} 07:59:59", before, p_day), "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);//这期时间
//var result = seDetails
// .Select(log =>
@ -262,7 +263,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
if (string.IsNullOrEmpty(version))
{
return 200802 ;//找不到的数据默认写到这个区间
return 200802;//找不到的数据默认写到这个区间
}
return int.Parse(version);

Loading…
Cancel
Save