提交 6f5b4d7d 作者: xiaowang

新增价格字段显示与否

上级 2d58a68f
......@@ -69,6 +69,8 @@ public class MallGoodsDO implements Serializable {
*/
private Integer sort;
private Integer priceShow;
private Date createTime;
private Date updateTime;
......@@ -89,12 +91,13 @@ public class MallGoodsDO implements Serializable {
this.shelfStatus = mallGoodsVO.getShelfStatus();
this.goodsLabel = mallGoodsVO.getGoodsLabel();
this.labelShow = mallGoodsVO.getLabelShow();
this.priceShow = mallGoodsVO.getPriceShow();
this.goodsDetails = mallGoodsVO.getGoodsDetails();
}
public MallGoodsVO buildMallGoodsVO() {
return MallGoodsVO.builder().id(id).userAccountId(userAccountId).tradeName(tradeName).description(description)
.categoryPrimaryId(categoryPrimaryId).categorySubId(categorySubId).shelfStatus(shelfStatus)
.categoryPrimaryId(categoryPrimaryId).categorySubId(categorySubId).shelfStatus(shelfStatus).priceShow(priceShow)
.goodsLabel(goodsLabel).labelShow(labelShow).createTime(createTime).goodsDetails(goodsDetails).build();
}
......@@ -107,7 +110,7 @@ public class MallGoodsDO implements Serializable {
resourcesList.add(goodsResourcesVO);
return MallGoodsVO.builder().id(id).userAccountId(userAccountId).tradeName(tradeName).resourcesList(resourcesList)
.categoryPrimaryId(categoryPrimaryId).labelShow(labelShow).goodsLabel(goodsLabel).categorySubId(categorySubId)
.shelfStatus(shelfStatus).createTime(createTime).description(description).build();
.shelfStatus(shelfStatus).createTime(createTime).description(description).priceShow(priceShow).build();
}
}
......@@ -57,6 +57,9 @@ public class MallGoodsVO implements Serializable {
@ApiModelProperty(value = "商品标签")
private String goodsLabel;
@ApiModelProperty(value = "价格是否显示 0不显示 1显示")
private Integer priceShow;
@ApiModelProperty(value = "标签是否显示 0否 1是")
private Integer labelShow;
......
......@@ -15,9 +15,10 @@
label_show,
goods_details,
user_account_id,
price_show,
sort)
values ( #{goodsNo}, #{tradeName}, #{description}, #{categoryPrimaryId}, #{categorySubId}
, #{shelfStatus}, #{goodsLabel}, #{labelShow}, #{goodsDetails}, #{userAccountId}, #{sort})
, #{shelfStatus}, #{goodsLabel}, #{labelShow}, #{goodsDetails}, #{userAccountId}, #{priceShow}, #{sort})
</insert>
<insert id="batchInsertMallGoodsResources">
......@@ -67,7 +68,8 @@
shelf_status = #{mallGoodsDO.shelfStatus},
goods_label = #{mallGoodsDO.goodsLabel},
label_show = #{mallGoodsDO.labelShow},
goods_details = #{mallGoodsDO.goodsDetails}
goods_details = #{mallGoodsDO.goodsDetails},
price_show = #{mallGoodsDO.priceShow}
WHERE id = #{mallGoodsDO.id}
</update>
<update id="updateMallGoodsSort">
......@@ -155,6 +157,7 @@
label_show,
goods_details,
user_account_id,
price_show,
sort,
create_time
FROM mall_goods
......@@ -201,6 +204,7 @@
mg.category_sub_id,
mg.user_account_id,
mg.description,
mg.price_show,
img.id as imgId,
img.url,
img.type
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论