接口修改9
This commit is contained in:
parent
707f0eaf31
commit
c4a1473394
@ -999,51 +999,51 @@ class Statistics extends BaseController
|
||||
$where[] = ['village_id', '=', $village_id];
|
||||
}
|
||||
$where[] = ['mer_type_id', '=', 6];
|
||||
$m_1=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_1=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_2=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_2=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_3=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_3=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_4=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_4=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_5=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_5=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_6=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_6=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_7=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_7=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_8=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_8=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_9=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_9=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_10=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_10=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_11=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_11=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_12=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_12=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
@ -1070,7 +1070,7 @@ class Statistics extends BaseController
|
||||
$where[] = ['village_id', '=', $village_id];
|
||||
}
|
||||
$where[] = ['mer_type_id', '=', 7];
|
||||
$m=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->count();
|
||||
$return = [
|
||||
@ -1167,51 +1167,51 @@ class Statistics extends BaseController
|
||||
$where[] = ['village_id', '=', $village_id];
|
||||
}
|
||||
$where[] = ['mer_type_id', 'in', [6,7]];
|
||||
$m_1=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_1=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_2=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_2=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_3=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_3=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_4=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_4=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_5=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_5=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_6=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_6=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_7=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_7=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_8=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_8=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_9=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_9=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_10=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_10=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_11=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_11=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
$m_12=Db::connect('shop')->table('eb_merchant_address')
|
||||
$m_12=Db::connect('shop')->table('eb_product_order_log')
|
||||
->where($where)
|
||||
->whereMonth('create_time', date('Y').'-01')
|
||||
->count();
|
||||
|
Loading…
x
Reference in New Issue
Block a user