标签:bat origin image 就是 where tis rod pre col
mapper.xml:
<!--查询套餐产品 --> <select id="queryComboProducts" resultType="com.runmin.bajie.entity.ProductCombo"> select id,name,price,specification,origin_price,image from product_combo <where> <if test="type!=null"> and type = ${type} </if> </where> </select>
dao:
/** * 查询组合套餐 * * @return */ List<ProductCombo> queryComboProducts(ProductCombo type);
也就是说如果直接传Integer type是不行的,必须放在对象里面。
标签:bat origin image 就是 where tis rod pre col
原文地址:http://www.cnblogs.com/XJJD/p/7988082.html