“djh”
2025-10-30 4e05db79b1d981677b8a2664f252dfccf95ef6ce
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,  -- 第二级