|
|
@@ -2126,6 +2126,14 @@ namespace Business.Replenishment
|
|
|
var molist=_mysql_mes_morder.GetListAsync(a => itemNumbers.Contains(a.product_code) && a.factory_id == input.factory_id && !a.IsDeleted).Result;
|
|
|
var proccupylist=_mysql_srm_pr_main_occupy.GetListAsync(a=> molist.Select(p=>p.morder_no).ToList().Contains(a.morder_mo) && a.factory_id == input.factory_id && !a.IsDeleted).Result;
|
|
|
|
|
|
+ //TODO:完善占用逻辑
|
|
|
+ //srm_pr_main pr = new srm_pr_main();
|
|
|
+ //pr.state = 1;
|
|
|
+ //srm_po_main po = new srm_po_main();
|
|
|
+ ////po.state.GetValueOrDefault() != 3;
|
|
|
+ //srm_po_occupy srm_Po_Occupy = new srm_po_occupy();
|
|
|
+ ////srm_Po_Occupy.polist_id = pr.Id;po.id;
|
|
|
+
|
|
|
itemNumbers.ForEach(a =>
|
|
|
{
|
|
|
EOPDto eOPDto=new EOPDto();
|