mybatis 模糊查询

select id="findProductByVender" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from
t_full_product_${epcCode}
<if test="oem!=null">
where
oem=#{oem,jdbcType=VARCHAR}
</if>
<if test="standName!=null">
where
stand_name like CONCAT('%',#{standName},'%')
</if>
order by create_time desc
</select>
posted @ 2018-11-27 11:24  快速奔跑的大米粒  阅读(175)  评论(0编辑  收藏  举报