首页-添加资料中心列表

This commit is contained in:
liyawei
2022-11-14 13:47:45 +08:00
parent d51705e3bb
commit 402551005f
5 changed files with 60 additions and 0 deletions
@@ -53,4 +53,25 @@
group by fm.id
order by fm.data_upload_time desc
</select>
<select id="getFileMaterialIndex" resultType="com.adc.da.slrs.fileMaterialCenter.entity.FileMaterial">
SELECT
fm.id, fm.data_type, fm.data_title, fm.data_upload_time, fm.data_explain, fm.attach_file_id, fm.click_count,
fm.is_top, fm.del_flag, fm.is_show, zd.id as treeId, zt.name as treeName
FROM
file_material fm
LEFT JOIN zl_data zd ON zd.data_id=fm.id
LEFT JOIN zl_tree zt ON zd.id=zt.id
WHERE
fm.del_flag = '0'
<if test="treeIdList != null">
and zd.id in
<foreach collection="treeIdList" open="(" separator="," close=")" index="index" item="item">
#{item}
</foreach>
</if>
group by fm.id
order by fm.data_upload_time desc
limit 0,10
</select>
</mapper>