去掉设备没绑定工位限制
This commit is contained in:
@@ -765,10 +765,11 @@ namespace Tnb.ProductionMgr
|
|||||||
{
|
{
|
||||||
OrganizeRelationEntity organizeRelationEntity = await db.Queryable<OrganizeRelationEntity>()
|
OrganizeRelationEntity organizeRelationEntity = await db.Queryable<OrganizeRelationEntity>()
|
||||||
.Where(x => x.ObjectId == input.eqp_id && x.ObjectType == "Eqp").FirstAsync();
|
.Where(x => x.ObjectId == input.eqp_id && x.ObjectType == "Eqp").FirstAsync();
|
||||||
if (organizeRelationEntity == null || organizeRelationEntity.OrganizeId == "")
|
//2024-11-14 日张宇说去掉设备没绑定工位限制条件
|
||||||
{
|
//if (organizeRelationEntity == null || organizeRelationEntity.OrganizeId == "")
|
||||||
throw Oops.Bah("该设备没绑定工位");
|
//{
|
||||||
}
|
// throw Oops.Bah("该设备没绑定工位");
|
||||||
|
//}
|
||||||
moTask.workstation_id = organizeRelationEntity?.OrganizeId ?? "";
|
moTask.workstation_id = organizeRelationEntity?.OrganizeId ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user