完善单位物料功能
parent
c6906b43a6
commit
1b2055addb
|
@ -153,7 +153,18 @@ public class MaterialsService : IDynamicApiController, ITransient
|
||||||
return await _repPackage.List(materialsId);
|
return await _repPackage.List(materialsId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取物料
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="classifyId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpGet]
|
||||||
|
[ApiDescriptionSettings(Name = "CheckById")]
|
||||||
|
public async Task<bool> CheckById(long? classifyId)
|
||||||
|
{
|
||||||
|
var model = await _rep.GetFirstAsync(u => u.Classify == classifyId);
|
||||||
|
return model!=null?true:false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue