orderBy
This commit is contained in:
parent
465ea103d7
commit
ec493cadb6
@ -30,7 +30,8 @@ class CardSync extends Command
|
|||||||
|
|
||||||
$query = DB::connection('vd_old')->table('ckb_custom')
|
$query = DB::connection('vd_old')->table('ckb_custom')
|
||||||
->select(['id', 'custom_no', 'imsi', 'carrieroperator', 'iccid', 'card_number', 'card_from', 'iccid', 'company', 'custom_state', 'create_time' ,'update_time', 'card_cycle_start'])
|
->select(['id', 'custom_no', 'imsi', 'carrieroperator', 'iccid', 'card_number', 'card_from', 'iccid', 'company', 'custom_state', 'create_time' ,'update_time', 'card_cycle_start'])
|
||||||
->where('id', '>', $maxId);
|
->where('id', '>', $maxId)
|
||||||
|
->orderBy('id');
|
||||||
|
|
||||||
$total = $query->count();
|
$total = $query->count();
|
||||||
|
|
||||||
|
@ -49,7 +49,8 @@ class LogSync extends Command
|
|||||||
|
|
||||||
$query = DB::connection('vd_old')->table('logs')
|
$query = DB::connection('vd_old')->table('logs')
|
||||||
->where('type', '<>', 10)
|
->where('type', '<>', 10)
|
||||||
->where('create_time', '>', $timestamp);
|
->where('create_time', '>', $timestamp)
|
||||||
|
->orderBy('id');
|
||||||
|
|
||||||
$total = $query->count();
|
$total = $query->count();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user