Closed xiaoxfan closed 4 years ago
已解决 避免转义就行 以下两种方式都行
paramMap["statusList"] = `(1,2,3)`
{% if statusList != nil %}
and i.status in {{ statusList | safe }}
{% endif %}
paramMap["statusList"] = `1,2,3`
{% if statusList != nil %}
and i.status in ({{ statusList | safe }})
{% endif %}
如题,比如status字段有很多状态(0,1,3,4,5...) 如何使用sql模版进行查询 select * from tableA where statud in (1,2,3) 我用下面两种方式都不行 1.
2.