REQ-3345: 分析查询不出待办的原因
This commit is contained in:
parent
20e8c32603
commit
7bc120d5b4
@ -224,8 +224,12 @@ public class TodoRangeQueryService {
|
|||||||
PendingMessagePageRequest request, Supplier<AnalysisPage<PendingRecordAdapter>> pageQuery) {
|
PendingMessagePageRequest request, Supplier<AnalysisPage<PendingRecordAdapter>> pageQuery) {
|
||||||
AnalysisInfo analysis = request.getA();
|
AnalysisInfo analysis = request.getA();
|
||||||
Object analyzeItem = analysisHelper.getAnalyzeBusiness(analysis);
|
Object analyzeItem = analysisHelper.getAnalyzeBusiness(analysis);
|
||||||
if (analyzeItem == null)
|
if (analyzeItem == null) {
|
||||||
analyzeItem = analysisHelper.getAnalyzeTodo(request, analysis);
|
Todo todo = analysisHelper.getAnalyzeTodo(request, analysis);
|
||||||
|
analyzeItem = todo;
|
||||||
|
if (todo != null && analysis.isTodoBusiness())
|
||||||
|
analyzeItem = todoBusinessDao.getBusinesses(todo).findBusiness(todo).orElse(null);
|
||||||
|
}
|
||||||
if (analyzeItem != null || analysis.isCollectSql())
|
if (analyzeItem != null || analysis.isCollectSql())
|
||||||
CollectSQLInterceptor.enableCollectSQL(new CollectSqlConfig(true));
|
CollectSQLInterceptor.enableCollectSQL(new CollectSqlConfig(true));
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -13,5 +13,6 @@ public class AnalysisInfo {
|
|||||||
private Long businessId;
|
private Long businessId;
|
||||||
private String bizCode;
|
private String bizCode;
|
||||||
private boolean collectSql;
|
private boolean collectSql;
|
||||||
|
private boolean todoBusiness;
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user