ClearController.php 857 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace hd\controllers;
  3. use biz\ghs\classes\GhsClass;
  4. use bizGhs\clear\classes\ClearClass;
  5. use bizGhs\clear\services\ClearService;
  6. use common\components\util;
  7. use Yii;
  8. class ClearController extends BaseController
  9. {
  10. //结款单 shish 20210625
  11. public function actionList()
  12. {
  13. $get = Yii::$app->request->get();
  14. $where['status'] = 2;
  15. $ghsId = $get['ghsId'] ?? 0;
  16. $ghs = GhsClass::getById($ghsId, true);
  17. GhsClass::valid($ghs, $this->shopId);
  18. $where['ghsId'] = $ghsId;
  19. $list = ClearService::getClearList($where);
  20. util::success($list);
  21. }
  22. //获取基本信息 shish 20210625
  23. public function actionGetFullInfo()
  24. {
  25. $orderSn = Yii::$app->request->get('orderSn');
  26. $respond = ClearClass::getCgInfo($orderSn);
  27. util::success($respond);
  28. }
  29. }