add 任务8自动结算
This commit is contained in:
parent
73f79b6036
commit
c73d2a7422
@ -2204,11 +2204,7 @@ class TaskLogic extends BaseLogic
|
|||||||
break;
|
break;
|
||||||
// 日常管理及其他临时任务
|
// 日常管理及其他临时任务
|
||||||
case 'village_task_type_8':
|
case 'village_task_type_8':
|
||||||
// 该任务的判定都需要上传资料,后台审批任务是否完成. 因此每天自动结算时,任务状态不为完成的,都做关闭任务处理
|
self::dealVillageTask8($taskSchedulePlan);
|
||||||
$task = Task::where(['id'=>$taskSchedulePlan['task_id']])->find();
|
|
||||||
if ($task['status'] != 3) {
|
|
||||||
(new Task())->closeTask($taskSchedulePlan['task_id']);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
@ -2566,6 +2562,11 @@ class TaskLogic extends BaseLogic
|
|||||||
|
|
||||||
public static function dealVillageTask8($taskSchedulePlan)
|
public static function dealVillageTask8($taskSchedulePlan)
|
||||||
{
|
{
|
||||||
|
$taskTemplateInfo = $taskSchedulePlan['template_info'];
|
||||||
|
$villageCompany = Company::where(['id' => $taskTemplateInfo['company_id']])->find();
|
||||||
|
$task = Task::where('id', $taskSchedulePlan['task_id'])->find();
|
||||||
|
|
||||||
|
$task['money'] = $taskTemplateInfo['money_three'];
|
||||||
|
(new VillageShareProfit())->dealVillageTaskSettlement8($task, $villageCompany, $taskSchedulePlan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user