|
|
@@ -1281,11 +1281,11 @@ class StatisticService extends Service
|
|
|
})->all();
|
|
|
$return_item_list = [];
|
|
|
foreach ($month_employee_list as $v){
|
|
|
- $key = $v['item_id'];
|
|
|
+ $key = $v['item_id']. '_' . $v['month'];
|
|
|
if(!isset($return_item_list[$key])) $return_item_list[$key]['depreciation'] = 0;
|
|
|
$return_item_list[$key]['depreciation'] += $v['depreciation'];
|
|
|
}
|
|
|
-
|
|
|
+// dd($return_item_list);
|
|
|
return $return_item_list;
|
|
|
}
|
|
|
|