This commit is contained in:
邓皓元 2018-12-25 17:07:34 +08:00
parent 465ea103d7
commit ec493cadb6
2 changed files with 4 additions and 2 deletions

View File

@ -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();

View File

@ -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();