|
@@ -321,6 +321,7 @@ namespace Hotline.Api.Controllers
|
|
|
{
|
|
|
var (total, items) = await _qualityTemplate.Queryable()
|
|
|
.Includes(x => x.templateDetails)
|
|
|
+ .Includes(x=>x.templateDetails,y=>y.QualityItem)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Name), d => d.Name.Contains(dto.Name!))
|
|
|
.WhereIF(dto.Grouping.HasValue, d => d.Grouping == dto.Grouping)
|
|
|
.WhereIF(dto.IsEnable.HasValue, d => d.IsEnable == dto.IsEnable)
|
|
@@ -339,6 +340,7 @@ namespace Hotline.Api.Controllers
|
|
|
{
|
|
|
return await _qualityTemplate.Queryable()
|
|
|
.Includes(x => x.templateDetails)
|
|
|
+ .Includes(x => x.templateDetails, y => y.QualityItem)
|
|
|
.FirstAsync(x => x.Id == id);
|
|
|
}
|
|
|
/// <summary>
|