소스 검색

欠款变动

shish 2 년 전
부모
커밋
1134c4ac78
2개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      app-ghs/controllers/CustomBalanceChangeController.php
  2. 6 0
      biz-ghs/custom/classes/CustomBalanceChangeClass.php

+ 1 - 5
app-ghs/controllers/CustomBalanceChangeController.php

@@ -2,10 +2,8 @@
 
 namespace ghs\controllers;
 
-use bizGhs\custom\classes\CustomBalanceClass;
+use bizGhs\custom\classes\CustomBalanceChangeClass;
 use bizGhs\custom\classes\CustomClass;
-use bizGhs\custom\classes\CustomDebtChangeClass;
-use common\components\dict;
 use common\components\util;
 use Yii;
 
@@ -21,10 +19,8 @@ class CustomBalanceChangeController extends BaseController
         $customId = $get['customId'] ?? 0;
         $custom = CustomClass::getById($customId);
         CustomClass::valid($custom, $this->shopId);
-        $ptStyle = dict::getDict('ptStyle', 'ghs');
         $where = [];
         $where['customId'] = $customId;
-        $where['ptStyle'] = $ptStyle;
         $list = CustomBalanceChangeClass::getChangeList($where);
         util::success($list);
     }

+ 6 - 0
biz-ghs/custom/classes/CustomBalanceChangeClass.php

@@ -13,4 +13,10 @@ class CustomBalanceChangeClass extends BaseClass
 
     public static $baseFile = '\bizGhs\custom\models\CustomBalanceChange';
 
+    public static function getChangeList($where)
+    {
+        $data = self::getList('*', $where, 'addTime DESC,id DESC');
+        return $data;
+    }
+
 }