作者 曹东东
... ... @@ -28,6 +28,10 @@ class Duplicate extends DoubleBase
if ($this->request->isAjax()) {
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
$matchInfo = Db::name('project_container')->where(['id' => $this->containerId])->find();
$rate = $matchInfo['checkagain'] == 1 ? $matchInfo['checkagain_scale'] : 100;
// 默认查询项目容器下未淘汰(|未退回)的项目
$field = [
'a.*',
... ... @@ -47,7 +51,7 @@ class Duplicate extends DoubleBase
->join('college c', 'u.college = c.id', 'left')
->join('specialty d', 'u.specialty = d.id', 'left')
->where(['a.container_id' => $this->containerId,'review_stage' => 0])
->where('a.repeat_rate','neq',0)
->where('a.repeat_rate','neq',$rate)
->count();
$list = $this->model
->field($field)
... ... @@ -58,7 +62,7 @@ class Duplicate extends DoubleBase
->join('fa_members m','a.id = m.item_id and member_type = 1 and member_source = 2','left')
->join('specialty d', 'u.specialty = d.id', 'left')
->where(['a.container_id' => $this->containerId,'review_stage' => 0])
->where('a.repeat_rate','neq',0)
->where('a.repeat_rate','neq',$rate)
->group('a.id')
->limit($offset, $limit)
->select();
... ...