bug
This commit is contained in:
@@ -231,6 +231,10 @@ namespace Tnb.WarehouseMgr.Entities.Consts
|
||||
/// </summary>
|
||||
public const string TASK_BILL_STATUS_RUNING_ID = "26126856028453";
|
||||
/// <summary>
|
||||
/// 任务单据状态-已暂停Id
|
||||
/// </summary>
|
||||
public const string TASK_BILL_STATUS_PAUSE_ID = "26126866160677";
|
||||
/// <summary>
|
||||
/// 任务单据状态-已完成ID
|
||||
/// </summary>
|
||||
public const string TASK_BILL_STATUS_COMPLE_ID = "26126860808229";
|
||||
|
||||
@@ -103,5 +103,8 @@ public partial class WmsRawmatOutstockH : BaseEntity<string>
|
||||
/// </summary>
|
||||
public string? erp_project_id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// erp领料员 存的天益用户表的id 需关联erp_extend_field 取
|
||||
/// </summary>
|
||||
public string? erp_cbizid { get; set; }
|
||||
}
|
||||
|
||||
@@ -123,6 +123,7 @@ namespace Tnb.WarehouseMgr
|
||||
|
||||
string userId = wmsRawmatOutstockH.create_id ?? WmsWareHouseConst.AdministratorUserId;
|
||||
tableIds.Add(userId);
|
||||
tableIds.Add(wmsRawmatOutstockH.erp_cbizid);
|
||||
List<ErpExtendField> erpExtendFields = await _db.Queryable<ErpExtendField>().Where(x => tableIds.Contains(x.table_id)).ToListAsync();
|
||||
// string erpCreateId = erpExtendFields.Find(x => x.table_id == userId)?.user_id ?? WmsWareHouseConst.ERPUSERID;
|
||||
string erpCreateId = WmsWareHouseConst.ERPUSERID;
|
||||
@@ -133,6 +134,8 @@ namespace Tnb.WarehouseMgr
|
||||
List<Dictionary<string, object>> requestData = new List<Dictionary<string, object>>();
|
||||
Dictionary<string, object> erpRequestData = new Dictionary<string, object>();
|
||||
erpRequestData.Add("billmaker", erpCreateId);
|
||||
erpRequestData.Add("cbizid", wmsRawmatOutstockH.erp_cbizid!=null ? erpExtendFields.Find(x => x.table_id == wmsRawmatOutstockH.erp_cbizid)?.person_id : null);
|
||||
erpRequestData.Add("cwhsmanagerid", erpExtendFields.Find(x => x.table_id == userId)?.person_id);
|
||||
erpRequestData.Add("ccostdomainoid", wmsRawmatOutstockH.erp_org_costregion ?? "1001A1100000001MNB3H");
|
||||
erpRequestData.Add("cdrawcalbodyoid", erpOrg.pk_org);
|
||||
erpRequestData.Add("cdrawcalbodyvid", erpOrg.pk_org_v);
|
||||
|
||||
Reference in New Issue
Block a user