作者 yangfu

fix: 物料管理修改

... ... @@ -455,7 +455,7 @@ func FastProductMaterial(transactionContext application.TransactionContext, id i
rep = value
}
if id > 0 {
if mod, err = rep.FindOne(map[string]interface{}{"productMaterialGroupId": id}); err != nil {
if mod, err = rep.FindOne(map[string]interface{}{"productMaterialId": id}); err != nil {
if err == domain.ErrorNotFound {
return nil, nil, application.ThrowError(application.RES_NO_FIND_ERROR, "该物料分组不存在")
}
... ...