首页-添加资料中心列表
This commit is contained in:
+21
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user