修改字段

This commit is contained in:
2025-06-09 10:32:37 +08:00
parent ce5e217c0c
commit cc6bba96f6
2 changed files with 11 additions and 1 deletions

View File

@@ -28,9 +28,17 @@
s.project_id AS projectId,
s.remark,
s.type,
p.project_name AS projectName
p.project_name AS projectName,
d.latest_create_time AS lastUpdateTime
FROM oa_report_summary s
LEFT JOIN sys_oa_project p ON s.project_id = p.project_id
LEFT JOIN (
SELECT
summary_id,
create_time AS latest_create_time,
ROW_NUMBER() OVER (PARTITION BY summary_id ORDER BY create_time DESC) AS rn
FROM oa_report_detail
) d ON s.summary_id = d.summary_id AND d.rn = 1
<where>
<if test="bo.reportTitle != null and bo.reportTitle != ''">
AND s.report_title LIKE CONCAT('%', #{bo.reportTitle}, '%')