26 lines
763 B
PHP
26 lines
763 B
PHP
<?php
|
||
|
||
namespace app\job;
|
||
|
||
use app\api\controller\RemoteController;
|
||
use app\common\logic\finance\ShareProfit;
|
||
use app\common\logic\task\TaskLogic;
|
||
use app\common\model\Company;
|
||
use app\common\model\task\Task;
|
||
use app\common\model\task_scheduling_plan\TaskSchedulingPlan;
|
||
use app\common\model\task_template\TaskTemplate;
|
||
use think\facade\Log;
|
||
use think\queue\Job;
|
||
|
||
class VillageTaskSettlementJob
|
||
{
|
||
/**
|
||
* 镇农科公司任务结算
|
||
*/
|
||
public function fire(Job $job, $taskSchedulingPlan)
|
||
{
|
||
TaskLogic::villageTaskSettlement($taskSchedulingPlan);
|
||
//如果任务执行成功后 记得删除任务,不然这个任务会重复执行,直到达到最大重试次数后失败后,执行failed方法
|
||
$job->delete();
|
||
}
|
||
} |