From 57a6e4d65448ceadfc6f80b72bcbd91376a55e02 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Tue, 8 Nov 2011 06:40:18 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86review=E4=B8=AD=E7=9A=84sql?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/ReviewController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/ReviewController.php b/application/default/controllers/ReviewController.php index cd76dbe7..7e2fdedf 100644 --- a/application/default/controllers/ReviewController.php +++ b/application/default/controllers/ReviewController.php @@ -153,7 +153,7 @@ class ReviewController extends Zend_Controller_Action $sql = "select r.id,r.uuid,r.userid,r.ts_created,u.realname,r.mdcomment,r.conclusion,ratt.reviewid from mdreview r left join users u on u.id=r.userid - right join mdreviewattach ratt on r.id=ratt.reviewid + left join mdreviewattach ratt on r.id=ratt.reviewid where r.uuid='$uuid' and r.status>-1 group by r.id,r.uuid,r.userid,r.ts_created,u.realname,r.mdcomment,r.conclusion,ratt.reviewid ";