Commit e2a63f1e by 刘宇峰

添加搜索条件

1 parent ddb93adc
......@@ -121,7 +121,12 @@
and sg.goods_sku_code = #{goodsSkuCode}
</if>
<if test="goodsSkuName != null and goodsSkuName != ''">
and sg.goods_sku_name like concat('%',#{goodsSkuName},'%')
and (
sg.goods_code like CONCAT('%',#{goodsSkuName},'%')
or sg.goods_sku_code like CONCAT('%',#{goodsSkuName},'%')
or sg.goods_sku_name like CONCAT('%',#{goodsSkuName},'%')
or sg.brand_name like CONCAT('%',#{goodsSkuName},'%')
)
</if>
<if test="brandCode != null and brandCode != ''">
and sg.brand_code = #{brandCode}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!