market_order_export

market_groups_export
This commit is contained in:
dengbw
2023-05-05 10:29:08 +08:00
committed by lccsw
parent 068e016701
commit 34131c0526
4 changed files with 19 additions and 19 deletions
@@ -39,7 +39,7 @@ class groupsCustomer extends BaseController
public function export_get()
{
$this->inputs['page'] = 1;
$this->inputs['limit'] = 10000;
$this->inputs['limit'] = 20000;
$date = $this->dataSelect($this->inputs);
$this->return_response_list($date);
}
@@ -205,7 +205,7 @@ class groupsCustomer extends BaseController
}
}
}
if ($limit == 10000) {
if ($limit >= 10000) {
$count = $limit;
} else {
$count = $this->mdSyliveCustomer->count($where);
@@ -234,7 +234,7 @@ class groupsCustomer extends BaseController
'customerId' => $v['customerId'], 'name' => $v['name'], 'mobile' => $v['mobile']
, 'statusName' => $statusName, 'visitTagName' => $visitTagName, 'consultant' => $consultant['consultant']
];
if ($limit == 10000) {
if ($limit >= 10000) {
unset($list1['customerId']);
}
$list2 = [];
@@ -246,7 +246,7 @@ class groupsCustomer extends BaseController
$list[] = $item;
}
}
if ($limit == 10000) {
if ($limit >= 10000) {
$columns1 = ['姓名', '手机号', '状态', '回访标签', '顾问'];
$columns2 = [];
foreach ($levels as $k => $v) {
@@ -41,7 +41,7 @@ class groupsExchange extends BaseController
public function export_get()
{
$this->inputs['page'] = 1;
$this->inputs['limit'] = 10000;
$this->inputs['limit'] = 20000;
$date = $this->orderList($this->inputs);
$this->return_response_list($date);
}
@@ -295,7 +295,7 @@ class groupsExchange extends BaseController
}
}
}
if ($limit == 10000) {
if ($limit >= 10000) {
$count = $limit;
} else {
$count = $this->mdSyliveOrder->count($where);
@@ -322,7 +322,7 @@ class groupsExchange extends BaseController
, 'useStatusName' => $useStatusName, 'consultant' => $consultant['consultant']
, 'ifAddress' => $ifAddress, 'useStatus' => intval($useStatus)
];
if ($limit == 10000) {
if ($limit >= 10000) {
unset($list1['id']);
unset($list1['ifAddress']);
unset($list1['useStatus']);
@@ -335,7 +335,7 @@ class groupsExchange extends BaseController
}
$item = count($list2) ? array_merge($list1, $list2) : $list1;
$item['stores'] = $consultant['stores'];
if ($limit == 10000) {
if ($limit >= 10000) {
$address = $biz = '';
$jsondata = $v['jsondata'] ? json_decode($v['jsondata'], true) : [];
if ($jsondata['address']) {
@@ -350,7 +350,7 @@ class groupsExchange extends BaseController
$list[] = $item;
}
}
if ($limit == 10000) {
if ($limit >= 10000) {
$columns1 = ['订单号', '姓名', '手机号', '商品标题', '订单价格', '核销类型', '状态', '顾问'];
$columns2 = [];
foreach ($levels as $k => $v) {
@@ -39,7 +39,7 @@ class groupsOrder extends BaseController
public function export_get()
{
$this->inputs['page'] = 1;
$this->inputs['limit'] = 10000;
$this->inputs['limit'] = 20000;
$date = $this->orderList($this->inputs);
$this->return_response_list($date);
}
@@ -112,7 +112,7 @@ class groupsOrder extends BaseController
}
}
}
if ($limit == 10000) {
if ($limit >= 10000) {
$count = $limit;
} else {
$count = $this->mdSyliveOrder->count($where);
@@ -132,7 +132,7 @@ class groupsOrder extends BaseController
, 'createTime' => $v['createTime'], 'typeName' => $this->mdSyliveOrder->typeAry($v['type'])
, 'statusName' => $this->mdSyliveOrder->statusAry($v['status']), 'insiders' => $insiders, 'consultant' => $consultant['consultant']
];
if ($limit == 10000) {
if ($limit >= 10000) {
unset($list1['id']);
$list1['consultantMobile'] = $consultant['consultantMobile'];
} else {
@@ -144,7 +144,7 @@ class groupsOrder extends BaseController
}
$item = count($list2) ? array_merge($list1, $list2) : $list1;
$item['stores'] = $consultant['stores'];
if ($limit == 10000) {
if ($limit >= 10000) {
$address = $biz = '';
$jsondata = $v['jsondata'] ? json_decode($v['jsondata'], true) : [];
if ($jsondata['address']) {
@@ -159,7 +159,7 @@ class groupsOrder extends BaseController
$list[] = $item;
}
}
if ($limit == 10000) {
if ($limit >= 10000) {
$columns1 = ['订单号', '姓名', '手机号', '商品标题', '订单价格', '付款时间', '创建时间', '订单类型', '状态', '内部人员'
, '顾问', '顾问手机号'];
$columns2 = [];
+5 -5
View File
@@ -41,7 +41,7 @@ class groupsWin extends BaseController
public function export_get()
{
$this->inputs['page'] = 1;
$this->inputs['limit'] = 10000;
$this->inputs['limit'] = 20000;
$date = $this->orderList($this->inputs);
$this->return_response_list($date);
}
@@ -118,7 +118,7 @@ class groupsWin extends BaseController
}
}
}
if ($limit == 10000) {
if ($limit >= 10000) {
$count = $limit;
} else {
$count = $this->mdSyliveOrder->count($where);
@@ -143,7 +143,7 @@ class groupsWin extends BaseController
, 'totalPrice' => $v['totalPrice'], 'payTime' => $v['payTime'] != '0000-00-00 00:00:00' ? $v['payTime'] : ''
, 'winTime' => $v['winTime'] ? $v['winTime'] : '', 'winName' => $winName, 'consultant' => $consultant['consultant']
];
if ($limit == 10000) {
if ($limit >= 10000) {
unset($list1['id']);
} else {
unset($list1['sid']);
@@ -154,7 +154,7 @@ class groupsWin extends BaseController
}
$item = count($list2) ? array_merge($list1, $list2) : $list1;
$item['stores'] = $consultant['stores'];
if ($limit == 10000) {
if ($limit >= 10000) {
$address = $biz = '';
$jsondata = $v['jsondata'] ? json_decode($v['jsondata'], true) : [];
if ($jsondata['address']) {
@@ -169,7 +169,7 @@ class groupsWin extends BaseController
$list[] = $item;
}
}
if ($limit == 10000) {
if ($limit >= 10000) {
$columns1 = ['订单号', '姓名', '手机号', '商品标题', '订单价格', '付款时间', '中奖时间', '中奖类型', '顾问'];
$columns2 = [];
foreach ($levels as $k => $v) {