|
@@ -44,7 +44,7 @@ class OrderRateByDay extends Command {
|
44
|
44
|
foreach($dates as $k=>$v){
|
45
|
45
|
#当前日期加粉 and 昨日成单
|
46
|
46
|
$phones = DB::table('customers')->where('fanTime', $v['idate'])->lists('phone');
|
47
|
|
- $order_count = DB::table('order')->whereIn('receiverMobile', $phones)>where('createTime','>',$date)->where('createTime','<=',$date.' 23:59:59')->where('is_del', 0)->count();
|
|
47
|
+ $order_count = DB::table('order')->whereIn('receiverMobile', $phones)->where('createTime','>',$date)->where('createTime','<=',$date.' 23:59:59')->where('is_del', 0)->count();
|
48
|
48
|
#当前日期加粉
|
49
|
49
|
$fan_add = DB::table('cust_day_detail')->where('is_del', 0)->where('dtime', $v['idate'])->sum('fan_add');
|
50
|
50
|
#计算当前日期加粉在昨日成单率
|