admin_channel_1208

This commit is contained in:
dengbw
2021-12-08 14:44:34 +08:00
parent e795d6fe4e
commit 8aea70857d
+4 -4
View File
@@ -120,10 +120,10 @@ class Channel extends HD_Controller
$county = $Areas[$value['county_id']][0];
$setValue['biz_name'] = $value['biz_name'];
$setValue['county_name'] = $county ? $county['city_name'] . '-' . $county['county_name'] : '';
$setValue['wjkhs'] = $this->mdCustomers->count(['biz_id' => $value['id'], 'status' => 0]);
$setValue['dtkhs'] = $this->mdCustomers->count(['biz_id' => $value['id'], 'dt_time<>' => '0000-00-00 00:00:00']);
$setValue['ddkhs'] = $this->mdCustomers->count(['biz_id' => $value['id'], 'status' => 2]);
$setValue['zbkhs'] = $this->mdCustomers->count(['biz_id' => $value['id'], 'status' => 3]);
$setValue['wjkhs'] = $this->mdCustomers->count(['biz_id' => $value['id'], 'status' => 0, 'brand_id<>' => 3, 'biz_id<>' => 1]);
$setValue['dtkhs'] = $this->mdCustomers->count(['biz_id' => $value['id'], 'dt_time<>' => '0000-00-00 00:00:00', 'brand_id<>' => 3, 'biz_id<>' => 1]);
$setValue['ddkhs'] = $this->mdCustomers->count(['biz_id' => $value['id'], 'status' => 2, 'brand_id<>' => 3, 'biz_id<>' => 1]);
$setValue['zbkhs'] = $this->mdCustomers->count(['biz_id' => $value['id'], 'status' => 3, 'brand_id<>' => 3, 'biz_id<>' => 1]);
$setValue['orders'] = $this->mdOrders->count(['biz_id' => $value['id'], 'status>=' => 0, 'brand_id<>' => 3, 'biz_id<>' => 1]);
$setValue['days'] = round((time() - $value['c_time']) / 3600 / 24) . '天';
if (!$params['uid']) {