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.
20 lines
568 B
20 lines
568 B
<?php
|
|
|
|
namespace app\job\custmer;
|
|
|
|
use app\model\customer_resources\CustomerResources;
|
|
use app\model\resource_sharing\ResourceSharing;
|
|
use core\base\BaseJob;
|
|
|
|
class ResourceAutoAllocation extends BaseJob
|
|
{
|
|
public function doJob()
|
|
{
|
|
//获取当天的资源列表模型CustomerResources
|
|
// CustomerResources::where('created_at')
|
|
//获取当天销售获取资源的数量ResourceSharing
|
|
// ResourceSharing::where('shared_at')->
|
|
//遍历资源列表按照资源数量的最少的人员优先分配
|
|
return true;
|
|
}
|
|
}
|