| 123456789101112131415161718192021222324252627 |
- <?php
- namespace ghs\controllers;
- use bizGhs\book\classes\BookItemCustomClass;
- use bizGhs\book\classes\BookItemGhsClass;
- use common\components\util;
- use Yii;
- class BookItemGhsController extends BaseController
- {
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $where = [];
- $where['mainId'] = $this->mainId;
- $parentId = $get['parentId'] ?? 0;
- if (empty($parentId)) {
- util::fail('没有找到相关信息');
- }
- $where['parentId'] = $parentId;
- $list = BookItemGhsClass::getAllByCondition($where, 'addTime DESC', '*');
- util::success(['list' => $list]);
- }
- }
|