From c62b7fbf28510ed347ecb5b037979ce57af9bb02 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 22 Sep 2023 16:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=95=87=E7=AE=A1=E7=90=86=E5=85=AC=E5=8F=B8-?= =?UTF-8?q?=E4=BB=BB=E5=8A=A13=EF=BC=8C=E4=BB=BB=E5=8A=A14=E7=BB=93?= =?UTF-8?q?=E7=AE=97=EF=BC=8C=E5=88=86=E6=B6=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/task/TaskLogic.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {