1、修复场景获客数据统计问题
2、修复默认头像破图问题 3、修复健康分展示问题 4、修复获客场景_好友迁移编辑会跳到其他类目问题
This commit is contained in:
@@ -308,7 +308,7 @@ class StatsController extends Controller
|
||||
->field("FROM_UNIXTIME(addTime, '%m-%d') AS d, COUNT(*) AS c")
|
||||
->where(['task_id' => $taskId])
|
||||
->where('addTime', 'between', [$startTimestamp, $endTimestamp])
|
||||
->whereIn('status', [1, 2, 4])
|
||||
->whereIn('status', [1, 2, 4, 5])
|
||||
->group('d')
|
||||
->select();
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ class StoreAccountController extends BaseController
|
||||
'phone' => $phone,
|
||||
'passwordMd5' => md5($password),
|
||||
'passwordLocal' => localEncrypt($password),
|
||||
'avatar' => 'https://img.icons8.com/color/512/circled-user-male-skin-type-7.png',
|
||||
'avatar' => '',
|
||||
'isAdmin' => 0,
|
||||
'companyId' => $companyId,
|
||||
'typeId' => 2, // 门店端固定为2
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -179,7 +179,7 @@ class GetWechatController extends BaseController
|
||||
'activityLevel' => $this->getActivityLevel($wechatId),
|
||||
'accountWeight' => $this->getAccountWeight($wechatId),
|
||||
'statistics' => $this->getStatistics($wechatId),
|
||||
'restrictions' => $this->getRestrict($wechatId),
|
||||
// 'restrictions' => $this->getRestrict($wechatId),
|
||||
];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user