|
@@ -226,7 +226,7 @@ public class ReportProjectService extends ServiceImpl<ReportProjectMapper, Repor
|
|
|
throw new XiaoShiException("未找到配置");
|
|
|
}
|
|
|
}
|
|
|
- tableName = "(select p.id as id,p.create_id as createId,p.tenant_id as tenantId,p.head_id as headId,asps.scenario_id as scenarioId,aspm.matter_id as matterId,p.create_time as createTime ,entrust_id as entrustId,entrust_type as entrustType,rp.report_type as reportType from report as rp left join project as p on rp.project_id =p.id ";
|
|
|
+ tableName = "(select p.id as id,p.create_id as createId,p.tenant_id as tenantId,p.head_id as headId,asps.scenario_id as scenarioId,aspm.matter_id as matterId,p.create_time as createTime ,entrust_id as entrustId,entrust_type as entrustType,rp.report_type as reportType,aspe.event_id as eventId from report as rp left join project as p on rp.project_id =p.id ";
|
|
|
tableName += "left join (select * from asso_project_event where scenario_id is not null ) as asps on p.id = asps.project_id " +
|
|
|
"left join (select * from asso_project_event where event_id is not null ) as aspe on p.id = aspe.project_id " +
|
|
|
"left join (select * from asso_project_event where matter_id is not null ) as aspm on p.id = aspm.project_id) as t";
|