| 12345678910111213141516171819202122 |
- <?php
- /**
- *------Create thems Model------
- *------SCWPHP Version 1.0.0------
- *------Dev Model Jions------
- *------Create Time 2017-06-05 09:03:46------
- */
- namespace App\Commons\Model;
- use \System\Model;
- class Account_token extends Model {
- public $timestamps = false;
- protected $table = 'account_token';
- //´úÀíÔø¾ÔÚÏß
- protected function getTime($timearea,$agent_id){
- $count=$this->whereBetween('last_time', $timearea)
- ->join('agent_child','agent_child.account_identity',$this->table.'.account_identity')
- ->where('agent_child.agent_identity',$agent_id)
- ->count();
- return $count;
- }
- }
|