You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
782 B
46 lines
782 B
<?php
|
|
|
|
namespace app\job\transfer\schedule;
|
|
|
|
use core\base\BaseJob;
|
|
use think\facade\Log;
|
|
|
|
/**
|
|
* 自动分配资源
|
|
*/
|
|
class ResourceAutoAllocation extends BaseJob
|
|
{
|
|
public function doJob()
|
|
{
|
|
Log::write('自动分配资源');
|
|
}
|
|
|
|
/**
|
|
* 获取销售人员
|
|
*/
|
|
public function getSalesman()
|
|
{
|
|
Log::write('获取销售人员');
|
|
}
|
|
|
|
/**
|
|
* 获取资源
|
|
*/
|
|
public function getResource()
|
|
{
|
|
Log::write('获取资源');
|
|
course_schedule
|
|
::where('status', 1)->select();
|
|
}
|
|
|
|
/**
|
|
* 按照现在销售人员的资源拥有情况分配资源
|
|
*/
|
|
public function allocateResource()
|
|
{
|
|
Log::write('按照现在销售人员的资源拥有情况分配资源');
|
|
}
|
|
|
|
|
|
|
|
}
|