调整出库单结构

This commit is contained in:
18942506660
2023-11-15 17:04:30 +08:00
parent 2dd79daff4
commit 35e4b8dcda
2 changed files with 7 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ namespace WMS.Web.Domain.Entitys
/// 同步成功或者失败 null 就是未同步
/// </summary>
[Column("SuccessSync")]
public bool? SuccessSync { get; set; }
public Dictionary<string, bool?> SuccessSync_Dic { get; set; } = new Dictionary<string, bool?>();
/// <summary>
/// 同步时间
/// </summary>
@@ -96,9 +96,12 @@ namespace WMS.Web.Domain.Entitys
/// 同步金蝶
/// </summary>
/// <param name="operateId"></param>
public void Sync(bool isSuccess, int operateId,string remark)
public void Sync(string sourcBilNo,bool isSuccess, int operateId,string remark)
{
this.SuccessSync = isSuccess;
if (SuccessSync_Dic.ContainsKey(sourcBilNo))
SuccessSync_Dic[sourcBilNo] = isSuccess;
else
SuccessSync_Dic.Add(sourcBilNo, isSuccess);
this.Remark = remark;
this.OperateId = operateId;
this.SyncTime = DateTime.Now;

View File

@@ -114,7 +114,7 @@ namespace WMS.Web.Domain.Services
{
//下推金蝶
var res = await _erpService.Push(new Core.Dto.Erp.ErpPushDto() { });
entity.Sync(res.IsSuccess, loginInfo.UserInfo.StaffId, res.Message);
entity.Sync("",res.IsSuccess, loginInfo.UserInfo.StaffId, res.Message);
}
var isSuccess = await _outStockRepositories.EditEntityList(list, true);
if (!isSuccess) return Result.ReFailure(ResultCodes.DateWriteError);