mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
fix code
This commit is contained in:
@@ -25,6 +25,7 @@ import cn.hutool.v7.db.Entity;
|
||||
import cn.hutool.v7.db.dialect.DialectName;
|
||||
import cn.hutool.v7.db.dialect.impl.OracleDialect;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
@@ -39,6 +40,7 @@ import java.util.List;
|
||||
* @author Looly
|
||||
*/
|
||||
public class SqlBuilder implements Builder<String> {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
// --------------------------------------------------------------- Static methods start
|
||||
@@ -191,7 +193,7 @@ public class SqlBuilder implements Builder<String> {
|
||||
|
||||
entity.forEach((field, value) -> {
|
||||
if (StrUtil.isNotBlank(field)) {
|
||||
if (fieldsPart.length() > 0) {
|
||||
if (!fieldsPart.isEmpty()) {
|
||||
// 非第一个参数,追加逗号
|
||||
fieldsPart.append(", ");
|
||||
placeHolder.append(", ");
|
||||
|
Reference in New Issue
Block a user