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