perf: 任务修改计划时间需要重置任务邮件提醒日志

This commit is contained in:
韦荣超
2022-03-09 10:45:05 +08:00
parent 0c23fa7c9d
commit ee08d8d740
3 changed files with 42 additions and 1 deletions

View File

@@ -753,6 +753,9 @@ class ProjectTask extends AbstractModel
$this->addLog("修改{任务}时间", [
'change' => [$oldStringAt, $newStringAt]
]);
//修改计划时间需要重置任务邮件提醒日志
ProjectTaskMailLog::whereTaskId($this->id)->delete();
}
// 以下紧顶级任务可修改
if ($this->parent_id === 0) {