新增Http请求帮助类,设备接口提供程序服务类
This commit is contained in:
15
WarehouseMgr/Tnb.WarehouseMgr/DeviceProviderService.cs
Normal file
15
WarehouseMgr/Tnb.WarehouseMgr/DeviceProviderService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
{
|
||||
/// <summary>
|
||||
/// Wms设备接口提供程序服务类
|
||||
/// </summary>
|
||||
public class DeviceProviderService : BaseWareHouseService
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -698,7 +698,7 @@ namespace Tnb.WarehouseMgr
|
||||
List<WmsPointH> results = new() { startObj };
|
||||
if (points?.Count > 0)
|
||||
{
|
||||
points.Where(it => result.Contains(it.id));
|
||||
//points.Where(it => result.Contains(it.id));
|
||||
foreach (var i in result)
|
||||
{
|
||||
WmsPointH? point = points?.Find(x => x.id == i);
|
||||
|
||||
@@ -77,19 +77,18 @@ namespace Tnb.WarehouseMgr
|
||||
List<WmsCarryCode> carryCodes = new();
|
||||
List<string> carryIds = new();
|
||||
|
||||
|
||||
|
||||
foreach (var os in setSortingDList)
|
||||
{
|
||||
var OutStockStrategyInput = new OutStockStrategyQuery {
|
||||
carry_id = carryMat.carry_id,
|
||||
material_id = os.material_id,
|
||||
warehouse_id = os.warehouse_id,
|
||||
code_batch = os.code_batch,
|
||||
var OutStockStrategyInput = new OutStockStrategyQuery
|
||||
{
|
||||
carry_id = carryMat.carry_id,
|
||||
material_id = os.material_id,
|
||||
warehouse_id = os.warehouse_id,
|
||||
code_batch = os.code_batch,
|
||||
};
|
||||
var outStkCarrys = await _wareHouseService.OutStockStrategy(OutStockStrategyInput);
|
||||
var carryCodesPart = await _db.Queryable<WmsCarryH>().InnerJoin<WmsCarryCode>((a, b) => a.id == b.carry_id).InnerJoin<BasLocation>((a, b, c) => a.location_id == c.id)
|
||||
.Where((a, b) => outStkCarrys.Select(x=>x.id).Contains(b.carry_id))
|
||||
.Where((a, b) => outStkCarrys.Select(x => x.id).Contains(b.carry_id))
|
||||
.Select<WmsCarryCode>()
|
||||
.ToListAsync();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user