| | |
| | | `number`, |
| | | `mess`, |
| | | `type`, |
| | | `file_name`, |
| | | `file_path`, |
| | | `is_file`, |
| | | `del_flag`, |
| | | `sort`, |
| | | `create_by`, |
| | | `create_time`, |
| | | `update_by`, |
| | |
| | | <if test="companyId!=null and companyId!=''"> |
| | | and company_id = #{companyId} |
| | | </if> |
| | | <if test="number!=null"> |
| | | and ( |
| | | CAST(SUBSTRING_INDEX(number, '.', 1) AS UNSIGNED) >= 4 |
| | | OR |
| | | number LIKE '4.%' |
| | | OR number = '4' |
| | | ) |
| | | </if> |
| | | ORDER BY |
| | | CAST(SUBSTRING_INDEX(number, '.', 1) AS UNSIGNED) ASC, |
| | | CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(number, '.', 2), '.', -1) AS UNSIGNED) ASC, -- 第二级 |
| | |
| | | ELSE '0' |
| | | END AS UNSIGNED |
| | | ) ASC |
| | | <if test="type!=1 and type!=null"> |
| | | ,sort asc |
| | | </if> |
| | | ,create_time asc |
| | | |
| | | </select> |
| | | <select id="selectCatalogueDataList" resultType="com.gkhy.exam.system.domain.vo.CatalogueDataVo"> |
| | | SELECT |