修复评审数据下载错误
This commit is contained in:
parent
f076cb743a
commit
3151f35b4e
|
@ -714,9 +714,8 @@ class ServiceController extends Zend_Controller_Action
|
||||||
elseif ($id>0)
|
elseif ($id>0)
|
||||||
{
|
{
|
||||||
//下载单个附件
|
//下载单个附件
|
||||||
$sql=$this->db->quoteInto("select a.*,md.title from mdattach m left join metadata md on m.uuid=md.uuid left join attachments a on m.id=a.id where m.id=? order by a.ts_created desc",$id);
|
$sql=$this->db->quoteInto("select a.* from attachments a where a.id=? order by a.ts_created desc",$id);
|
||||||
$atts = $this->db->fetchRow($sql);
|
$atts = $this->db->fetchRow($sql);
|
||||||
$title=$atts['title'];
|
|
||||||
$updates = array(); //统计被下载的附件ID
|
$updates = array(); //统计被下载的附件ID
|
||||||
//更新统计
|
//更新统计
|
||||||
$sql = "update attachments set downtimes=downtimes+1 where id in ($id)";
|
$sql = "update attachments set downtimes=downtimes+1 where id in ($id)";
|
||||||
|
|
Loading…
Reference in New Issue