商品库表字段 product_short_name 改写 sname 简化
This commit is contained in:
parent
8f20e755fb
commit
9bc2d32c45
@ -28,6 +28,9 @@ public class LibraryProduct implements Serializable {
|
|||||||
@TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
|
@TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "商品简称,作为匹配关键字", example = "小米12 Pro")
|
||||||
|
private String sname;
|
||||||
|
|
||||||
@ApiModelProperty(value = "商品标题", example = "小米12 Pro")
|
@ApiModelProperty(value = "商品标题", example = "小米12 Pro")
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
@ -62,7 +65,6 @@ public class LibraryProduct implements Serializable {
|
|||||||
@ApiModelProperty(value = "商品卖点", example = "绿色有机")
|
@ApiModelProperty(value = "商品卖点", example = "绿色有机")
|
||||||
private String selling_point;
|
private String selling_point;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "商品介绍", example = "商品介绍")
|
@ApiModelProperty(value = "商品介绍", example = "商品介绍")
|
||||||
private String intro;
|
private String intro;
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
lp.id,
|
lp.id,
|
||||||
lp.barcode,
|
lp.barcode,
|
||||||
lp.name,
|
lp.name,
|
||||||
lp.product_short_name,
|
lp.sname,
|
||||||
lp.category,
|
lp.category,
|
||||||
lp.thumb,
|
lp.thumb,
|
||||||
(
|
(
|
||||||
@ -37,7 +37,7 @@
|
|||||||
lp.id,
|
lp.id,
|
||||||
lp.barcode,
|
lp.barcode,
|
||||||
lp.name,
|
lp.name,
|
||||||
lp.product_short_name,
|
lp.sname,
|
||||||
lp.category,
|
lp.category,
|
||||||
lp.thumb,
|
lp.thumb,
|
||||||
(
|
(
|
||||||
@ -60,7 +60,7 @@
|
|||||||
lp.id,
|
lp.id,
|
||||||
lp.barcode,
|
lp.barcode,
|
||||||
lp.name,
|
lp.name,
|
||||||
lp.product_short_name,
|
lp.sname,
|
||||||
lp.category,
|
lp.category,
|
||||||
lp.thumb,
|
lp.thumb,
|
||||||
(
|
(
|
||||||
|
|||||||
@ -161,7 +161,7 @@
|
|||||||
shop_product_image spi
|
shop_product_image spi
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
library_product lp ON
|
library_product lp ON
|
||||||
spi.product_short_name = lp.product_short_name
|
spi.product_short_name = lp.sname
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
(
|
(
|
||||||
SELECT
|
SELECT
|
||||||
@ -178,7 +178,7 @@
|
|||||||
WHERE
|
WHERE
|
||||||
spi.product_from = '1005'
|
spi.product_from = '1005'
|
||||||
AND spi.item_image_default = '1'
|
AND spi.item_image_default = '1'
|
||||||
<![CDATA[ AND lp.product_short_name <> '' ]]>
|
<![CDATA[ AND lp.sname <> '' ]]>
|
||||||
)t
|
)t
|
||||||
)temp
|
)temp
|
||||||
where
|
where
|
||||||
@ -213,7 +213,7 @@
|
|||||||
shop_product_image spi
|
shop_product_image spi
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
library_product lp ON
|
library_product lp ON
|
||||||
spi.product_short_name = lp.product_short_name
|
spi.product_short_name = lp.sname
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
(
|
(
|
||||||
SELECT
|
SELECT
|
||||||
@ -230,7 +230,7 @@
|
|||||||
WHERE
|
WHERE
|
||||||
spi.product_from = '1005'
|
spi.product_from = '1005'
|
||||||
AND spi.item_image_default = '1'
|
AND spi.item_image_default = '1'
|
||||||
<![CDATA[ AND lp.product_short_name <> '' ]]>
|
<![CDATA[ AND lp.sname <> '' ]]>
|
||||||
)t
|
)t
|
||||||
)temp
|
)temp
|
||||||
where
|
where
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user