change material selection
This commit is contained in:
parent
f9d833e3b7
commit
3698e6e3c0
7 changed files with 49 additions and 28 deletions
|
|
@ -112,9 +112,13 @@ func (rs *recipeService) GetRecipeDetailMat(request *contracts.RecipeDetailReque
|
|||
if v.MaterialPathId == int(mat.ID) {
|
||||
mat_name := ""
|
||||
for _, m := range matsCode {
|
||||
if m.MaterialID == mat.ID {
|
||||
if m.MaterialID == mat.ID && mat.MaterialName == "" {
|
||||
mat_name = m.PackageDescription
|
||||
break
|
||||
} else if mat.MaterialName != "" {
|
||||
mat_name = mat.MaterialName
|
||||
fmt.Println("SetMat", mat_name)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue