调整出库单结构
This commit is contained in:
@@ -64,7 +64,7 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
/// 同步成功或者失败 null 就是未同步
|
/// 同步成功或者失败 null 就是未同步
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("SuccessSync")]
|
[Column("SuccessSync")]
|
||||||
public bool? SuccessSync { get; set; }
|
public Dictionary<string, bool?> SuccessSync_Dic { get; set; } = new Dictionary<string, bool?>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 同步时间
|
/// 同步时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -96,9 +96,12 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
/// 同步金蝶
|
/// 同步金蝶
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="operateId"></param>
|
/// <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.Remark = remark;
|
||||||
this.OperateId = operateId;
|
this.OperateId = operateId;
|
||||||
this.SyncTime = DateTime.Now;
|
this.SyncTime = DateTime.Now;
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
{
|
{
|
||||||
//下推金蝶
|
//下推金蝶
|
||||||
var res = await _erpService.Push(new Core.Dto.Erp.ErpPushDto() { });
|
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);
|
var isSuccess = await _outStockRepositories.EditEntityList(list, true);
|
||||||
if (!isSuccess) return Result.ReFailure(ResultCodes.DateWriteError);
|
if (!isSuccess) return Result.ReFailure(ResultCodes.DateWriteError);
|
||||||
|
|||||||
Reference in New Issue
Block a user