From 49d3097c321033c3e308610dbaab9aac1659789f Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 10 Apr 2023 11:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=9F=8E=E5=B8=82=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AE=8C=E6=95=B4=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/dao/shipping/SystemCityDao.php | 4 ++-- crmeb/app/services/shipping/SystemCityServices.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crmeb/app/dao/shipping/SystemCityDao.php b/crmeb/app/dao/shipping/SystemCityDao.php index 2f2115e05..185ffed14 100644 --- a/crmeb/app/dao/shipping/SystemCityDao.php +++ b/crmeb/app/dao/shipping/SystemCityDao.php @@ -94,8 +94,8 @@ class SystemCityDao extends BaseDao * @email 442384644@qq.com * @date 2023/04/10 */ - public function fullList() + public function fullList($field = '*') { - return $this->getModel()->with('children')->order('id asc')->select()->toArray(); + return $this->getModel()->with('children')->order('id asc')->field($field)->select()->toArray(); } } diff --git a/crmeb/app/services/shipping/SystemCityServices.php b/crmeb/app/services/shipping/SystemCityServices.php index 0d1f90ff3..c949d3c28 100644 --- a/crmeb/app/services/shipping/SystemCityServices.php +++ b/crmeb/app/services/shipping/SystemCityServices.php @@ -28,7 +28,7 @@ use crmeb\services\FormBuilder as Form; * @method update($id, array $data, ?string $key = null) 修改数据 * @method value(array $where, ?string $field = '') 获取一条数据 * @method getShippingCity() 获取运费模板城市数据 - * @method fullList() 获取城市数据完整列表 + * @method fullList(?$field = '') 获取城市数据完整列表 */ class SystemCityServices extends BaseServices {