diff --git a/demo-orm-jdbctemplate/src/main/java/com/xkcoding/orm/jdbctemplate/dao/base/BaseDao.java b/demo-orm-jdbctemplate/src/main/java/com/xkcoding/orm/jdbctemplate/dao/base/BaseDao.java index 563e7bdaa..97560c541 100644 --- a/demo-orm-jdbctemplate/src/main/java/com/xkcoding/orm/jdbctemplate/dao/base/BaseDao.java +++ b/demo-orm-jdbctemplate/src/main/java/com/xkcoding/orm/jdbctemplate/dao/base/BaseDao.java @@ -82,7 +82,7 @@ protected Integer deleteById(P pk) { String tableName = getTableName(); String sql = StrUtil.format("DELETE FROM {table} where id = ?", Dict.create().set("table", tableName)); log.debug("【执行SQL】SQL:{}", sql); - log.debug("【执行SQL】参数:{}", JSONUtil.toJsonStr(pk)); + log.debug("【执行SQL】参数:{}", pk); return jdbcTemplate.update(sql, pk); } @@ -127,7 +127,7 @@ public T findOneById(P pk) { String sql = StrUtil.format("SELECT * FROM {table} where id = ?", Dict.create().set("table", tableName)); RowMapper rowMapper = new BeanPropertyRowMapper<>(clazz); log.debug("【执行SQL】SQL:{}", sql); - log.debug("【执行SQL】参数:{}", JSONUtil.toJsonStr(pk)); + log.debug("【执行SQL】参数:{}", pk); return jdbcTemplate.queryForObject(sql, new Object[]{pk}, rowMapper); }