ClearController.php 888 B

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