修复pdf生成的错误

This commit is contained in:
wlx 2014-06-23 02:50:32 +00:00
parent 21818c245d
commit fb66e6c15b
1 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class Order
public function pdfPrint($formData,$userid = 0,$save = false,$returnpdf = false) public function pdfPrint($formData,$userid = 0,$save = false,$returnpdf = false)
{ {
$sql="SELECT m.title||'('||m.filesize::text||'MB)' as title FROM dataorder d $sql="SELECT m.title||'('||m.filesize::text||'MB)' as title FROM dataorder d
RIGHT JOIN heihemetadata m ON d.uuid=m.uuid RIGHT JOIN normalmetadata m ON d.uuid=m.uuid
WHERE d.status=2 AND d.userid=?"; WHERE d.status=2 AND d.userid=?";
$list = $this->db->fetchAll($sql,array($userid)); $list = $this->db->fetchAll($sql,array($userid));
@ -322,7 +322,7 @@ class Order
} }
$sql="SELECT m.title||'('||m.filesize::text||'MB)' as title FROM dataorder d $sql="SELECT m.title||'('||m.filesize::text||'MB)' as title FROM dataorder d
RIGHT JOIN normalmetadata m ON d.uuid=m.uuid WHERE d.uuid not in (select uuid from heihemetadata) AND d.status=2 AND d.userid=?"; RIGHT JOIN normalmetadata m ON d.uuid=m.uuid WHERE d.uuid not in (select uuid from normalmetadata) AND d.status=2 AND d.userid=?";
$list = $this->db->fetchAll($sql,array($userid)); $list = $this->db->fetchAll($sql,array($userid));
foreach($list as $i=>$row){ foreach($list as $i=>$row){