| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace hd\controllers;
- use biz\ghs\classes\GhsClass;
- use bizGhs\clear\classes\ClearClass;
- use bizGhs\clear\services\ClearService;
- use common\components\util;
- use Yii;
- class ClearController extends BaseController
- {
- //结款单 shish 20210625
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $where['status'] = 2;
- $ghsId = $get['ghsId'] ?? 0;
- $ghs = GhsClass::getById($ghsId, true);
- GhsClass::valid($ghs, $this->shopId);
- $where['ghsId'] = $ghsId;
- $list = ClearService::getClearList($where);
- util::success($list);
- }
- //获取基本信息 shish 20210625
- public function actionGetFullInfo()
- {
- $orderSn = Yii::$app->request->get('orderSn');
- $respond = ClearClass::getCgInfo($orderSn);
- util::success($respond);
- }
- }
|