ClearController.php 597 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace ghs\controllers;
  3. use bizGhs\clear\services\ClearService;
  4. use common\components\stringUtil;
  5. use common\components\util;
  6. use Yii;
  7. class ClearController extends BaseController
  8. {
  9. //结款单 shish 20210625
  10. public function actionList()
  11. {
  12. $get = Yii::$app->request->get();
  13. $where = ['sjId' => $this->sjId, 'shopId' => $this->shopId];
  14. if (isset($get['customId'])) {
  15. $where['customId'] = $get['customId'];
  16. }
  17. $where['status'] = 2;
  18. $list = ClearService::getCustomList($where);
  19. util::success($list);
  20. }
  21. }