|
|
@@ -513,6 +513,11 @@
|
|
|
<if test="categoryId != null">
|
|
|
AND tmgs.category_id = #{categoryId}::uuid
|
|
|
</if>
|
|
|
+ <if test="searchText != null">
|
|
|
+ AND (tmgs.sku_model like concat('%', my_ex.likequery(#{searchText}) , '%')
|
|
|
+ OR tmgs.sku_name like concat('%', my_ex.likequery(#{searchText}) , '%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<!-- 获取商品个数 -->
|
|
|
@@ -528,6 +533,11 @@
|
|
|
<if test="skuName != null">
|
|
|
AND tmgs.sku_name LIKE concat('%',my_ex.likequery(#{skuName}),'%')
|
|
|
</if>
|
|
|
+ <if test="searchText != null">
|
|
|
+ AND (tmgs.sku_model like concat('%', my_ex.likequery(#{searchText}) , '%')
|
|
|
+ OR tmgs.sku_name like concat('%', my_ex.likequery(#{searchText}) , '%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<!-- 获取商品(采购) -->
|