* Optimize ztest data.

This commit is contained in:
liyang
2023-05-09 14:35:48 +08:00
parent fdfddec515
commit 353aa22eb4
4 changed files with 2 additions and 164 deletions
+2 -24
View File
@@ -30,30 +30,8 @@ class Processor
*/
public function init()
{
$this->dao->begin();
//$this->initBassicSql();
$this->initDept();
$this->initUser();
$this->initProgram();
//$this->initProduct();
//$this->initPlan();
$this->initProject();
//$this->initBuild();
//$this->initTask();
$this->initExecution();
//$this->initRelease();
//$this->initStakeholder();
//$this->initUserquery();
//$this->initMessage();
//$this->initUpdateKanban();
//$this->initStory();
//$this->initBug();
//$this->initTest();
//$this->initTodo();
//$this->initSonPlan();
$this->dao->commit();
}
/**
@@ -120,7 +98,7 @@ class Processor
$userViews->products = $products;
$userViews->projects = $projects;
$userViews->sprints = $sprints;
$this->dao->insert(TABLE_USERVIEW)->data($userViews)->exec();
$this->dao->replace(TABLE_USERVIEW)->data($userViews)->exec();
$guestViews = new stdclass();
$guestViews->account = 'guest';
@@ -128,7 +106,7 @@ class Processor
$guestViews->products = '';
$guestViews->projects = '';
$guestViews->sprints = '';
$this->dao->insert(TABLE_USERVIEW)->data($guestViews)->exec();
$this->dao->replace(TABLE_USERVIEW)->data($guestViews)->exec();
}
/**