激活同步优化

This commit is contained in:
邓皓元 2019-04-25 19:06:51 +08:00
parent c804ef0833
commit 03db89a0bc

View File

@ -30,9 +30,9 @@ class ActivatedSync extends Command
$startMicrotime = new UTCDateTime($day->copy()->subMonth()->startOfMonth());
}
$query = TblCard::where('pNo', 'No00000000768')->where('isDel', 0)
->where('saDate', 'exists', true)
$query = TblCard::where('pNo', 'No00000000768')
->where('bNo', 'exists', true)
->where('saDate', 'exists', true)
->where('saDate', '>=', $startMicrotime)
->where('saDate', '<=', $endMicrotime);