摘要:
今天继续使用mybatis搭建我的网站,在sql这块有个问题在sql的mapper中如下方式<select id="countByCate" parameterType="int" resultType="int"> select count(*) from article where <if test="cate!=0"> cate = #{cate} and </if> deletetype=0; </select>接口方法 :int countByCate(in 阅读全文
posted @ 2013-02-23 22:09
jiang nan
阅读(14705)
评论(1)
推荐(1)

浙公网安备 33010602011771号