浏览代码

标签列表

zhoutg 6 年之前
父节点
当前提交
091219c2f8

+ 1 - 1
icssman-service/src/main/java/com/diagbot/mapper/QuestionInfoMapper.java

@@ -41,6 +41,6 @@ public interface QuestionInfoMapper extends BaseMapper<QuestionInfo> {
      * @param questionPageVO
      * @return
      */
-    public IPage<QuestionPageDTO> getList(@Param("questionPageVO")QuestionPageVO questionPageVO);
+    public IPage<QuestionPageDTO> getList(QuestionPageVO questionPageVO);
 
 }

+ 4 - 4
icssman-service/src/main/resources/mapper/QuestionInfoMapper.xml

@@ -108,11 +108,11 @@
     <select id="getList" resultType="com.diagbot.dto.QuestionPageDTO">
         SELECT a.* FROM `icss_question_info` a WHERE
         a.is_deleted = 'N'
-        <if test="questionPageVO.type != null and questionPageVO.type != ''">
-            AND a.type = #{questionPageVO.type}
+        <if test="type != null and type != ''">
+            AND a.type = #{type}
         </if>
-        <if test="questionPageVO.tagName != null and questionPageVO.tagName != ''">
-            AND a.name like concat ('%', #{questionPageVO.tagName}, '%')
+        <if test="tagName != null and tagName != ''">
+            AND a.name like concat ('%', #{tagName}, '%')
         </if>
         order by a.gmt_create desc