Althars123 3 年之前
父节点
当前提交
7a8d866e63
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      twzd-service/src/main/resources/mapper/qustion/QuestionInfoMapper.xml

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

@@ -337,7 +337,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
               ${sortName} as sort,
              question_type  FROM question_info WHERE  ${issueTypeParmName}  = #{issueValue} and subject =#{subject} and lice_car = 1
              <if test="issue != null  and issue != ''"> and issue like concat('%', #{issue}, '%')</if>
-             order by ${sortName} is null
+             order by  IFNULL(${sortName},'a')
     </select>
 
     <select id="updateSortById"  >