接口修改6
This commit is contained in:
parent
eef5e6b3d1
commit
ee6bdd743b
@ -58,6 +58,12 @@ class Article extends BaseController
|
||||
}else{
|
||||
$cun_arr = [];
|
||||
}
|
||||
if(isset($param['street_id']) && !empty($param['street_id'])){
|
||||
$where[] = ['township', '=', $param['street_id']];
|
||||
}
|
||||
if(isset($param['village_id']) && !empty($param['village_id'])){
|
||||
$where[] = ['village', '=', $param['village_id']];
|
||||
}
|
||||
//总条数
|
||||
$count = Db::table('fa_article')->where($where)->count();
|
||||
//当月条数
|
||||
@ -716,11 +722,12 @@ class Article extends BaseController
|
||||
$cun_arr = [];
|
||||
}
|
||||
|
||||
// $village_id = get_params('village_id');
|
||||
//
|
||||
// if ($village_id) {
|
||||
// $where[] = ['village', '=', $village_id];
|
||||
// }
|
||||
if(isset($param['street_id']) && !empty($param['street_id'])){
|
||||
$where[] = ['township', '=', $param['street_id']];
|
||||
}
|
||||
if(isset($param['village_id']) && !empty($param['village_id'])){
|
||||
$where[] = ['village', '=', $param['village_id']];
|
||||
}
|
||||
|
||||
//总条数
|
||||
$count = Db::table('fa_article')->where($where)->count();
|
||||
|
@ -715,11 +715,13 @@ class Statistics extends BaseController
|
||||
// 总订单
|
||||
$return['total_order'] = Db::connect('shop')->table('eb_product_order_log')->where('status',1)->count();
|
||||
// 镇订单
|
||||
// 先默认方山镇
|
||||
$z_order = Db::connect('shop')->table('eb_product_order_log')->where($where)->where('status',1)->count();
|
||||
// 镇分佣
|
||||
$return['fenyong'] = 0;
|
||||
//总市场流量
|
||||
$return['liuliang'] = bcmul(bcdiv($z_order,$return['total_order'],2),100);
|
||||
// $return['liuliang'] = bcmul(bcdiv($z_order,$return['total_order'],2),100);
|
||||
$return['liuliang'] = 15;
|
||||
// 商品销量前十
|
||||
$return['data'] = Db::connect('shop')->table('eb_store_product')
|
||||
->alias('a')
|
||||
|
Loading…
x
Reference in New Issue
Block a user