wangliang 4 лет назад
Родитель
Сommit
401b2186c6

+ 6 - 6
teachcloud-report-business/src/main/resources/mapper/TAExamCourseMapper.xml

@@ -11,21 +11,21 @@
             taec.teach_college_name as teachCollegeName,
             taec.inspect_college_count as inspectCollegeCount,
             taec.reality_count as realityCount ,
-            taec.current_reality_rate as currentRealityRate,
+            round(taec.current_reality_rate * 100,1) as currentRealityRate,
             taec.current_total_count as currentTotalCount,
             taec.current_reality_count as currentRealityCount,
-            taec.past_reality_rate as pastRealityRate,
+            round(taec.past_reality_rate * 100,1) as pastRealityRate,
             taec.past_total_count as pastTotalCount,
             taec.past_reality_count as pastRealityCount,
             taec.absent_count as absentCount,
             taec.paper_avg_score as avgScoreBefore,
-            (1 - taec.paper_pass_rate) as notPassRateBefore,
+            round((1 - taec.paper_pass_rate) * 100,1) as notPassRateBefore,
             taec.paper_current_avg_score as currentAvgScoreBefore,
-            (1 - taec.paper_current_pass_rate) as currentNotPassRateBefore,
+            round((1 - taec.paper_current_pass_rate) * 100,1) as currentNotPassRateBefore,
             taec.avg_score as avgScoreAfter,
-            (1 - taec.pass_rate) as notPassRateAfter,
+            round((1 - taec.pass_rate) * 100,1) as notPassRateAfter,
             taec.current_avg_score as currentAvgScoreAfter,
-            (1 - taec.current_pass_rate) as currentNotPassRateAfter,
+            round((1 - taec.current_pass_rate) * 100,1) as currentNotPassRateAfter,
             taec.coefficient,
             (taec.reality_count - taec.pass_count) as notPassCountBefore,
             (taec.current_reality_count - taec.current_pass_count) as currentNotPassCountBefore,