diff --git a/application/models/order/Order.php b/application/models/order/Order.php index 003cbcf2..e576aecc 100644 --- a/application/models/order/Order.php +++ b/application/models/order/Order.php @@ -205,7 +205,7 @@ class Order where mr.reftype=3 and mr.uuid=d.uuid order by mr.place),'\n'::text) as reference, array_to_string(array( select fund.fund_type||':'||fund.title||'(编号:'||fund.fund_id||')' - from fund left join mdfund on fund.id=mdfund.fid where mdfund.uuid=d.uuid),'\n'::text) as fund, + from fund left join mdfund on fund.id=mdfund.fid where mdfund.uuid=d.uuid order by mdfund.place),'\n'::text) as fund, doi.doi as datadoi,doi.authors,doi.publisher,doi.title as doititle,doi.author_en,doi.publisher_en,doi.title_en from dataorder d left join metadata m on d.uuid=m.uuid left join datadoi doi on doi.uuid=d.uuid where d.status=2 and d.userid=? order by d.ts_created desc