接口修改9

This commit is contained in:
mkm 2023-02-14 20:32:53 +08:00
parent 707f0eaf31
commit c4a1473394

View File

@ -999,51 +999,51 @@ class Statistics extends BaseController
$where[] = ['village_id', '=', $village_id]; $where[] = ['village_id', '=', $village_id];
} }
$where[] = ['mer_type_id', '=', 6]; $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) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_2=Db::connect('shop')->table('eb_merchant_address') $m_2=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_3=Db::connect('shop')->table('eb_merchant_address') $m_3=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_4=Db::connect('shop')->table('eb_merchant_address') $m_4=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_5=Db::connect('shop')->table('eb_merchant_address') $m_5=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_6=Db::connect('shop')->table('eb_merchant_address') $m_6=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_7=Db::connect('shop')->table('eb_merchant_address') $m_7=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_8=Db::connect('shop')->table('eb_merchant_address') $m_8=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_9=Db::connect('shop')->table('eb_merchant_address') $m_9=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_10=Db::connect('shop')->table('eb_merchant_address') $m_10=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_11=Db::connect('shop')->table('eb_merchant_address') $m_11=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_12=Db::connect('shop')->table('eb_merchant_address') $m_12=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
@ -1070,7 +1070,7 @@ class Statistics extends BaseController
$where[] = ['village_id', '=', $village_id]; $where[] = ['village_id', '=', $village_id];
} }
$where[] = ['mer_type_id', '=', 7]; $where[] = ['mer_type_id', '=', 7];
$m=Db::connect('shop')->table('eb_merchant_address') $m=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->count(); ->count();
$return = [ $return = [
@ -1167,51 +1167,51 @@ class Statistics extends BaseController
$where[] = ['village_id', '=', $village_id]; $where[] = ['village_id', '=', $village_id];
} }
$where[] = ['mer_type_id', 'in', [6,7]]; $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) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_2=Db::connect('shop')->table('eb_merchant_address') $m_2=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_3=Db::connect('shop')->table('eb_merchant_address') $m_3=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_4=Db::connect('shop')->table('eb_merchant_address') $m_4=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_5=Db::connect('shop')->table('eb_merchant_address') $m_5=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_6=Db::connect('shop')->table('eb_merchant_address') $m_6=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_7=Db::connect('shop')->table('eb_merchant_address') $m_7=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_8=Db::connect('shop')->table('eb_merchant_address') $m_8=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_9=Db::connect('shop')->table('eb_merchant_address') $m_9=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_10=Db::connect('shop')->table('eb_merchant_address') $m_10=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_11=Db::connect('shop')->table('eb_merchant_address') $m_11=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();
$m_12=Db::connect('shop')->table('eb_merchant_address') $m_12=Db::connect('shop')->table('eb_product_order_log')
->where($where) ->where($where)
->whereMonth('create_time', date('Y').'-01') ->whereMonth('create_time', date('Y').'-01')
->count(); ->count();