[ 'star', 'operation_type', 'contact_phone', 'address'], '%like%' => ['name'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2026/01/31 17:09 */ public function lists(): array { return TeaStore::where($this->searchWhere) ->field(['id', 'name', 'image', 'star','city_id', 'operation_type','city_area_id','store_user_id','status', 'day_time', 'start_time', 'end_time', 'contact_phone', 'address','is_lock','shop_status','image_arr', 'dtime', 'total_reflect_amount', 'total_amount', 'balance','longitude','lock_no','recharge_state', 'latitude','province','province_id','city','city_id','district','district_id']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2026/01/31 17:09 */ public function count(): int { return TeaStore::where($this->searchWhere)->count(); } }