更新 'app/Http/Controllers/ChartController.php'

dev
gitea 2022-11-14 11:19:40 +08:00
parent 4389a710b9
commit 567ce7a3e8
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ class ChartController extends Controller
$riceShrimpIndustry = $riceShrimpIndustries[$key] ?? null; $riceShrimpIndustry = $riceShrimpIndustries[$key] ?? null;
if ($riceShrimpIndustry) { if ($riceShrimpIndustry) {
$areas[] = $riceShrimpIndustry->area; $areas[] = bcdiv($riceShrimpIndustry->area, 1000, 2);
$productOutputs[] = bcdiv($riceShrimpIndustry->product_output, 2000, 2); $productOutputs[] = bcdiv($riceShrimpIndustry->product_output, 2000, 2);
$productValues[] = bcdiv($riceShrimpIndustry->product_value, 10000, 2);; $productValues[] = bcdiv($riceShrimpIndustry->product_value, 10000, 2);;
} else { } else {
@ -105,7 +105,7 @@ class ChartController extends Controller
'data' => $productValues, 'data' => $productValues,
], ],
[ [
'name' => '面积(亩)', 'name' => '面积(亩)',
'data' => $areas, 'data' => $areas,
], ],
[ [