This commit is contained in:
gongxh
2021-10-14 09:15:14 +08:00
parent 8175d7dc0e
commit e68edc23df
2 changed files with 10 additions and 22 deletions

View File

@@ -31,10 +31,10 @@ namespace NX.ERP.U8.Mom
left join mom_SNDetail as e on b.MoDId=e.iVouchsID left join mom_SNDetail as e on b.MoDId=e.iVouchsID
left join mom_moallocate as c on b.MoDId=c.MoDId left join mom_moallocate as c on b.MoDId=c.MoDId
left join Inventory as InvDetail on b.InvCode =InvDetail.cInvCode left join Inventory as InvDetail on b.InvCode =InvDetail.cInvCode
left join Inventory as InvLocate on c.InvCode =InvLocate.cInvCode where b.Status<>'4' "; left join Inventory as InvLocate on c.InvCode =InvLocate.cInvCode ";
if (!string.IsNullOrEmpty(strWhere)) if (!string.IsNullOrEmpty(strWhere))
{ {
strSQL += $" and {strWhere} "; strSQL += $" where {strWhere} ";
} }
var lookupDetail = new Dictionary<int, Model.MOM.MomDetail>(); var lookupDetail = new Dictionary<int, Model.MOM.MomDetail>();
var lookupOrder = new Dictionary<int, Model.MOM.MomOrder>(); var lookupOrder = new Dictionary<int, Model.MOM.MomOrder>();
@@ -124,14 +124,19 @@ namespace NX.ERP.U8.Mom
where.Add("CONVERT(BIGINT,a.Ufts) > @Pubufts "); where.Add("CONVERT(BIGINT,a.Ufts) > @Pubufts ");
} }
else
{
where.Add(" b.Status<>'4' ");
}
if (Params.Status != null) if (Params.Status != null && Params.Status.Count() > 0)
{ {
where.Add(" b.Status in @Status "); where.Add(" b.Status in @Status ");
} }
return this.GetList(string.Join(" and ", where.ToArray()), new return this.GetList(string.Join(" and ", where.ToArray()), new
{ {
ProductCode = $"%{Params.ProductCode}%", ProductCode = $"%{Params.ProductCode}%",

View File

@@ -11,7 +11,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
/// </summary> /// </summary>
public class BinChangeController : ApiController public class BinChangeController : ApiController
{ {
/// <summary> /// <summary>
///添加货位调整单 ///添加货位调整单
@@ -24,24 +24,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
public string AddVoucher([FromBody] Model.Request.BinChange storeIn) public string AddVoucher([FromBody] Model.Request.BinChange storeIn)
{ {
var dal = new NX.ERP.U8.Store.BinChangeDAL(); var dal = new NX.ERP.U8.Store.BinChangeDAL();
return dal.AddVocher(new Model.Request.BinChange() return dal.AddVocher(storeIn);
{
whCode = "2",
binChangeDetails = new List<Model.Request.BinChangeDetail>()
{
new Model.Request.BinChangeDetail()
{
InvCode="511153",
SoucePositon="A1Y1H002",
DestPostion="A1Y1H003",
Qty=1
}
}
}); ;
} }