* @license GPL https://xxx.com * @link https://xxx.com * @ctime: 2020/4/11 14:30 */ namespace App\Repositories; use App\Models\RentOrderBikeOperate; class RentOrderBikeOperateRepository extends BaseRepository { public function __construct(RentOrderBikeOperate $orderBikeOperate) { $this->model = $orderBikeOperate; } public function checkLowPowerOffLock($order_id){ return $this->model->query() ->where('order_id',$order_id) ->where('is_admin',RentOrderBikeOperate::IS_ADMIN_SYSTEM) ->where('type',RentOrderBikeOperate::TYPE_CLONE_BIKE) ->first(); } }