|
|
@@ -695,7 +695,10 @@ public class PrintServiceImpl implements PrintService {
|
|
|
String queryString = queryStringElement.getText();
|
|
|
queryString.replace("\"", "");
|
|
|
// 如果查询语句中含有WHERE_CONDITION参数,需将其替换掉
|
|
|
- if (queryString.contains("$P!{WHERE_CONDITION}") && !StringUtils.isEmpty(whereCondition)) {
|
|
|
+ if (queryString.contains("$P!{WHERE_CONDITION}")) {
|
|
|
+ if (StringUtils.isEmpty(whereCondition)) {
|
|
|
+ throw new IllegalArgumentException("未指定查询条件!");
|
|
|
+ }
|
|
|
queryString = queryString.replace("$P!{WHERE_CONDITION}", whereCondition);
|
|
|
}
|
|
|
queryString = replaceOtherParameters(queryString, otherParameters);
|