大屏页面初始化

This commit is contained in:
2026-03-03 09:51:26 +08:00
parent 42b9bead15
commit ab8928b7e3
2 changed files with 14 additions and 6 deletions

View File

@@ -60,13 +60,14 @@ public class erpJobs {
.setScale(2, RoundingMode.HALF_UP);
boolean isOverBudget = expenseAmount.compareTo(BUDGET_AMOUNT) > 0;
String budgetStatusName = isOverBudget ? "" : "正常";
String budgetStatusName = isOverBudget ? "" : "正常";
BigDecimal overBudgetAmount = isOverBudget ? expenseAmount.subtract(BUDGET_AMOUNT) : BigDecimal.ZERO;
String[] indexList = {
"ERP_001",
"ERP_002",
"ERP_003",
"ERP_004",
"ERP_005",
"ERP_006",
};
for (String index : indexList) {
@@ -85,6 +86,9 @@ public class erpJobs {
if (index.equals("ERP_004")) {
indexInfo.setValue(expenseIncomeRatio);
}
if (index.equals("ERP_005")) {
indexInfo.setValue(netProfit);
}
if (index.equals("ERP_006")) {
indexInfo.setModule(budgetStatusName);
indexInfo.setValue(overBudgetAmount);
@@ -94,7 +98,5 @@ public class erpJobs {
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
}