作者 yangfu

fix: 物料管理修改

@@ -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 }