From dbea6cda0795453cea41f7cf0fc6c6be9771768f Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Fri, 13 Oct 2023 17:59:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96typecode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repositories/system/merchant/MerchantTypeRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/repositories/system/merchant/MerchantTypeRepository.php b/app/common/repositories/system/merchant/MerchantTypeRepository.php index edd570b9..3f8cd45c 100644 --- a/app/common/repositories/system/merchant/MerchantTypeRepository.php +++ b/app/common/repositories/system/merchant/MerchantTypeRepository.php @@ -73,7 +73,7 @@ class MerchantTypeRepository extends BaseRepository $merTypeIds = $queryBuilder->fetchSql(false)->column('mer_type_id'); $query = MerchantType::getDB()->when(!$getAll, function ($query) use ($merTypeIds) { $query->whereIn('mer_type_id', $merTypeIds); - })->field('mer_type_id,type_name'); + })->field('mer_type_id,type_name,type_code'); return $query->select()->toArray(); }