This commit is contained in:
2024-07-04 10:52:48 +08:00
parent b380864d40
commit 02edc26ffe
2 changed files with 8 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ namespace Tnb.WarehouseMgr
return data;
}
/// <summary>
/// 载具查询返回接口
/// 载具查询返回接口(没子载具不能使用此接口)
/// </summary>
/// <param name="input"></param>
/// <returns></returns>

View File

@@ -1199,11 +1199,11 @@ namespace Tnb.WarehouseMgr
};
insertHList.Add(prdMaterialReceiptH);
CarryQueryOutput carryQueryOutput = await _wmsCarryQueryService.MESCarryQueryResult(new MESCarryQueryResultInput(){carry_code = carry.carry_code});
if (carryQueryOutput.wmsCarryCodes != null && carryQueryOutput.wmsCarryCodes.Count > 0)
List<WmsCarryCode> wmsCarryCodes = await _db.Queryable<WmsCarryCode>().Where(x=>x.carry_id==carry.id).ToListAsync();
if (wmsCarryCodes != null && wmsCarryCodes.Count > 0)
{
JNPF.Logging.Log.Information($"签收载具信息{JsonConvert.SerializeObject(carryQueryOutput)}");
foreach (var item in carryQueryOutput.wmsCarryCodes)
JNPF.Logging.Log.Information($"签收载具信息{JsonConvert.SerializeObject(wmsCarryCodes)}");
foreach (var item in wmsCarryCodes)
{
insertDList.Add(new PrdMaterialReceiptD
@@ -1216,12 +1216,12 @@ namespace Tnb.WarehouseMgr
carry_id = carry.id,
barcode = item.barcode,
is_all_feeding = 0,
member_carry_id = item.member_carryid,
member_carry_code = item.member_carrycode,
// member_carry_id = item.member_carryid,
// member_carry_code = item.member_carrycode,
feeding_num = 0,
supplier_id = item.supplier_id,
instock_time = item.instock_time,
check_conclusion = item.check_conclusion,
// check_conclusion = item.check_conclusion,
});
}
}