瀏覽代碼

优化代码

java110 2 年之前
父節點
當前提交
298969a61b

+ 3 - 0
java110-db/src/main/resources/mapper/user/UserQuestionAnswerV1ServiceDaoImplMapper.xml

@@ -173,6 +173,9 @@
             <if test="qaType != null and qaType != ''">
             <if test="qaType != null and qaType != ''">
                 and qa.qa_type = #{qaType}
                 and qa.qa_type = #{qaType}
             </if>
             </if>
+        <if test="userQaId != null and userQaId != ''">
+            and qa.user_qa_id = #{userQaId}
+        </if>
             and qa.state = 'C'
             and qa.state = 'C'
             and qa.start_time &lt; NOW()
             and qa.start_time &lt; NOW()
             and qa.end_time &gt; NOW()
             and qa.end_time &gt; NOW()