|
|
@@ -1175,7 +1175,7 @@ class StatisticService extends Service
|
|
|
|
|
|
// 如果不是最后一条
|
|
|
$key = $item['employee_id'] . '_' . $item['month'];
|
|
|
- if(!isset($employee_count[$key])) $item['allocated_salary'] = 0;
|
|
|
+ if(!isset($all_salary[$key])) $item['allocated_salary'] = 0;
|
|
|
else {
|
|
|
if (--$employee_count[$key] > 0) {
|
|
|
$all_salary[$key] -= $item['allocated_salary'];
|