* Finish task #53549.

This commit is contained in:
daitingting
2022-05-09 06:41:35 +00:00
parent 73dce33bc3
commit 96e460c47d
14 changed files with 76 additions and 66 deletions
+2
View File
@@ -657,6 +657,7 @@ class programModel extends model
->checkIF($program->end != '', 'end', 'date')
->checkIF($program->end != '', 'end', 'gt', $program->begin)
->checkIF(!empty($program->name), 'name', 'unique', "`type`='program' and `parent` = $program->parent")
->checkFlow()
->exec();
if(!dao::isError())
@@ -755,6 +756,7 @@ class programModel extends model
->checkIF($program->end != '', 'end', 'date')
->checkIF($program->end != '', 'end', 'gt', $program->begin)
->checkIF(!empty($program->name), 'name', 'unique', "id!=$programID and `type`='program' and `parent` = $program->parent")
->checkFlow()
->where('id')->eq($programID)
->limit(1)
->exec();