|
|
@@ -2,9 +2,27 @@
|
|
|
|
|
|
namespace ghs\controllers;
|
|
|
|
|
|
+use bizGhs\jh\classes\JhItemClass;
|
|
|
use common\components\util;
|
|
|
+use Yii;
|
|
|
|
|
|
class JhItemController extends PublicController
|
|
|
{
|
|
|
|
|
|
-}
|
|
|
+ //根据分类id取集合,带分页 ssh 20231228
|
|
|
+ public function actionList()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $classId = $get['classId'] ?? 0;
|
|
|
+ $mainId = $this->mainId ?? 0;
|
|
|
+ $where = [];
|
|
|
+ $where['mainId'] = $mainId;
|
|
|
+ $where['delStatus'] = 0;
|
|
|
+ if (!empty($classId)) {
|
|
|
+ $where['classId'] = $classId;
|
|
|
+ }
|
|
|
+ $respond = JhItemClass::getItemList($where);
|
|
|
+ util::success($respond);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|