Browse Source

feat: EK-856: 管理员增加“Country”属性.

kevinElken 10 tháng trước cách đây
mục cha
commit
cdc406ba0e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backendApi/modules/v1/controllers/ShopController.php

+ 1 - 1
backendApi/modules/v1/controllers/ShopController.php

@@ -939,7 +939,7 @@ class ShopController extends BaseController {
             $quotedAdminCountry = array_map(function($item) {
                 return "'" . addslashes($item) . "'";
             }, $adminCountry);
-            $filter['condition'] .= ' AND UI.DELETED=0 AND U.COUNTRY_ID IN (' . implode(',', $quotedAdminCountry) . ')';
+            $filter['condition'] .= ' AND O.COUNTRY_ID IN (' . implode(',', $quotedAdminCountry) . ')';
 
             $listObj = new OrderPeriodAdjustList();
             $data = $listObj->getList(['condition' => $filter['condition'], 'params' => $filter['params']]);