|
@@ -1841,7 +1841,9 @@ public class EReportGenerateService {
|
1841
|
1841
|
gstunum = qgstulist.size();
|
1842
|
1842
|
EPaperStudentQuestion qgmaxstu = qgstulist.stream().max(Comparator.comparing(EPaperStudentQuestion::getStuscore)).get();
|
1843
|
1843
|
Double qgscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();
|
|
1844
|
+ qgscore = N_Utils.formatDouble(qgscore,1);
|
1844
|
1845
|
Double qgstuscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
|
|
1846
|
+ qgstuscore = N_Utils.formatDouble(qgstuscore,1);
|
1845
|
1847
|
Double qgavgscore = N_Utils.getDoubleDivideForAvg(qgstuscore, gstunum);//年级平均分
|
1846
|
1848
|
Double qgsrate = N_Utils.getDoubleDivideAndMulitiply(qgstuscore, qgscore);
|
1847
|
1849
|
tgscore = ExamUtil.add(tgscore, qgscore);
|
|
@@ -1855,7 +1857,9 @@ public class EReportGenerateService {
|
1855
|
1857
|
int cstunum = qcstulist.size();//班级下试题作答学生数量
|
1856
|
1858
|
EPaperStudentQuestion qcmaxstu = qcstulist.stream().max(Comparator.comparing(EPaperStudentQuestion::getStuscore)).get();
|
1857
|
1859
|
Double qcscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();
|
|
1860
|
+ qcscore = N_Utils.formatDouble(qcscore,1);
|
1858
|
1861
|
Double qcstuscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
|
|
1862
|
+ qcstuscore = N_Utils.formatDouble(qcstuscore,1);
|
1859
|
1863
|
Double qcavgscore = N_Utils.getDoubleDivideForAvg(qcstuscore, cstunum);
|
1860
|
1864
|
Double qcsrate = N_Utils.getDoubleDivideAndMulitiply(qcstuscore, qcscore);
|
1861
|
1865
|
|
|
@@ -2013,7 +2017,9 @@ public class EReportGenerateService {
|
2013
|
2017
|
pstq.setStudentid(entry.getKey());
|
2014
|
2018
|
|
2015
|
2019
|
Double qstuscore = stuqueslist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
|
|
2020
|
+ qstuscore = N_Utils.formatDouble(qstuscore,1);
|
2016
|
2021
|
Double qscore = stuqueslist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();
|
|
2022
|
+ qscore = N_Utils.formatDouble(qscore,1);
|
2017
|
2023
|
pstq.setQscore(qscore);
|
2018
|
2024
|
pstq.setStuscore(qstuscore);
|
2019
|
2025
|
pstq.setCtype(11);//母子题关系的均设置为复合题,不再进行选项区分
|
|
@@ -2039,7 +2045,9 @@ public class EReportGenerateService {
|
2039
|
2045
|
|
2040
|
2046
|
gstunum = qgstulist.size();
|
2041
|
2047
|
Double qgscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();
|
|
2048
|
+ qgscore = N_Utils.formatDouble(qgscore,1);
|
2042
|
2049
|
Double qgstuscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
|
|
2050
|
+ qgstuscore = N_Utils.formatDouble(qgstuscore,1);
|
2043
|
2051
|
EPaperStudentQuestion qgmaxscore = qgstulist.stream().max(Comparator.comparing(EPaperStudentQuestion::getStuscore)).get();
|
2044
|
2052
|
tgscore = ExamUtil.add(tgscore, qgscore);
|
2045
|
2053
|
tgstuscore = ExamUtil.add(tgstuscore, qgstuscore);
|
|
@@ -2050,7 +2058,9 @@ public class EReportGenerateService {
|
2050
|
2058
|
if(N_Utils.isListNotEmpty(qcstulist)){
|
2051
|
2059
|
int cstunum = qcstulist.size();//班级下试题作答学生数量
|
2052
|
2060
|
Double qcscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();
|
|
2061
|
+ qcscore = N_Utils.formatDouble(qcscore,1);
|
2053
|
2062
|
Double qcstuscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
|
|
2063
|
+ qcstuscore = N_Utils.formatDouble(qcstuscore,1);
|
2054
|
2064
|
Double qcavgscore = N_Utils.getDoubleDivideForAvg(qcstuscore,cstunum);
|
2055
|
2065
|
EPaperStudentQuestion maxscore = qcstulist.stream().max(Comparator.comparing(EPaperStudentQuestion::getStuscore)).get();
|
2056
|
2066
|
|
|
@@ -2188,6 +2198,7 @@ public class EReportGenerateService {
|
2188
|
2198
|
for (Map.Entry<Integer, List<EPaperStudentQuestion>> entry : stuquesmap.entrySet()) {
|
2189
|
2199
|
List<EPaperStudentQuestion> stuques = entry.getValue();
|
2190
|
2200
|
Double stuscore = stuques.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
|
|
2201
|
+ stuscore = N_Utils.formatDouble(stuscore,1);
|
2191
|
2202
|
EPaperStudentQuestion sqfirst = stuques.get(0);
|
2192
|
2203
|
EPaperStudentQuestion sq = new EPaperStudentQuestion();
|
2193
|
2204
|
sq.setStudentid(entry.getKey());
|
|
@@ -2216,6 +2227,7 @@ public class EReportGenerateService {
|
2216
|
2227
|
for (Map.Entry<Integer, List<ERPointStuScoreVo>> entry : pointstuscoremap.entrySet()) {
|
2217
|
2228
|
List<ERPointStuScoreVo> stuscorelist = entry.getValue();
|
2218
|
2229
|
Double stuscore = stuscorelist.stream().mapToDouble(ERPointStuScoreVo::getStuscore).sum();
|
|
2230
|
+ stuscore = N_Utils.formatDouble(stuscore,1);
|
2219
|
2231
|
ERPointStuScoreVo sscorevofirst = stuscorelist.get(0);
|
2220
|
2232
|
ERPointStuScoreVo sscorevo = new ERPointStuScoreVo();
|
2221
|
2233
|
sscorevo.setStudentid(sscorevofirst.getStudentid());
|
|
@@ -2225,6 +2237,7 @@ public class EReportGenerateService {
|
2225
|
2237
|
}
|
2226
|
2238
|
|
2227
|
2239
|
Double gstuscore = pointstuscorelist.stream().mapToDouble(ERPointStuScoreVo::getStuscore).sum();
|
|
2240
|
+ gstuscore = N_Utils.formatDouble(gstuscore,1);
|
2228
|
2241
|
Double gavgscore = N_Utils.getDoubleDivideForAvg(gstuscore, pointstuscorelist.size());
|
2229
|
2242
|
Double gsrate = N_Utils.getDoubleDivideAndMulitiply(gstuscore, pointscore * pointstuscorelist.size());
|
2230
|
2243
|
|
|
@@ -2233,6 +2246,7 @@ public class EReportGenerateService {
|
2233
|
2246
|
List<ERPointStuScoreVo> classpointstulist = pointstuscorelist.stream().filter(s -> s.getClassid().equals(classid)).collect(Collectors.toList());
|
2234
|
2247
|
if(N_Utils.isListNotEmpty(classpointstulist)){
|
2235
|
2248
|
Double cstuscore = classpointstulist.stream().mapToDouble(ERPointStuScoreVo::getStuscore).sum();
|
|
2249
|
+ cstuscore = N_Utils.formatDouble(cstuscore,1);
|
2236
|
2250
|
// Double cscore = classpointstulist.stream().mapToDouble(ERPointStuScoreVo::getScore).sum();
|
2237
|
2251
|
Double cavgscore = N_Utils.getDoubleDivideForAvg(cstuscore, classpointstulist.size());
|
2238
|
2252
|
Double csrate = N_Utils.getDoubleDivideAndMulitiply(cstuscore, pointscore * classpointstulist.size());
|
|
@@ -2343,7 +2357,9 @@ public class EReportGenerateService {
|
2343
|
2357
|
pstq.setStudentid(entry.getKey());
|
2344
|
2358
|
pstq.setClassid(pfirst.getClassid());
|
2345
|
2359
|
Double qstuscore = stuqueslist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
|
|
2360
|
+ qstuscore = N_Utils.formatDouble(qstuscore,1);
|
2346
|
2361
|
Double qscore = stuqueslist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();
|
|
2362
|
+ qscore = N_Utils.formatDouble(qscore,1);
|
2347
|
2363
|
pstq.setQscore(qscore);
|
2348
|
2364
|
pstq.setStuscore(qstuscore);
|
2349
|
2365
|
qgstulist.add(pstq);
|
|
@@ -2361,7 +2377,9 @@ public class EReportGenerateService {
|
2361
|
2377
|
}
|
2362
|
2378
|
|
2363
|
2379
|
Double tgstuscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();//难易度下学生得分
|
|
2380
|
+ tgstuscore = N_Utils.formatDouble(tgstuscore,1);
|
2364
|
2381
|
Double tgscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();//难易度下试题总分
|
|
2382
|
+ tgscore = N_Utils.formatDouble(tgscore,1);
|
2365
|
2383
|
Double tgsrate = N_Utils.getDoubleDivideAndMulitiply(tgstuscore, tgscore);//年级得分率
|
2366
|
2384
|
Double tgavgscore = N_Utils.getDoubleDivideForAvg(tgstuscore,qgstulist.size());
|
2367
|
2385
|
|
|
@@ -2371,7 +2389,9 @@ public class EReportGenerateService {
|
2371
|
2389
|
List<EPaperStudentQuestion> qcstulist = qgstulist.stream().filter(s -> s.getClassid().equals(classid)).collect(Collectors.toList());
|
2372
|
2390
|
if(N_Utils.isListNotEmpty(qcstulist)){
|
2373
|
2391
|
Double qcscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();
|
|
2392
|
+ qcscore = N_Utils.formatDouble(qcscore,1);
|
2374
|
2393
|
Double qcstuscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
|
|
2394
|
+ qcstuscore = N_Utils.formatDouble(qcstuscore,1);
|
2375
|
2395
|
Double qcavgscore = N_Utils.getDoubleDivideForAvg(qcstuscore,qcstulist.size());
|
2376
|
2396
|
|
2377
|
2397
|
ERclassComplexity erc = new ERclassComplexity();
|