资料中心查询去重

This commit is contained in:
liyawei
2022-10-18 09:42:06 +08:00
parent 2246c96ce0
commit 7fc50fb4e0
@@ -18,7 +18,8 @@
</update>
<select id="getFileMaterialPage" resultType="com.adc.da.slrs.fileMaterialCenter.entity.FileMaterial">
SELECT
fm.*,zd.id as treeId,zt.name as treeName
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
@@ -49,6 +50,7 @@
<if test="flieM.endDataUploadTime != null ">
AND fm.data_upload_time &lt;= #{flieM.endDataUploadTime}
</if>
group by fm.id
order by fm.data_upload_time desc
</select>
</mapper>