Merge branch 'autoTest_liumengyi_task' into 'master'

* Add auto test of computeHours4Multiple.

See merge request easycorp/zentaopms!2188
This commit is contained in:
孙广明
2022-03-10 07:00:26 +00:00
5 changed files with 225 additions and 0 deletions

View File

@@ -149,6 +149,11 @@ class Processor
*/
private function initTask()
{
$parentList = $this->dao->select('parent')->from(TABLE_TASK)->where('parent')->gt(0)->fetchAll('parent');
$parentIDList = array_keys($parentList);
$parentID = implode(',', $parentIDList);
$this->dao->update(TABLE_TASK)->set('parent')->eq(-1)->where('id')->in($parentID)->andWhere('deleted')->eq(0)->exec();
}
/**