Bläddra i källkod

Merge remote-tracking branch 'origin/master' into ywx

tags/正式版本
雍文秀 2 år sedan
förälder
incheckning
785c43ea6b
1 ändrade filer med 5 tillägg och 2 borttagningar
  1. 5
    2
      sstudy/src/main/resources/mapper/question/QuestionMapper.xml

+ 5
- 2
sstudy/src/main/resources/mapper/question/QuestionMapper.xml Visa fil

@@ -176,8 +176,11 @@
176 176
         <if test="question.directorid!=null and question.directorid!='0'.toString() and question.directorid!=''">
177 177
             and qd.directorid=#{question.directorid}
178 178
         </if>
179
-        <if test="question.qtypeid!=null and question.qtypeid!='0'.toString() and question.qtypeid!=''">
180
-            and q.qtypeid=#{question.qtypeid}
179
+        <if test="question.hashear!=null and question.hashear == 1">
180
+            and q.hashear=1
181
+        </if>
182
+        <if test="question.hashear!=1 and question.qtypeid!=null and question.qtypeid!='0'.toString() and question.qtypeid!=''">
183
+            and q.hashear=0 and q.qtypeid=#{question.qtypeid}
181 184
         </if>
182 185
         <if test="question.belong!=null and question.belong!=0">
183 186
             <if test="question.belong==4 or question.belong==6">

Laddar…
Avbryt
Spara