order_818_2
This commit is contained in:
@@ -46,12 +46,15 @@ class order extends HD_Controller
|
||||
$month = date('n', strtotime($v . '-01'));
|
||||
$days[$v] = ['month' => $month, 'num' => 0];
|
||||
}
|
||||
$bizs = [1 => ['biz_name' => '宁德哪吒品牌店', 'ids' => '70', 'rowspan' => 1], 2 => ['biz_name' => '宁德哪吒代理店', 'city_id' => '350900']
|
||||
, 3 => ['biz_name' => '厦门哪吒订单中心', 'city_id' => '350200'], 4 => ['biz_name' => '泉州哪吒代理店', 'city_id' => '350500']];
|
||||
$bizs = [1 => ['biz_name' => '宁德哪吒品牌店', 'ids' => '70', 'rowspan' => 1], 2 => ['biz_name' => '宁德哪吒代理店', 'type' => 3, 'city_id' => '350900']
|
||||
, 3 => ['biz_name' => '厦门哪吒订单中心', 'city_id' => '350200'], 4 => ['biz_name' => '泉州哪吒订单中心', 'city_id' => '350500']
|
||||
, 5 => ['biz_name' => '福州哪吒订单中心', 'city_id' => '350100']];
|
||||
foreach ($bizs as $k => $v) {
|
||||
$str_ids = $v['ids'] ? $v['ids'] : '';
|
||||
if (!$str_ids) {
|
||||
$res = $this->mdBiz->select(['status' => 1, 'type' => 3, 'city_id' => $v['city_id']], 'id desc', 0, 0, 'id');
|
||||
$where_b = ['status' => 1, 'city_id' => $v['city_id']];
|
||||
$v['type'] && $where_b['type'] = $v['type'];
|
||||
$res = $this->mdBiz->select($where_b, 'id desc', 0, 0, 'id');
|
||||
if ($res) {
|
||||
$str_ids = implode(',', array_unique(array_column($res, 'id')));
|
||||
$str_ids = $str_ids ? $str_ids : '-1';
|
||||
|
||||
Reference in New Issue
Block a user