优化接口
This commit is contained in:
@@ -95,7 +95,7 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// <param name="type"></param>
|
||||
/// <param name="sourceBillNo"></param>
|
||||
/// <param name="createTime"></param>
|
||||
public void Create(InstockType type,string sourceBillNo, DateTime createTime,int supplierId)
|
||||
public void Create(InstockType type,string sourceBillNo, DateTime createTime,int supplierId,string orgCode)
|
||||
{
|
||||
if (type == InstockType.Purchase)
|
||||
this.Status = InstockStatus.Wait;
|
||||
@@ -104,6 +104,7 @@ namespace WMS.Web.Domain.Entitys
|
||||
this.Type = type;
|
||||
this.SourceBillNo = sourceBillNo;
|
||||
this.SupplierId = supplierId;
|
||||
this.OrgCode = orgCode;
|
||||
this.CreateTime = createTime;
|
||||
}
|
||||
|
||||
|
||||
@@ -457,7 +457,7 @@ namespace WMS.Web.Domain.Services
|
||||
{
|
||||
var current_order = erp_list.Where(x => x.BillNo == item).FirstOrDefault();
|
||||
var dto = new InStockTask();
|
||||
dto.Create((InstockType)current_order.Type, current_order.BillNo, current_order.CreateTime, current_order.SupplierId);
|
||||
dto.Create((InstockType)current_order.Type, current_order.BillNo, current_order.CreateTime, current_order.SupplierId, current_order.OrgCode);
|
||||
|
||||
//找到当前对应来源单据编号的集合数据
|
||||
var current_erp_details = erp_list.Where(x => x.BillNo == item).ToList();
|
||||
@@ -609,7 +609,7 @@ namespace WMS.Web.Domain.Services
|
||||
{
|
||||
var current_order = erp_list.Where(x => x.BillNo == item).FirstOrDefault();
|
||||
var dto = new InStockTask();
|
||||
dto.Create((InstockType)current_order.Type, current_order.BillNo, current_order.CreateTime, current_order.SupplierId);
|
||||
dto.Create((InstockType)current_order.Type, current_order.BillNo, current_order.CreateTime, current_order.SupplierId, current_order.OrgCode);
|
||||
|
||||
//找到当前对应来源单据编号的集合数据
|
||||
var current_erp_details = erp_list.Where(x => x.BillNo == item).ToList();
|
||||
|
||||
Reference in New Issue
Block a user