Updated null to 0

This commit is contained in:
Piyush
2025-02-10 20:27:17 +05:30
parent 6aa24d047e
commit bba7efe6db

View File

@@ -510,8 +510,8 @@ public class DashboardDao {
stats.put(GepafinConstant.REQUESTED_VS_APPROVED_AMOUNTS, requestedVsApprovedAmounts.stream().map(result -> { stats.put(GepafinConstant.REQUESTED_VS_APPROVED_AMOUNTS, requestedVsApprovedAmounts.stream().map(result -> {
Map<String, Object> data = new HashMap<>(); Map<String, Object> data = new HashMap<>();
data.put(GepafinConstant.MONTH, result[0]); data.put(GepafinConstant.MONTH, result[0]);
data.put(GepafinConstant.TOTAL_REQUESTED, result[1]); data.put(GepafinConstant.TOTAL_REQUESTED, result[1]!= null ? result[1] : 0L);
data.put(GepafinConstant.TOTAL_APPROVED, result[2]); data.put(GepafinConstant.TOTAL_APPROVED, result[2] != null ? result[2] : 0L);
return data; return data;
}).toList()); }).toList());
return stats; return stats;