stanley-king il y a 1 an
Parent
commit
2a975b6b4d
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      test/TestCommand.php

+ 3 - 2
test/TestCommand.php

@@ -35,15 +35,16 @@ class TestCommand extends TestCase
         $start = 0;
         while (true)
         {
-            $items = $mod_member->field('card_no')->where(['card_no' => ['gt', $start], 'card_type' => 4])->limit("0,1000")->select();
+            $items = $mod_member->field('card_no,using_times')->where(['card_no' => ['gt', $start], 'card_type' => 4])->limit("0,1000")->select();
             if (empty($items)) {
                 break;
             }
 
             foreach ($items as $item) {
                 $card_no = $item['card_no'];
-                fputcsv($fcards, [$card_no]);
                 $start = $card_no;
+                $using_times = $item['using_times'];
+                fputcsv($fcards, [$card_no,$using_times]);
             }
         }