完善单位物料功能

main
ljh 2024-07-03 15:14:40 +08:00
parent c6906b43a6
commit 1b2055addb
1 changed files with 12 additions and 1 deletions

View File

@ -153,7 +153,18 @@ public class MaterialsService : IDynamicApiController, ITransient
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;
}
}