소스 검색

fix:bug 开课学院导出分析详情excel时更改赋分系数数据类型

caozixuan 3 년 전
부모
커밋
d1a2121a5c

+ 4 - 8
teachcloud-report-business/src/main/java/com/qmth/teachcloud/report/business/bean/dto/excel/TAExamCourseExportDto.java

@@ -51,7 +51,7 @@ public class TAExamCourseExportDto implements Serializable {
     private String currentNotPassRateBefore;
     private String currentNotPassRateBefore;
 
 
     @ExcelProperty(name = "赋分系数", width = 30, index = 12)
     @ExcelProperty(name = "赋分系数", width = 30, index = 12)
-    private BigDecimal coefficient;
+    private String coefficient;
 
 
     @ExcelProperty(name = "总体平均分-赋分后", width = 50, index = 13)
     @ExcelProperty(name = "总体平均分-赋分后", width = 50, index = 13)
     private BigDecimal avgScoreAfter;
     private BigDecimal avgScoreAfter;
@@ -237,15 +237,11 @@ public class TAExamCourseExportDto implements Serializable {
         this.currentNotPassRateBefore = currentNotPassRateBefore;
         this.currentNotPassRateBefore = currentNotPassRateBefore;
     }
     }
 
 
-    public BigDecimal getCoefficient() {
-        if (Objects.nonNull(coefficient)) {
-            return coefficient.setScale(SystemConstant.FINAL_SCALE, BigDecimal.ROUND_HALF_UP);
-        } else {
-            return coefficient;
-        }
+    public String getCoefficient() {
+        return coefficient;
     }
     }
 
 
-    public void setCoefficient(BigDecimal coefficient) {
+    public void setCoefficient(String coefficient) {
         this.coefficient = coefficient;
         this.coefficient = coefficient;
     }
     }