Helius
2022-07-07 2e6277a8cf7a1d78b5151ac42f1aa785205cc907
src/main/resources/mapper/ColumnMapper.xml
@@ -38,4 +38,17 @@
        select * from t_column
        where parent_id=#{parentId} and company_id=#{companyId}
    </select>
    <select id="selectColumnInPage" resultType="com.xcong.farmer.cms.modules.system.entity.ColumnEntity">
        select
               *
        from t_column
        where company_id=#{companyId}
        <if test="record.ids != null">
            and id in
            <foreach collection="record.columnIds" item="item" open="(" close=")" separator=",">
                ${item}
            </foreach>
        </if>
    </select>
</mapper>