|
@@ -108,6 +108,9 @@
|
|
|
<if test="categoryId != null and categoryId != ''">
|
|
<if test="categoryId != null and categoryId != ''">
|
|
|
AND tmgs.category_id = #{categoryId}::UUID
|
|
AND tmgs.category_id = #{categoryId}::UUID
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="brandId != null and brandId != ''">
|
|
|
|
|
+ AND tmgs.brand_id = #{brandId}::UUID
|
|
|
|
|
+ </if>
|
|
|
<if test="searchText != null">
|
|
<if test="searchText != null">
|
|
|
AND (tmgs.sku_code like concat('%', my_ex.likequery(#{searchText}) , '%')
|
|
AND (tmgs.sku_code like concat('%', my_ex.likequery(#{searchText}) , '%')
|
|
|
OR tmgs.sku_name like concat('%', my_ex.likequery(#{searchText}) , '%')
|
|
OR tmgs.sku_name like concat('%', my_ex.likequery(#{searchText}) , '%')
|