在select中,枚举类型不能用tostring方式转为字符串么? 返回
SqlSugar
老数据
6
2246
悬赏:0 飞吻
如题……在select中,枚举类型不能用tostring方式转为字符串么?


热忱回答(6)
-
fate stay night VIP0
2018/12/5上代码
0 回复 -
简单生活 VIP0
2018/12/5
0 回复 -
简单生活 VIP0
2018/12/5
结果是"0",我想要的是“Nothing”0 回复 -
fate stay night VIP0
2018/12/5因为你数据库存的是0 select只是处理select的数据 你用mapper处理tostring就可以了
0 回复 -
fate stay night VIP0
2018/12/5.select(xx).mapper((sql,cache)=>{
it.workstr=it.xxx.tostring();
})
0 回复 -
简单生活 VIP0
2018/12/6@fate stay night:好的谢谢
0 回复