1、修复场景获客数据统计问题

2、修复默认头像破图问题
3、修复健康分展示问题
4、修复获客场景_好友迁移编辑会跳到其他类目问题
This commit is contained in:
wong
2025-12-24 15:27:57 +08:00
parent 79fd133821
commit 302617cd81
12 changed files with 197 additions and 46 deletions

View File

@@ -405,8 +405,8 @@ class PlanSceneV1Controller extends BaseController
->field([
'task_id as taskId',
'COUNT(1) as acquiredCount',
"SUM(CASE WHEN status IN (1,2,3,4) THEN 1 ELSE 0 END) as addedCount",
"SUM(CASE WHEN status = 4 THEN 1 ELSE 0 END) as passCount",
"SUM(CASE WHEN status IN (1,2,3,4,5) THEN 1 ELSE 0 END) as addedCount",
"SUM(CASE WHEN status IN (4,5) THEN 1 ELSE 0 END) as passCount",
'MAX(updateTime) as lastUpdated'
])
->group('task_id')
@@ -511,7 +511,7 @@ class PlanSceneV1Controller extends BaseController
$query = Db::name('task_customer')->where(['task_id' => $task['id']]);
if ($type == 2){
$query = $query->where('status',4);
$query = $query->whereIn('status',[4,5]);
}
if (!empty($keyword)) {