Browse Source

答案去空格

xushili 2 years ago
parent
commit
6330f2c39d

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+/.idea
+/logs

+ 3 - 1
exam-06173-api/src/main/java/com/gyee/exam/modules/paper/dto/ext/PaperQuAnswerExtDTO.java

@@ -25,5 +25,7 @@ public class PaperQuAnswerExtDTO extends PaperQuAnswerDTO {
     @ApiModelProperty(value = "答案图片", required=true)
     private String image;
 
-
+    public void setContent(String content) {
+        this.content = content.trim();
+    }
 }

+ 3 - 0
exam-06173-api/src/main/java/com/gyee/exam/modules/qu/dto/QuAnswerDTO.java

@@ -46,4 +46,7 @@ public class QuAnswerDTO implements Serializable {
     @ApiModelProperty(value = "部分给分", required=true)
     private BigDecimal pathScore;
 
+    public void setContent(String content) {
+        this.content = content.trim();
+    }
 }