From a2e71189db987a0c32754250c5d3e91f1df134c1 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 18 Sep 2019 14:36:21 +0800 Subject: [PATCH] - up --- business/model/dao/food_recipe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/food_recipe.go b/business/model/dao/food_recipe.go index c436eecee..8f6b27e65 100644 --- a/business/model/dao/food_recipe.go +++ b/business/model/dao/food_recipe.go @@ -34,7 +34,7 @@ func QueryFoodRecipes(db *DaoDB, keyword string, recipeID int, authorID, userID t1.*, t2.action_type, t3.name author_name FROM food_recipe t1 LEFT JOIN food_recipe_user t2 ON t2.recipe_id = t1.id AND t2.user_id = ? AND t2.deleted_at = ? - LEFT user t3 ON t3.user_id = t1.author_id + LEFT JOIN user t3 ON t3.user_id = t1.author_id WHERE t1.deleted_at = ?` sqlParams = []interface{}{ userID,