Merge branch dev/task-147288 of zentao/zentaopms (#10672)

This commit is contained in:
刘刚
2025-07-30 15:01:08 +08:00
committed by Gitfox
+2 -1
View File
@@ -150,9 +150,10 @@ class commonModel extends model
$today = helper::today();
if($project->status == 'wait')
{
$realBegan = helper::isZeroDate($project->realBegan) ? $this->dao->select('realBegan')->from(TABLE_PROJECT)->where('id')->eq($execution->id)->fetch('realBegan') : $project->realBegan;
$this->dao->update(TABLE_PROJECT)
->set('status')->eq('doing')
->beginIf(helper::isZeroDate($project->realBegan))->set('realBegan')->eq($today)->fi()
->set('realBegan')->eq($realBegan)
->where('id')->eq($projectID)
->exec();