- 将小部门PV总和数值四舍五入到小数点后两位 - 使用floor函数确保精度处理的一致性 - 避免浮点数精度误差导致的数据展示问题
@@ -282,7 +282,7 @@ class SharedProsperityUserRepository extends BaseRepository
'stats' => [
'my_team_total_count' => $myTeamTotalCount,
'my_team_pv_sum' => $myTeamPvSum,
- 'small_department_pv_sum' => $smallDepartmentPvSum,
+ 'small_department_pv_sum' => floor($smallDepartmentPvSum * 100) / 100,
'big_department_pv_sum' => $bigDepartmentPvSum,
]
];