AgentsManageService.php 475 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: admin
  5. * Date: 2018/12/14
  6. * Time: 16:54
  7. */
  8. namespace App\Modules\Agents\Services;
  9. use App\Modules\Agents\Models\AgentsManage;
  10. class AgentsManageService {
  11. public static function getByAccount($account){
  12. return AgentsManage::where('name',$account)->first();
  13. }
  14. public static function getSendOrdersByAgentName($agentName,$isAll){
  15. return AgentsManage::getSendOrdersByAgentName($agentName,$isAll);
  16. }
  17. }