代码拉取完成,页面将自动刷新
版本: 1.6.1
create.sql
create table test_data
(
id bigint not null primary key auto_increment,
name varchar(100) null
);
insert into test_data
values (1, '1');
insert into test_data
values (2, '2');
api脚本
var sql = """
select * from test_data
<where>
<if test='id != null'>
and id = #{id}
</if>
</where>
"""
return db.select(sql)
目前会解析为
select * from test_data WHERE
期望:
select * from test_data