heheng
2025-11-14 144e2cf02a6ecc5f417a91b52a9f1fc81a365621
multi-system/src/main/resources/mapper/system/CatalogueMapper.xml
@@ -117,6 +117,14 @@
        <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,  -- 第二级