*Fix bug.

This commit is contained in:
leiyong
2020-11-03 14:48:50 +08:00
parent 1b545986b2
commit ab57b31bb4
3 changed files with 6 additions and 10 deletions
+1 -8
View File
@@ -122,17 +122,10 @@ class programModel extends model
{
/* Init vars. */
$this->loadModel('project');
$programs = $this->getPRJList(0, $status, $orderBy, $pager);
$programs = $this->getPRJList(0, $status, 0, $orderBy, $pager);
if(empty($programs)) return array();
$programIdList = array_keys($programs);
$programs = $this->dao->select('*')->from(TABLE_PROGRAM)
->where('id')->in($programIdList)
->orderBy($orderBy)
->limit($itemCounts)
->fetchAll('id');
$teams = $this->dao->select('root, count(*) as count')->from(TABLE_TEAM)
->where('root')->in($programIdList)
->groupBy('root')