where('apply_status', '=', 10) ->where('is_delete', '=', 0) ->select(); } /** * 获取已批准但未打款的提现申请 */ public function getApprovedList() { return $this->where('apply_status', '=', 20) ->where('is_delete', '=', 0) ->where('pay_status', '=', 10) ->select(); } /** * 批量标记提现申请为已处理 */ public function setProcessed($ids) { return $this->where('id', 'in', $ids) ->save(['apply_status' => 30, 'pay_status' => 20]); } }