Browse Source

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

tags/正式版本
雍文秀 2 years ago
parent
commit
785c43ea6b
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      sstudy/src/main/resources/mapper/question/QuestionMapper.xml

+ 5
- 2
sstudy/src/main/resources/mapper/question/QuestionMapper.xml View File

176
         <if test="question.directorid!=null and question.directorid!='0'.toString() and question.directorid!=''">
176
         <if test="question.directorid!=null and question.directorid!='0'.toString() and question.directorid!=''">
177
             and qd.directorid=#{question.directorid}
177
             and qd.directorid=#{question.directorid}
178
         </if>
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
         </if>
184
         </if>
182
         <if test="question.belong!=null and question.belong!=0">
185
         <if test="question.belong!=null and question.belong!=0">
183
             <if test="question.belong==4 or question.belong==6">
186
             <if test="question.belong==4 or question.belong==6">

Loading…
Cancel
Save