“djh”
2025-07-16 dc5e9ce4e0fb964f037ef8c18b926745e5aedc97
multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml
@@ -89,6 +89,9 @@
        <if test="type!=null and type!=''">
            and ci.type like concat('%',#{type},'%')
        </if>
        <if test="templateName!=null and templateName!=''">
            and ci.`template_name` like concat('%',#{templateName},'%')
        </if>
        ORDER BY
        CAST(SUBSTRING_INDEX(ci.chapter, '.', 1) AS UNSIGNED) ASC,
        CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(ci.chapter, '.', 2), '.', -1) AS UNSIGNED) ASC,  -- 第二级