add string param support
This commit is contained in:
parent
98341d2d80
commit
636a700a79
8 changed files with 294 additions and 35 deletions
|
|
@ -117,12 +117,13 @@ func (rs *recipeService) GetRecipeDetailMat(request *contracts.RecipeDetailReque
|
|||
break
|
||||
} else if mat.MaterialName != "" {
|
||||
mat_name = mat.MaterialName
|
||||
fmt.Println("SetMat", mat_name)
|
||||
// fmt.Println("SetMat", mat_name)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
result.Result = append(result.Result, contracts.RecipeDetailMat{
|
||||
StringParam: v.StringParam,
|
||||
IsUse: v.IsUse,
|
||||
MaterialID: mat.ID,
|
||||
Name: mat_name,
|
||||
|
|
@ -147,6 +148,7 @@ func (rs *recipeService) GetRecipeDetailMat(request *contracts.RecipeDetailReque
|
|||
if len(result.Result) < 30 {
|
||||
for i := len(result.Result); i < 30; i++ {
|
||||
result.Result = append(result.Result, contracts.RecipeDetailMat{
|
||||
StringParam: "",
|
||||
IsUse: false,
|
||||
MaterialID: 0,
|
||||
Name: "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue