PDA齐套出库申请
This commit is contained in:
@@ -666,6 +666,28 @@ public class DepartmentService : IDepartmentService, IDynamicApiController, ITra
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据工位id获取产线信息
|
||||
/// </summary>
|
||||
/// <param name="dic"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<dynamic> GetWorklineByWorkstationId(Dictionary<string, string> dic)
|
||||
{
|
||||
string id = dic["id"];
|
||||
var db = _repository.AsSugarClient();
|
||||
OrganizeEntity organizeEntity = await db.Queryable<OrganizeEntity>().SingleAsync(x => x.Id == id);
|
||||
if (organizeEntity != null && !string.IsNullOrEmpty(organizeEntity.OrganizeIdTree))
|
||||
{
|
||||
string[] arr = organizeEntity.OrganizeIdTree.Split(",");
|
||||
return await db.Queryable<OrganizeEntity>().SingleAsync(x => arr.Contains(x.Id) && x.Category == DictConst.RegionCategoryWorklineCode);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region PublicMethod
|
||||
|
||||
Reference in New Issue
Block a user