| 123456789101112131415161718192021222324252627 |
- <?php
- namespace ghs\controllers;
- use bizGhs\jh\classes\JhItemClass;
- use common\components\util;
- use Yii;
- class JhItemController extends BaseController
- {
- //根据集合id取花材,带分页 ssh 20231228
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $jhId = $get['jhId'] ?? 0;
- $mainId = $this->mainId ?? 0;
- $where = [];
- $where['mainId'] = $mainId;
- if (!empty($jhId)) {
- $where['jhId'] = $jhId;
- }
- $respond = JhItemClass::getItemList($where);
- util::success($respond);
- }
- }
|