mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -108,7 +108,7 @@ public class AnsiSqlDialect implements Dialect {
|
||||
@Override
|
||||
public PreparedStatement psForPage(final Connection conn, final Query query) throws SQLException {
|
||||
Assert.notNull(query, "query must be not null !");
|
||||
if (StrUtil.hasBlank(query.getTableNames())) {
|
||||
if (ArrayUtil.hasBlank(query.getTableNames())) {
|
||||
throw new DbRuntimeException("Table name must be not empty !");
|
||||
}
|
||||
|
||||
|
@@ -338,7 +338,7 @@ public class SqlBuilder implements Builder<String> {
|
||||
* @return 自己
|
||||
*/
|
||||
public SqlBuilder from(String... tableNames) {
|
||||
if (ArrayUtil.isEmpty(tableNames) || StrUtil.hasBlank(tableNames)) {
|
||||
if (ArrayUtil.isEmpty(tableNames) || ArrayUtil.hasBlank(tableNames)) {
|
||||
throw new DbRuntimeException("Table name is blank in table names !");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user