Merge branch '18.4' of https://git.zcorp.cc/easycorp/zentaopms into zentaoipd
This commit is contained in:
@@ -41,7 +41,7 @@ class userModel extends model
|
||||
public function getList($params = 'nodeleted')
|
||||
{
|
||||
return $this->dao->select('*')->from(TABLE_USER)
|
||||
->where(true)
|
||||
->where('1=1')
|
||||
->beginIF(strpos($params, 'all') === false)->andWhere('type')->eq('inside')->fi()
|
||||
->beginIF(strpos($params, 'nodeleted') !== false)->andWhere('deleted')->eq(0)->fi()
|
||||
->orderBy('account')
|
||||
@@ -2896,8 +2896,7 @@ class userModel extends model
|
||||
$personalData['createdIssues'] = $this->dao->select($t1Count)->from(TABLE_ISSUE)->alias('t1')->leftjoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id')->where('t1.createdBy')->eq($account)->andWhere('t1.deleted')->eq('0')->andWhere('t2.deleted')->eq('0')->fetch('count');
|
||||
$personalData['resolvedIssues'] = $this->dao->select($t1Count)->from(TABLE_ISSUE)->alias('t1')->leftjoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id')->where('t1.resolvedBy')->eq($account)->andWhere('t1.deleted')->eq('0')->andWhere('t2.deleted')->eq('0')->fetch('count');
|
||||
}
|
||||
$allLibs = $this->loadModel('doc')->getLibs('all');
|
||||
$personalData['createdDocs'] = $this->dao->select($count)->from(TABLE_DOC)->where('addedBy')->eq($account)->andWhere('lib')->in(array_keys($allLibs))->andWhere('deleted')->eq('0')->fetch('count');
|
||||
$personalData['createdDocs'] = $this->dao->select($count)->from(TABLE_DOC)->where('addedBy')->eq($account)->andWhere('lib')->ne('')->andWhere('deleted')->eq('0')->andWhere('vision')->eq($this->config->vision)->fetch('count');
|
||||
$personalData['finishedTasks'] = $this->dao->select($t1Count)->from(TABLE_TASK)->alias('t1')
|
||||
->leftjoin(TABLE_EXECUTION)->alias('t2')->on('t1.execution = t2.id')
|
||||
->leftjoin(TABLE_TASKTEAM)->alias('t3')->on("t1.id = t3.task and t3.account = '{$account}'")
|
||||
|
||||
Reference in New Issue
Block a user