Procházet zdrojové kódy

添加查询条件

小么熊🐻 před 3 roky
rodič
revize
83c5aa8e31

+ 2 - 0
jkt-service/src/main/resources/mapper/question/QuestionCollectionMapper.xml

@@ -21,6 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <where>
             <if test="userId != null "> and user_id = #{userId}</if>
             <if test="questionId != null "> and question_id = #{questionId}</if>
+            <if test="km != null "> and km = #{km}</if>
+            <if test="carType != null "> and car_type = #{carType}</if>
         </where>
     </select>
 

+ 2 - 0
jkt-service/src/main/resources/mapper/question/QuestionWrongMapper.xml

@@ -21,6 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <where>
             <if test="userId != null "> and user_id = #{userId}</if>
             <if test="questionId != null "> and question_id = #{questionId}</if>
+            <if test="km != null "> and km = #{km}</if>
+            <if test="carType != null "> and car_type = #{carType}</if>
         </where>
     </select>