MobileApi.php 359 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\common\model;
  3. use think\Db;
  4. use think\db\Query;
  5. use think\Model;
  6. /**
  7. * 配置模型
  8. * @method Query admin($adminId)
  9. */
  10. class MobileApi extends Model
  11. {
  12. public static function deleteNotExists(){
  13. self::whereNotExists(
  14. Mobile::where('id',Db::raw('mobile_api.mobile_id'))->buildSql()
  15. )->delete();
  16. }
  17. }