齐套出库接口
This commit is contained in:
@@ -10,6 +10,7 @@ using Tnb.BasicData.Entities.Dto;
|
||||
using Tnb.BasicData.Entitys.Dto.BasProcess;
|
||||
using Tnb.BasicData.Interfaces;
|
||||
using Tnb.EquipMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
|
||||
namespace Tnb.BasicData
|
||||
{
|
||||
@@ -41,8 +42,10 @@ namespace Tnb.BasicData
|
||||
.LeftJoin<OrganizeEntity>((a, b) => a.source_id == b.Id)
|
||||
.LeftJoin<EqpEquipment>((a, b, c) => a.source_id == c.id)
|
||||
.LeftJoin<ToolLocation>((a, b, c, d) => a.source_id == d.id)
|
||||
.LeftJoin<BasLocation>((a,b,c,d,e)=>a.source_id==e.id)
|
||||
.LeftJoin<WmsCarryH>((a,b,c,d,e,f)=>a.source_id==f.id)
|
||||
.Where((a, b, c, d) => a.code == code)
|
||||
.Select((a, b, c, d) => new
|
||||
.Select((a, b, c, d,e,f) => new
|
||||
{
|
||||
id = a.id,
|
||||
source_id = a.source_id,
|
||||
@@ -52,6 +55,10 @@ namespace Tnb.BasicData
|
||||
equip_code = a.code,
|
||||
equip_name = c.name,
|
||||
tool_location_code = d.location_code,
|
||||
bas_location_name = e.location_name,
|
||||
bas_location_code = e.location_code,
|
||||
carry_name = f.carry_name,
|
||||
carry_code = f.carry_code,
|
||||
}).FirstAsync();
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user