Merge branch 'sprint/170_zhouxin_44486,44487,44488' into 'sprint/170'

Add realBegan for program.

See merge request easycorp/zentaopms!529
This commit is contained in:
李玉春
2021-11-18 09:21:25 +00:00
+2 -1
View File
@@ -103,7 +103,8 @@ class commonModel extends model
->orderBy('id_desc')
->fetchPairs();
$this->dao->update(TABLE_PROGRAM)->set('status')->eq('doing')->where('id')->in($waitList)->exec();
$now = helper::now();
$this->dao->update(TABLE_PROGRAM)->set('status')->eq('doing')->set('realBegan')->eq($now)->where('id')->in($waitList)->exec();
foreach($waitList as $programID)
{
$this->loadModel('action')->create('program', $programID, 'syncprogram');