This commit is contained in:
小鱼开发
2026-03-13 21:55:09 +08:00
parent e8113d2383
commit dc68ff13cd
2 changed files with 4 additions and 3 deletions
@@ -1256,6 +1256,7 @@ class Customers extends Wxapp
$where['b.status'] = $tab_id;
} else {
$where['b.status<>'] = 2;
$where['b.t_day'] = $t_day;
}
}
$group_id == 1 && $where['a.admin_id'] = $this->myuid;
+3 -3
View File
@@ -330,7 +330,7 @@ class User extends Wxapp
$where['un_lock'] = 1;
}
$unuse_count = $this->customers_model->count($where);
$where = ['biz_id' => $biz_id, 'cs_biz_id<>' => -1, 'if_defeat' => 1, 'status>' => -1];
$where = ['biz_id' => $biz_id, 'if_defeat' => 1, 'status>' => -1];
$biz_type == Biz_model::BIZ_TYPE_4s && $where['un_lock'] = 1;
$defeat_count = $this->customers_model->count($where);
$clues_count = $this->clues_model->count(['biz_id' => $biz_id, 'status' => 1, 'status2' => 1]);
@@ -368,8 +368,8 @@ class User extends Wxapp
['title' => '发票开具', 'icon' => 'icon-kaipiao1', 'total' => $kp_total, 'page' => '/pages/order/filterList/index2?type=1&title=发票开具'],
['title' => '车辆交付', 'icon' => 'icon-jiaofu', 'total' => $ck_total, 'page' => '/pages/order/filterList/index2?type=2&title=车辆交付'],
];
$where_v = ['a.biz_id' => $biz_id, 'a.cs_biz_id<>' => -1, 'a.status in(0,1)' => null, 'b.t_day' => date('Y-m-d')];
$where_c = ['biz_id' => $biz_id, 'cs_biz_id<>' => -1, 'status in(0,1)' => null];
$where_v = ['a.biz_id' => $biz_id, 'a.status in(0,1)' => null, 'b.t_day' => date('Y-m-d')];
$where_c = ['biz_id' => $biz_id, 'status in(0,1)' => null];
$group_id == 4 && $where_c['brand_id!='] = 3;
$biz_type == Biz_model::BIZ_TYPE_4s && $where_c['un_lock'] = 1;
if ($group_id == 1) {