|
|
@@ -54,11 +54,11 @@ class StatKindController extends BaseController
|
|
|
$num = $work->num ?? 0;
|
|
|
$flowerNum = $work->flowerNum ?? 0;
|
|
|
$staffName = $staffList[$staffId]['name'] ?? '';
|
|
|
- if (isset($makeStat[$staffId]['list'][$flowerNum]['num'])) {
|
|
|
- $makeStat[$staffId]['list'][$flowerNum]['num'] = bcadd($makeStat[$staffId]['list'][$flowerNum]['num'], $num);
|
|
|
+ if (isset($makeStat[$flowerNum][$staffId]['num'])) {
|
|
|
+ $makeStat[$flowerNum][$staffId]['num'] = bcadd($makeStat[$flowerNum][$staffId]['num'], $num);
|
|
|
} else {
|
|
|
- $makeStat[$staffId]['list'][$flowerNum]['num'] = $num;
|
|
|
- $makeStat[$staffId]['name'] = $staffName;
|
|
|
+ $makeStat[$flowerNum][$staffId]['num'] = $num;
|
|
|
+ $makeStat[$flowerNum][$staffId]['name'] = $staffName;
|
|
|
}
|
|
|
}
|
|
|
}
|