* Adjust the comment.

This commit is contained in:
hufangzhou
2020-12-28 13:35:26 +08:00
parent 11c8c42fa5
commit 4661eda869
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -268,6 +268,7 @@ class my extends control
* My tasks
*
* @param string $type
* @param string $orderBy
* @param int $recTotal
* @param int $recPerPage
* @param int $pageID
+3 -3
View File
@@ -102,18 +102,18 @@ class stakeholderModel extends model
return false;
}
/**
/**
* Batch create stakeholders for a project.
*
* @access public
* @return void
*/
public function batchCreate()
{
{
$this->loadModel('action');
$data = (array)fixer::input('post')->get();
$members = $this->loadModel('project')->getTeamMemberPairs($this->session->PRJ);
$members = $this->loadModel('project')->getTeamMemberPairs($this->session->PRJ);
$accounts = array_unique($data['accounts']);
$oldJoin = $this->dao->select('`user`, createdDate')->from(TABLE_STAKEHOLDER)->where('objectID')->eq((int)$this->session->PRJ)->andWhere('objectType')->eq('project')->fetchPairs();
$this->dao->delete()->from(TABLE_STAKEHOLDER)->where('objectID')->eq((int)$this->session->PRJ)->andWhere('objectType')->eq('project')->exec();