|
|
@@ -784,8 +784,12 @@
|
|
|
cw_prnl.report_no AS reportNo
|
|
|
from cw_project_report_archive a
|
|
|
left join cw_project_report_new_line cw_prnl on a.report_id = cw_prnl.report_id and cw_prnl.del_flag = '0'
|
|
|
- where cw_prnl.report_no like concat('%',#{reportType},'%') and a.number is not null
|
|
|
+ left join sys_user su on su.id = a.create_by_id and su.del_flag = '0'
|
|
|
+ where cw_prnl.report_no
|
|
|
+ like concat('%',#{reportType},'%')
|
|
|
+ and a.number is not null
|
|
|
and a.del_flag = '0'
|
|
|
+ and su.tenant_id != '10006'
|
|
|
ORDER BY
|
|
|
a.audit_date DESC
|
|
|
LIMIT 1;
|