select * from sys_user where is_enabled ='${isEnabled}' and is_credentials_non_expired =-'${is_credentials_non_expired}'
1
如果id字段为字符串类型则需要加单引号:select * from table where id=‘${id}’。
您可以编写’
i
d
′
做为一个参数
,
这里
i
d
是参数的名称。例如
:
s
e
l
e
c
t
∗
f
r
o
m
t
a
b
l
e
w
h
e
r
e
i
d
=
′
{id}'做为一个参数,这里id是参数的名称。例如:select * from table where id='
id′做为一个参数,这里id是参数的名称。例如:select∗fromtablewhereid=′{id}'。
您可以编写#{sysUserCode} 做为一个系统变量,这里sysUserCode是当前登录人。例如:select * from table where create_by=‘#{sysUserCode}’。