|
@@ -164,8 +164,10 @@
|
|
|
( SELECT @i := #{total} ) AS itable
|
|
( SELECT @i := #{total} ) AS itable
|
|
|
WHERE
|
|
WHERE
|
|
|
goods_name LIKE concat('%',#{name},'%')
|
|
goods_name LIKE concat('%',#{name},'%')
|
|
|
|
|
+ GROUP BY goods_cover
|
|
|
</select>
|
|
</select>
|
|
|
<select id="goodsPictureList" resultType="com.sqx.modules.goods.entity.Goods">
|
|
<select id="goodsPictureList" resultType="com.sqx.modules.goods.entity.Goods">
|
|
|
|
|
+ SELECT a.* FROM (
|
|
|
SELECT
|
|
SELECT
|
|
|
( @i := @i + 1 ) AS id,
|
|
( @i := @i + 1 ) AS id,
|
|
|
goods_name,
|
|
goods_name,
|
|
@@ -177,8 +179,11 @@
|
|
|
WHERE
|
|
WHERE
|
|
|
goods_name LIKE concat('%',#{name},'%')
|
|
goods_name LIKE concat('%',#{name},'%')
|
|
|
AND ( LENGTH( goods_picture ) - LENGTH( REPLACE ( goods_picture, ',', '' ) ) + 1 ) >= n
|
|
AND ( LENGTH( goods_picture ) - LENGTH( REPLACE ( goods_picture, ',', '' ) ) + 1 ) >= n
|
|
|
|
|
+ ) a
|
|
|
|
|
+ GROUP BY a.goods_picture
|
|
|
</select>
|
|
</select>
|
|
|
<select id="goodsParticularsPictureList" resultType="com.sqx.modules.goods.entity.Goods">
|
|
<select id="goodsParticularsPictureList" resultType="com.sqx.modules.goods.entity.Goods">
|
|
|
|
|
+ SELECT a.* FROM (
|
|
|
SELECT
|
|
SELECT
|
|
|
( @i := @i + 1 ) AS id,
|
|
( @i := @i + 1 ) AS id,
|
|
|
goods_name,
|
|
goods_name,
|
|
@@ -190,7 +195,8 @@
|
|
|
WHERE
|
|
WHERE
|
|
|
goods_name LIKE concat('%',#{name},'%')
|
|
goods_name LIKE concat('%',#{name},'%')
|
|
|
AND ( LENGTH( goods_particulars_picture ) - LENGTH( REPLACE ( goods_particulars_picture, ',', '' ) ) + 1 ) >= n
|
|
AND ( LENGTH( goods_particulars_picture ) - LENGTH( REPLACE ( goods_particulars_picture, ',', '' ) ) + 1 ) >= n
|
|
|
-
|
|
|
|
|
|
|
+ ) a
|
|
|
|
|
+ GROUP BY a.goods_particulars_picture
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|