This commit is contained in:
tianshujie
2021-08-31 14:59:53 +08:00
parent cfee41bde4
commit 026287cbf5
+1 -1
View File
@@ -507,7 +507,7 @@ class executionModel extends model
->batchcheck($this->config->execution->edit->requiredFields, 'notempty')
->checkIF($execution->begin != '', 'begin', 'date')
->checkIF($execution->end != '', 'end', 'date')
->checkIF($execution->end != '', 'end', 'gt', $execution->begin)
->checkIF($execution->end != '', 'end', 'ge', $execution->begin)
->check('code', 'unique', "id != $executionID and code != '' and deleted = '0'")
->where('id')->eq($executionID)
->limit(1)