GhsDebtChangeController.php 708 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace hd\controllers;
  3. use bizHd\ghs\classes\GhsClass;
  4. use bizHd\ghs\classes\GhsDebtChangeClass;
  5. use common\components\dict;
  6. use common\components\util;
  7. use Yii;
  8. class GhsDebtChangeController extends BaseController
  9. {
  10. //欠款变动明细
  11. public function actionList()
  12. {
  13. $get = Yii::$app->request->get();
  14. $ghsId = $get['ghsId'] ?? 0;
  15. $ghs = GhsClass::getById($ghsId, true);
  16. GhsClass::valid($ghs, $this->shopId);
  17. $ptStyle = dict::getDict('ptStyle', 'hd');
  18. $where = [];
  19. $where['ghsId'] = $ghsId;
  20. $where['ptStyle'] = $ptStyle;
  21. $list = GhsDebtChangeClass::getChangeList($where);
  22. util::success($list);
  23. }
  24. }