Sfoglia il codice sorgente

bugfix: EK-0524: 结算后台无法下载PDF订单.

kevinElken 7 mesi fa
parent
commit
3835ebc640
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      common/models/UserRelation.php

+ 1 - 1
common/models/UserRelation.php

@@ -280,7 +280,7 @@ class UserRelation extends \common\components\ActiveRecord
         $table = self::getTableNameFromPeriod($periodNum);
         $db = $table['db'];
         $tableName = $table['tableName'];
-        return $db->createCommand("SELECT USER_ID,PARENT_UID,TOP_DEEP FROM {$tableName} WHERE PARENT_UID=:PARENT_UID ORDER BY {$orderBy}")->bindValues([':PARENT_UID'=>$userId])->queryAll();
+        return $db->createCommand("SELECT USER_ID,PARENT_UID,TOP_DEEP FROM {$tableName} AS AT INNER JOIN AR_USER U ON AT.USER_ID = U.ID AND U.DELETED=0 WHERE PARENT_UID=:PARENT_UID ORDER BY {$orderBy}")->bindValues([':PARENT_UID'=>$userId])->queryAll();
     }