浏览代码

fix 课程排序

he2802 4 年之前
父节点
当前提交
779aeb2c6c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      zhongzheng-system/src/main/resources/mapper/modules/bank/QuestionBankMapper.xml

+ 1 - 0
zhongzheng-system/src/main/resources/mapper/modules/bank/QuestionBankMapper.xml

@@ -41,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="typeId != null and typeId != ''">
             AND qb.type_id = #{typeId}
         </if>
+        ORDER BY qb.sort DESC
     </select>
 
     <select id="queryRecommendList" parameterType="com.zhongzheng.modules.bank.bo.QuestionBankQueryBo"  resultMap="QuestionBankResult">