mybatis returns Boolean type 0|1
Fields corresponding to the entity class
private Integer flag;//判断条件
private Boolean isChecked = false;//返回boolean类型
mybaits query SQL
select
case when flag = 1 then 1
else 0
end isChecked
from test
return to receive
1 = true
0 = false
{{o.name}}
{{m.name}}