正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -455,7 +455,7 @@ func FastProductMaterial(transactionContext application.TransactionContext, id i | @@ -455,7 +455,7 @@ func FastProductMaterial(transactionContext application.TransactionContext, id i | ||
| 455 | rep = value | 455 | rep = value |
| 456 | } | 456 | } |
| 457 | if id > 0 { | 457 | if id > 0 { |
| 458 | - if mod, err = rep.FindOne(map[string]interface{}{"productMaterialGroupId": id}); err != nil { | 458 | + if mod, err = rep.FindOne(map[string]interface{}{"productMaterialId": id}); err != nil { |
| 459 | if err == domain.ErrorNotFound { | 459 | if err == domain.ErrorNotFound { |
| 460 | return nil, nil, application.ThrowError(application.RES_NO_FIND_ERROR, "该物料分组不存在") | 460 | return nil, nil, application.ThrowError(application.RES_NO_FIND_ERROR, "该物料分组不存在") |
| 461 | } | 461 | } |
-
请 注册 或 登录 后发表评论