shish 1 년 전
부모
커밋
a0360db5e9
1개의 변경된 파일39개의 추가작업 그리고 0개의 파일을 삭제
  1. 39 0
      console/controllers/BalanceChangeController.php

+ 39 - 0
console/controllers/BalanceChangeController.php

@@ -0,0 +1,39 @@
+<?php
+
+namespace console\controllers;
+
+use bizGhs\custom\models\CustomBalanceChange;
+use bizGhs\ghs\models\GhsBalanceChange;
+use yii\console\Controller;
+use Yii;
+
+class BalanceChangeController extends Controller
+{
+
+    public function actionCustom()
+    {
+        $query = new \yii\db\Query();
+        $query->from(CustomBalanceChange::tableName());
+        $query->where(['>', 'id', 0]);
+        foreach ($query->batch() as $changeList) {
+            foreach ($changeList as $change) {
+                print_r($change);
+                die;
+            }
+        }
+    }
+
+    public function actionGhs()
+    {
+        $query = new \yii\db\Query();
+        $query->from(GhsBalanceChange::tableName());
+        $query->where(['>', 'id', 0]);
+        foreach ($query->batch() as $changeList) {
+            foreach ($changeList as $change) {
+                print_r($change);
+                die;
+            }
+        }
+    }
+
+}