소스 검색

处理空值

zhoutg 6 년 전
부모
커밋
2461845411
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      icssman-service/src/main/resources/mapper/QuestionInfoMapper.xml

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

@@ -128,7 +128,7 @@
 
     <select id="getList" resultType="com.diagbot.dto.QuestionPageDTO">
         SELECT a.* FROM `icss_question_info` a WHERE a.is_deleted = 'N'
-        <if test="type != null">
+        <if test="type != null and type != ''">
             AND a.type = #{type}
         </if>
         <if test="tagName != null and tagName != ''">