四级可视化分析1.1.2

This commit is contained in:
Cool 2024-04-10 17:57:43 +08:00
parent c875139dbc
commit b7952beb37
1 changed files with 3 additions and 3 deletions

View File

@ -251,7 +251,7 @@ public class CenterServiceImpl extends ServiceImpl<Cet_4Mapper, Cet_4> implement
allStudent = cet4_majorMapper.selectCount(Cet4_majorQW); allStudent = cet4_majorMapper.selectCount(Cet4_majorQW);
} }
List<Map<String, Object>> Cet_4eEntrydate = cet4Mapper.selectMaps(Cet_4QW); List<Map<String, Object>> Cet_4eEntrydate = cet4Mapper.selectMaps(Cet_4QW);
int pass = 0;
if (!Cet_4eEntrydate.isEmpty()) { if (!Cet_4eEntrydate.isEmpty()) {
for (Map<String, Object> map : Cet_4eEntrydate) { for (Map<String, Object> map : Cet_4eEntrydate) {
String str = (String) map.get("id"); String str = (String) map.get("id");
@ -284,7 +284,7 @@ public class CenterServiceImpl extends ServiceImpl<Cet_4Mapper, Cet_4> implement
//保留三位小数 //保留三位小数
DecimalFormat df = new DecimalFormat("#.###"); DecimalFormat df = new DecimalFormat("#.###");
String[] grade = {"大一", "大二", "大三", "大四"}; String[] grade = {"大一", "大二", "大三", "大四"};
JSONObject resultJson = new JSONObject(); JSONObject resultJson = new JSONObject(true);
//遍历批次分年级 //遍历批次分年级
for (int i = 0; i < n; i += 2) { for (int i = 0; i < n; i += 2) {
// 检查是否到达数组的最后一个元素 // 检查是否到达数组的最后一个元素