count('id'); $list = ExpressModel::where($where) ->field(true) ->order('id', 'desc') ->page($data['page'], $data['size']) ->select() ->toArray(); return json_show(CommonModel::$success, '获取快递公司列表成功', ['count' => $count, 'list' => $list]); } //删除 public static function status(array $data = []): Json { $rs = ExpressModel::where(['id' => $data['id']]) ->where('status', '<>', $data['status']) ->save(['status' => $data['status']]); return $rs ? json_show(CommonModel::$success, '操作成功') : json_show(CommonModel::$error_param, '操作失败,该快递公司不存在或重复操作'); } }