update 标协会员项目其他资料

This commit is contained in:
lijiarao
2024-02-29 17:54:04 +08:00
parent ea559a0e08
commit d6a5729e38
@@ -27,22 +27,22 @@
<select id="queryPageList" resultMap="BaseResultMap">
SELECT
pwgdf.id,
pwgdf.project_id,
pwgdf.file_id,
tmpf.id,
tmpf.project_id,
tmpf.file_id,
su.realname as create_by,
pwgdf.create_time,
pwgdf.update_by,
pwgdf.update_time,
tmpf.create_time,
tmpf.update_by,
tmpf.update_time,
osf.file_name AS fileName,
(SELECT count(*) FROM pay_file_download_record where file_id = pwgdf.file_id) AS downloadCount
FROM pay_working_group_data_file pwgdf
LEFT JOIN oss_file osf ON pwgdf.file_id = osf.id
left join sys_user su on(pwgdf.create_by=su.username)
(SELECT count(*) FROM pay_file_download_record where file_id = tmpf.file_id) AS downloadCount
FROM tb_member_project_file tmpf
LEFT JOIN oss_file osf ON tmpf.file_id = osf.id
left join sys_user su on(tmpf.create_by=su.username)
where project_id = #{tbMemberProjectFile.projectId}
<if test="tbMemberProjectFile.fileName != null and tbMemberProjectFile.fileName != ''">
AND osf.file_name LIKE CONCAT('%',CONCAT(#{tbMemberProjectFile.fileName},'%'))
</if>
ORDER BY pwgdf.create_time desc
ORDER BY tmpf.create_time desc
</select>
</mapper>