1
This commit is contained in:
@@ -586,7 +586,23 @@ class Production extends Base
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$this->refuseReferIndex($data['p_article_id']);
|
||||
$list = $this->production_article_refer_obj->where('p_article_id', $data['p_article_id'])->where('state', 0)->order("index")->select();
|
||||
$list = $this->production_article_refer_obj
|
||||
->field("*,
|
||||
CASE
|
||||
WHEN refer_doi != ''
|
||||
AND refer_doi IS NOT NULL
|
||||
AND refer_doi IN (
|
||||
SELECT refer_doi
|
||||
FROM t_production_article_refer
|
||||
WHERE p_article_id = ".$data['p_article_id']."
|
||||
AND state = 0
|
||||
GROUP BY refer_doi
|
||||
HAVING COUNT(*) > 1
|
||||
) THEN 1
|
||||
ELSE 0
|
||||
END AS repeat
|
||||
")
|
||||
->where('p_article_id', $data['p_article_id'])->where('state', 0)->order("index")->select();
|
||||
$re['refers'] = $list;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user