123456789101112131415161718192021 |
- <?php
- namespace app\common\model;
- use think\Db;
- use think\db\Query;
- use think\Model;
- /**
- * 配置模型
- * @method Query admin($adminId)
- */
- class MobileApi extends Model
- {
- public static function deleteNotExists(){
- self::whereNotExists(
- Mobile::where('id',Db::raw('mobile_api.mobile_id'))->buildSql()
- )->delete();
- }
- }
|