|
|
@@ -0,0 +1,29 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace hd\controllers;
|
|
|
+
|
|
|
+use bizHd\ghs\classes\GhsClass;
|
|
|
+use bizHd\ghs\classes\GhsDebtChangeClass;
|
|
|
+use common\components\dict;
|
|
|
+use common\components\util;
|
|
|
+use Yii;
|
|
|
+
|
|
|
+class GhsDebtChangeController extends BaseController
|
|
|
+{
|
|
|
+
|
|
|
+ //欠款变动明细
|
|
|
+ public function actionList()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $ghsId = $get['ghsId'] ?? 0;
|
|
|
+ $ghs = GhsClass::getById($ghsId);
|
|
|
+ GhsClass::valid($ghs, $this->shopId);
|
|
|
+ $ptStyle = dict::getDict('ptStyle', 'hd');
|
|
|
+ $where = [];
|
|
|
+ $where['ghsId'] = $ghsId;
|
|
|
+ $where['ptStyle'] = $ptStyle;
|
|
|
+ $list = GhsDebtChangeClass::getChangeList($where);
|
|
|
+ util::success($list);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|