Merge branch 'kanban'

This commit is contained in:
孙广明
2021-12-20 10:59:07 +08:00
88 changed files with 5582 additions and 113 deletions
+2 -1
View File
@@ -2809,7 +2809,7 @@ class storyModel extends model
* @access public
* @return array
*/
public function getUserStories($account, $type = 'assignedTo', $orderBy = 'id_desc', $pager = null, $storyType = 'story')
public function getUserStories($account, $type = 'assignedTo', $orderBy = 'id_desc', $pager = null, $storyType = 'story', $includeLibStories = true)
{
$sql = $this->dao->select('t1.*, t2.name as productTitle')->from(TABLE_STORY)->alias('t1')
->leftJoin(TABLE_PRODUCT)->alias('t2')->on('t1.product = t2.id');
@@ -2825,6 +2825,7 @@ class storyModel extends model
->beginIF($type == 'reviewedBy')->andWhere("CONCAT(',', reviewedBy, ',')")->like("%,$account,%")->fi()
->beginIF($type == 'closedBy')->andWhere('closedBy')->eq($account)->fi()
->fi()
->beginIF($includeLibStories == false)->andWhere('t1.lib')->eq('0')->fi()
->orderBy($orderBy)
->page($pager)
->fetchAll('id');