|
|
@@ -9,4 +9,16 @@ class PtItemCatRelateClass extends BaseClass
|
|
|
|
|
|
public static $baseFile = '\biz\item\models\PtItemCatRelate';
|
|
|
|
|
|
+ public static function getItemList($where)
|
|
|
+ {
|
|
|
+ $data = self::getList('*', $where, 'inTurn DESC');
|
|
|
+ $list = $data['list'];
|
|
|
+ if (!empty($list)) {
|
|
|
+ $ids = array_column($list, 'itemId');
|
|
|
+ $list = PtItemClass::getAllByCondition(['id' => ['in', $ids]], null, '*');
|
|
|
+ $data['list'] = $list;
|
|
|
+ }
|
|
|
+ return $data;
|
|
|
+ }
|
|
|
+
|
|
|
}
|