diff --git a/app/common/logic/task/TaskLogic.php b/app/common/logic/task/TaskLogic.php index 8c3a3643b..40992d22c 100644 --- a/app/common/logic/task/TaskLogic.php +++ b/app/common/logic/task/TaskLogic.php @@ -647,10 +647,10 @@ class TaskLogic extends BaseLogic $taskTemplateInfo = $taskSchedulePlan['template_info']; $townCompany = Company::where(['id' => $taskTemplateInfo['company_id']])->find(); $taskDayCount = $taskTemplateInfo['day_count']; // 任务累计进行天数 - $task = Task::where(['id', $taskSchedulePlan['task_id']])->find(); + $task = Task::where('id', $taskSchedulePlan['task_id'])->find(); $stageDayOneAccumulative = $taskTemplateInfo['stage_day_one']; // 第一阶段累计天数 - $stageDayTwoAccumulative = bcadd($taskTemplateInfo['stage_day_one'], $taskTemplateInfo['stage_day_two']); // 第二阶段累计天数 第一+第二 - $stageDayThreeAccumulative = bcadd($stageDayTwoAccumulative, $taskTemplateInfo['stage_day_three']); // 第三阶段累计天数 第二阶段累计值+第三阶段天数 + $stageDayTwoAccumulative = intval(bcadd($taskTemplateInfo['stage_day_one'], $taskTemplateInfo['stage_day_two'])); // 第二阶段累计天数 第一+第二 + $stageDayThreeAccumulative = intval(bcadd($stageDayTwoAccumulative, $taskTemplateInfo['stage_day_three'])); // 第三阶段累计天数 第二阶段累计值+第三阶段天数 // 1 当前任务进行天数 < 第一阶段天数 只判断当天是否完成 状态未完成则关闭任务 if ($taskDayCount < $stageDayOneAccumulative) {