sylive_1010_4
This commit is contained in:
@@ -86,7 +86,7 @@ class Activity extends BaseController
|
||||
$bizIds[] = intval($v2['bizId']);
|
||||
}
|
||||
}
|
||||
$skey = $this->myencryption->base64url_encode("id=" . $activityId);
|
||||
$skey = $this->myencryption->base64url_encode("a_id=" . $activityId);
|
||||
$url = http_host_com('home') . "/h5/market/sylive?skey=" . $skey;//活动连接
|
||||
$urlItem = http_host_com('home') . "/h5/market/sylive/act/item?skey=" . $skey;//商品连接
|
||||
$list[] = [
|
||||
@@ -604,19 +604,38 @@ class Activity extends BaseController
|
||||
* Created by: dengbw
|
||||
*/
|
||||
public function order_get()
|
||||
{
|
||||
$date = $this->orderList($this->inputs);
|
||||
$this->return_response_list($date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes:导出活动订单数据
|
||||
* Created on: 2022/10/10 15:26
|
||||
* Created by: dengbw
|
||||
*/
|
||||
public function order_export_get()
|
||||
{
|
||||
$this->inputs['page'] = 1;
|
||||
$this->inputs['limit'] = 10000;
|
||||
$date = $this->orderList($this->inputs);
|
||||
$this->return_response_list($date);
|
||||
}
|
||||
|
||||
private function orderList($params)
|
||||
{
|
||||
$this->load->model('market/Market_sylive_order_model', 'mdSyliveOrder');
|
||||
$this->load->model('market/Market_sylive_user_model', 'mdSyliveUser');
|
||||
$this->load->model('market/Market_sylive_activity_kpidata_model', 'mdSyliveActivityKpidata');
|
||||
$activityId = intval($this->input_param('activityId'));
|
||||
$page = $this->input_param('page');
|
||||
$limit = $this->input_param('limit');
|
||||
$item_title = $this->input_param('item_title');
|
||||
$uname = $this->input_param('uname');
|
||||
$mobile = $this->input_param('mobile');
|
||||
$status = $this->input_param('status');
|
||||
$sort = $this->input_param('sort');
|
||||
$order = $this->input_param('order');
|
||||
$activityId = intval($params['activityId']);
|
||||
$page = $params['page'];
|
||||
$limit = $params['limit'];
|
||||
$item_title = $params['item_title'];
|
||||
$uname = $params['uname'];
|
||||
$mobile = $params['mobile'];
|
||||
$status = $params['status'];
|
||||
$sort = $params['sort'];
|
||||
$order = $params['order'];
|
||||
!$page && $page = 1;
|
||||
!$limit && $limit = 10;
|
||||
$sort_order = 'id desc';
|
||||
@@ -636,7 +655,11 @@ class Activity extends BaseController
|
||||
$item_title && $where['item_title'] = $item_title;
|
||||
$uname && $where['uname'] = $uname;
|
||||
$mobile && $where['mobile'] = $mobile;
|
||||
$count = $this->mdSyliveOrder->count($where);
|
||||
if ($limit == 10000) {
|
||||
$count = 1;
|
||||
} else {
|
||||
$count = $this->mdSyliveOrder->count($where);
|
||||
}
|
||||
if ($count) {
|
||||
$res = $this->mdSyliveOrder->select($where, $sort_order, $page, $limit);
|
||||
foreach ($res as $v) {
|
||||
@@ -647,8 +670,11 @@ class Activity extends BaseController
|
||||
, 'statusName' => $this->mdSyliveOrder->statusAry($v['status']), 'createTime' => $v['createTime']];
|
||||
}
|
||||
}
|
||||
$date = ['list' => $list, 'count' => $count];
|
||||
$this->return_response_list($date);
|
||||
if ($limit == 10000) {
|
||||
return $list;
|
||||
} else {
|
||||
return ['list' => $list, 'count' => $count];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -658,7 +684,7 @@ class Activity extends BaseController
|
||||
* @param $params
|
||||
* @return string
|
||||
*/
|
||||
public function consultantGet($params)
|
||||
private function consultantGet($params)
|
||||
{
|
||||
$title = '';
|
||||
$re = $this->mdSyliveActivityKpidata->get(['a_id' => $params['a_id'], 'uid' => $params['uid'], 'kpi' => 'order']);
|
||||
|
||||
Reference in New Issue
Block a user