mybatis 注解中使用 in list 参数查询的写法
很多情况下,一个简单的固定参数查询,在mybatis中单独去写xml解决这个问题就有点小题大作了。替代方法是使用注解,直接在dao中写接口方法即可。本着精简的原则写一个示意给大家看
写道
/*** 订单总金额* @param billId* @return*/@Select("select sum(price) from s_bill_detail where bill_id = #{bil...
2016-12-20 11:39:29 ·
3958 阅读 ·
0 评论