diff --git a/app/adminapi/logic/task/TaskAllocationLogic.php b/app/adminapi/logic/task/TaskAllocationLogic.php index 2a4ce9775..baa195e29 100644 --- a/app/adminapi/logic/task/TaskAllocationLogic.php +++ b/app/adminapi/logic/task/TaskAllocationLogic.php @@ -51,8 +51,8 @@ class TaskAllocationLogic extends BaseLogic try { // 任务分配 $taskAllocation = TaskAllocation::create([ - 'dataid' => generate_sn(self::class, 'dataid'), - 'num' => generate_sn(self::class, 'num'), + 'dataid' => generate_sn(TaskAllocation::class, 'dataid'), + 'num' => generate_sn(TaskAllocation::class, 'num'), 'task_type_id' => $taskType['id'], // 任务类别id 'cost_project_id' => $taskType['cost_project_id'], // 项目id 'apptime' => $params['apptime'],