fix
Helius
2022-07-11 a88bc9d86256d94dcb4580d43bd88b3f19e98c15
src/main/resources/mapper/NavigationBarMapper.xml
@@ -12,6 +12,9 @@
                <if test="record.parentId != null">
                    and a.parent_id = #{record.parentId}
                </if>
                <if test="record.companyId != null">
                    and a.company_id = #{record.companyId}
                </if>
            </if>
        </where>
        order by a.create_time desc
@@ -23,7 +26,9 @@
        FROM
        t_navigation_bar a
        where a.parent_id = #{parentId}
        order by a.create_time desc
          and a.company_id = #{belongId}
        order by a.order_num ASC, a.create_time desc
    </select>
    <select id="selectListByParentId" resultType="com.xcong.farmer.cms.modules.system.entity.NavigationBarEntity">
@@ -32,6 +37,7 @@
        FROM
            t_navigation_bar a
        where a.parent_id = #{parentId}
          and a.company_id = #{belongId}
        order by a.create_time desc
    </select>