Explorar el Código

fixbug:修复客户导出时未携带初次拜访时间

yb hace 1 mes
padre
commit
3d396fa870
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/admin/service/consultant/CustomService.php

+ 2 - 1
app/admin/service/consultant/CustomService.php

@@ -1101,7 +1101,8 @@ class CustomService
                     'consultant_name' => $consultantKeys[$item->consultant_id]['name'] ?? '', //健康顾问
                     'team_name' => TeamService::getTeamName($teamKeys, $item->dept_id), //所属团队
                     'current_status' => $currentStatusText, //当前状态
-                    'visit_time' => $item->visit_time, //到访时间
+                    'visit_time' => $item->visit_time, //最后一次跟进时间
+                    'check_time' => $item->current_status > 1 ? $item->check_time : '', //首次到访时间
                     "age_range" => $ageRangeText, //年龄区间
                     "level" => $levelText, //客户等级
                     "region" => $regionText, //所在区域