商品库表字段 product_short_name 改写 sname 简化

This commit is contained in:
Jack 2025-11-22 01:54:00 +08:00
parent 8f20e755fb
commit 9bc2d32c45
3 changed files with 10 additions and 8 deletions

View File

@ -28,6 +28,9 @@ public class LibraryProduct implements Serializable {
@TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
private String name;
@ApiModelProperty(value = "商品简称,作为匹配关键字", example = "小米12 Pro")
private String sname;
@ApiModelProperty(value = "商品标题", example = "小米12 Pro")
private String title;
@ -62,7 +65,6 @@ public class LibraryProduct implements Serializable {
@ApiModelProperty(value = "商品卖点", example = "绿色有机")
private String selling_point;
@ApiModelProperty(value = "商品介绍", example = "商品介绍")
private String intro;

View File

@ -16,7 +16,7 @@
lp.id,
lp.barcode,
lp.name,
lp.product_short_name,
lp.sname,
lp.category,
lp.thumb,
(
@ -37,7 +37,7 @@
lp.id,
lp.barcode,
lp.name,
lp.product_short_name,
lp.sname,
lp.category,
lp.thumb,
(
@ -60,7 +60,7 @@
lp.id,
lp.barcode,
lp.name,
lp.product_short_name,
lp.sname,
lp.category,
lp.thumb,
(

View File

@ -161,7 +161,7 @@
shop_product_image spi
INNER JOIN
library_product lp ON
spi.product_short_name = lp.product_short_name
spi.product_short_name = lp.sname
LEFT JOIN
(
SELECT
@ -178,7 +178,7 @@
WHERE
spi.product_from = '1005'
AND spi.item_image_default = '1'
<![CDATA[ AND lp.product_short_name <> '' ]]>
<![CDATA[ AND lp.sname <> '' ]]>
)t
)temp
where
@ -213,7 +213,7 @@
shop_product_image spi
INNER JOIN
library_product lp ON
spi.product_short_name = lp.product_short_name
spi.product_short_name = lp.sname
LEFT JOIN
(
SELECT
@ -230,7 +230,7 @@
WHERE
spi.product_from = '1005'
AND spi.item_image_default = '1'
<![CDATA[ AND lp.product_short_name <> '' ]]>
<![CDATA[ AND lp.sname <> '' ]]>
)t
)temp
where