小么熊🐻 2 жил өмнө
parent
commit
9f9a914527

+ 2 - 2
zzjs-admin/src/test/java/com/miaxis/test/KtTest.java

@@ -96,7 +96,7 @@ public class KtTest {
                         questionInfoKt.setIdKt(Long.parseLong(id2));
                         questionInfoKt.setIdYdt(idYdt==null?null:Long.parseLong(idYdt));
                         questionInfoKt.setNumber(number==null?null:Long.parseLong(number));
-                        questionInfoKt.setQuestionType(Long.parseLong(type));
+                        questionInfoKt.setQuestionType(type==null?null:Long.parseLong(type));
                         questionInfoKt.setAnswer(answer);
                         questionInfoKt.setAnswerkeyword(answerkeyword);
                         questionInfoKt.setExplainGif(explainGif);
@@ -182,7 +182,7 @@ public class KtTest {
                         questionInfoKtGet.setIdKt(Long.parseLong(id2));
                         questionInfoKtGet.setIdYdt(idYdt==null?null:Long.parseLong(idYdt));
                         questionInfoKtGet.setNumber(number==null?null:Long.parseLong(number));
-                        questionInfoKtGet.setQuestionType(Long.parseLong(type));
+                        questionInfoKtGet.setQuestionType(type==null?null:Long.parseLong(type));
                         questionInfoKtGet.setAnswer(answer);
                         questionInfoKtGet.setAnswerkeyword(answerkeyword);
                         questionInfoKtGet.setExplainGif(explainGif);