12345678910111213141516171819202122232425 |
- <?php
- /**
- * Created by PhpStorm.
- * User: shensong
- * Date: 2020/12/23
- * Time: 16:26
- */
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class AccountConfig extends Model
- {
- protected $table = 'account_config';
- public $timestamps = false;
- protected $hidden = ['is_delete', 'created_at', 'updated_at'];
- protected static $unguarded = true;
- public static function getOperatorAccountIdList($userName, $month) {
- return self::query()->where('is_delete', 0)->where('month', $month.'-01')
- ->where('operator', $userName)->select('advertiser_id')->get();
- }
- }
|