|
|
|
@ -266,6 +266,11 @@ public class ReportServiceImpl implements ReportService { |
|
|
|
queryColumnSql.append("''"); |
|
|
|
} |
|
|
|
} |
|
|
|
//判断当前sql语句 where或者having条件后是否存在sql语句 |
|
|
|
if(startIndex < columnSql.length()){ |
|
|
|
//说明有些sql语句没有包含在 当前的sql之内 |
|
|
|
queryColumnSql.append(columnSql.substring(startIndex, columnSql.length())); |
|
|
|
} |
|
|
|
//判断是否替换过查询条件 |
|
|
|
if(startIndex == 0){ |
|
|
|
queryColumnSql = new StringBuilder(columnSql); |
|
|
|
|