|
@@ -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]);
|
|
|
}
|
|
|
}
|
|
|
|