kevin 1 рік тому
батько
коміт
cd062bd527
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      frontendApi/modules/v1/controllers/UserController.php

+ 1 - 1
frontendApi/modules/v1/controllers/UserController.php

@@ -397,7 +397,7 @@ class UserController extends BaseController {
         } else if ($stage == 1000) {
         } else if ($stage == 1000) {
             $query_condition.= ") AND (INSTALMENT = :INSTALMENT)";
             $query_condition.= ") AND (INSTALMENT = :INSTALMENT)";
         } else {
         } else {
-            $query_condition.= ") OR (INSTALMENT <= :INSTALMENT)";
+            $query_condition.= ") AND (INSTALMENT <= :INSTALMENT)";
         }
         }
 
 
         $allGoods = ShopGoods::find()->where("STATUS=1 AND CATEGORY_TYPE=1 " . $query_condition, [':INSTALMENT' => $stage])->orderBy('SORT ASC')->asArray()->all();
         $allGoods = ShopGoods::find()->where("STATUS=1 AND CATEGORY_TYPE=1 " . $query_condition, [':INSTALMENT' => $stage])->orderBy('SORT ASC')->asArray()->all();