* Add firstEnd field in table project and record end date when start a execution.

This commit is contained in:
qixinzhi
2023-09-22 06:44:15 +00:00
parent 227f716986
commit d82fa1b70e
3 changed files with 22 additions and 0 deletions
+3
View File
@@ -125,6 +125,8 @@ class commonModel extends model
->where('id')->eq($projectID)
->exec();
$this->loadModel('project')->recordFirstEnd($projectID);
$actionType = $project->multiple ? 'syncproject' : 'syncmultipleproject';
$this->loadModel('action')->create('project', $projectID, $actionType);
}
@@ -180,6 +182,7 @@ class commonModel extends model
if($execution->status == 'wait')
{
$this->dao->update(TABLE_EXECUTION)->set('status')->eq('doing')->set('realBegan')->eq($today)->where('id')->eq($execution->id)->exec();
$this->loadModel('project')->recordFirstEnd($execution->id);
$this->loadModel('action')->create('execution', $execution->id, 'syncexecution');
if($execution->parent)
{