一 概述
PrintCouponEntity printCouponEntity = printCouponMapper.selectOne(new QueryWrapper<PrintCouponEntity>().select("name").eq("id", 6));
只是查询字段name
这段代码演示了如何使用MyBatis的QueryWrapper查询PrintCouponEntity中的name字段,通过设置eq('id', 6)条件来定位特定记录。
PrintCouponEntity printCouponEntity = printCouponMapper.selectOne(new QueryWrapper<PrintCouponEntity>().select("name").eq("id", 6));
只是查询字段name
1589
4万+

被折叠的 条评论
为什么被折叠?