提交 6f5b4d7d 作者: xiaowang

新增价格字段显示与否

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