资料中心查询去重
This commit is contained in:
+3
-1
@@ -18,7 +18,8 @@
|
|||||||
</update>
|
</update>
|
||||||
<select id="getFileMaterialPage" resultType="com.adc.da.slrs.fileMaterialCenter.entity.FileMaterial">
|
<select id="getFileMaterialPage" resultType="com.adc.da.slrs.fileMaterialCenter.entity.FileMaterial">
|
||||||
SELECT
|
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
|
FROM
|
||||||
file_material fm
|
file_material fm
|
||||||
LEFT JOIN zl_data zd ON zd.data_id=fm.id
|
LEFT JOIN zl_data zd ON zd.data_id=fm.id
|
||||||
@@ -49,6 +50,7 @@
|
|||||||
<if test="flieM.endDataUploadTime != null ">
|
<if test="flieM.endDataUploadTime != null ">
|
||||||
AND fm.data_upload_time <= #{flieM.endDataUploadTime}
|
AND fm.data_upload_time <= #{flieM.endDataUploadTime}
|
||||||
</if>
|
</if>
|
||||||
|
group by fm.id
|
||||||
order by fm.data_upload_time desc
|
order by fm.data_upload_time desc
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user