配方下达状态

This commit is contained in:
quowingwang 2025-12-07 15:09:25 +08:00
parent c882354674
commit ff90a4aba2
2 changed files with 7 additions and 1 deletions

View File

@ -42,6 +42,9 @@ namespace DOAN.Model.MES.recipe.Dto
public string ProductName { get; set; }
//配方下达状态
public int IssueStatus { get; set; }
public List<PfRecipeParametersDto> RecipeParametersList { get; set; }
}
}

View File

@ -35,7 +35,10 @@ namespace DOAN.Service.MES.recipe
Version = t.Version,
Status = t.Status,
ProductCode = p.Productcode,
ProductName = p.ProductName
ProductName = p.ProductName,
IssueStatus = SqlFunc.Subqueryable<PfRecipeIssueLog>()
.Where(h => h.RecipeCode == t.RecipeCode && h.Version == t.Version)
.Any() ? 1 : 0
});
var response = query.ToPage<PfRecipeVersionDto>(parm);
return response;