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>