fix:后端生成修改
This commit is contained in:
parent
5c46dd5922
commit
a5c115126c
@ -43,7 +43,7 @@ class {$className} extends BaseModel
|
||||
public static function onBeforeInsert(self $model): void
|
||||
{
|
||||
// self::checkRepeatData($model);
|
||||
Tool::dataAddSortProc(self::class, $model->{$orderField});
|
||||
Tool::dataAddSortProc($model);
|
||||
$model->completeCreateField();
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ class {$className} extends BaseModel
|
||||
public static function onBeforeUpdate(self $model): void
|
||||
{
|
||||
// self::checkRepeatData($model);
|
||||
Tool::dataEditSortProc(self::class, $model->{$businessName}_guid, $model->{$orderField});
|
||||
Tool::dataEditSortProc($model);
|
||||
$model->completeUpdateField();
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ class {$className} extends BaseModel
|
||||
*/
|
||||
public static function onBeforeDelete(self $model): void
|
||||
{
|
||||
Tool::dataDeleteSortProc(self::class, $model->{$businessName}_guid);
|
||||
Tool::dataDeleteSortProc($model);
|
||||
$model->completeDeleteField();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user