提交 f74aedc2 作者: 刘明祎

商品绑定话题id

上级 553bc27e
流水线 #8810 已通过 于阶段
in 2 分 32 秒
...@@ -3,6 +3,7 @@ package com.mmc.pms.entity.mall; ...@@ -3,6 +3,7 @@ package com.mmc.pms.entity.mall;
import com.mmc.pms.model.mall.GoodsResourcesVO; import com.mmc.pms.model.mall.GoodsResourcesVO;
import com.mmc.pms.model.mall.MallGoodsVO; import com.mmc.pms.model.mall.MallGoodsVO;
import com.mmc.pms.model.mall.UavCartDTO; import com.mmc.pms.model.mall.UavCartDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -93,6 +94,11 @@ public class MallGoodsDO implements Serializable { ...@@ -93,6 +94,11 @@ public class MallGoodsDO implements Serializable {
private List<PriceStockDO> priceStockDOS; private List<PriceStockDO> priceStockDOS;
/**
* 关联话题id
*/
private Integer gambitId;
public MallGoodsDO(MallGoodsVO mallGoodsVO) { public MallGoodsDO(MallGoodsVO mallGoodsVO) {
this.id = mallGoodsVO.getId(); this.id = mallGoodsVO.getId();
this.tradeName = mallGoodsVO.getTradeName(); this.tradeName = mallGoodsVO.getTradeName();
...@@ -105,6 +111,7 @@ public class MallGoodsDO implements Serializable { ...@@ -105,6 +111,7 @@ public class MallGoodsDO implements Serializable {
this.priceShow = mallGoodsVO.getPriceShow(); this.priceShow = mallGoodsVO.getPriceShow();
this.recommend = mallGoodsVO.getRecommend() == null ? 0 : mallGoodsVO.getRecommend(); this.recommend = mallGoodsVO.getRecommend() == null ? 0 : mallGoodsVO.getRecommend();
this.goodsDetails = mallGoodsVO.getGoodsDetails(); this.goodsDetails = mallGoodsVO.getGoodsDetails();
this.gambitId = mallGoodsVO.getGambitId();
} }
public MallGoodsVO buildMallGoodsVO() { public MallGoodsVO buildMallGoodsVO() {
......
...@@ -84,4 +84,7 @@ public class MallGoodsVO implements Serializable { ...@@ -84,4 +84,7 @@ public class MallGoodsVO implements Serializable {
@ApiModelProperty(value = "单位名称") @ApiModelProperty(value = "单位名称")
private String companyName; private String companyName;
@ApiModelProperty(value = "关联话题id")
private Integer gambitId;
} }
...@@ -17,10 +17,11 @@ ...@@ -17,10 +17,11 @@
user_account_id, user_account_id,
recommend, recommend,
price_show, price_show,
sort) sort,
gambit_id)
values ( #{goodsNo}, #{tradeName}, #{description}, #{categoryPrimaryId}, #{categorySubId} values ( #{goodsNo}, #{tradeName}, #{description}, #{categoryPrimaryId}, #{categorySubId}
, #{shelfStatus}, #{goodsLabel}, #{labelShow}, #{goodsDetails} , #{shelfStatus}, #{goodsLabel}, #{labelShow}, #{goodsDetails}
, #{userAccountId}, #{recommend}, #{priceShow}, #{sort}) , #{userAccountId}, #{recommend}, #{priceShow}, #{sort} , #{gambitId})
</insert> </insert>
<insert id="batchInsertMallGoodsResources"> <insert id="batchInsertMallGoodsResources">
...@@ -72,7 +73,8 @@ ...@@ -72,7 +73,8 @@
label_show = #{mallGoodsDO.labelShow}, label_show = #{mallGoodsDO.labelShow},
goods_details = #{mallGoodsDO.goodsDetails}, goods_details = #{mallGoodsDO.goodsDetails},
price_show = #{mallGoodsDO.priceShow}, price_show = #{mallGoodsDO.priceShow},
recommend = #{mallGoodsDO.recommend} recommend = #{mallGoodsDO.recommend},
gambit_id = #{mallGoodsDO.gambitId}
WHERE id = #{mallGoodsDO.id} WHERE id = #{mallGoodsDO.id}
</update> </update>
<update id="updateMallGoodsSort"> <update id="updateMallGoodsSort">
...@@ -163,6 +165,7 @@ ...@@ -163,6 +165,7 @@
price_show, price_show,
recommend, recommend,
sort, sort,
gambit_id,
create_time create_time
FROM mall_goods FROM mall_goods
WHERE id = #{id} WHERE id = #{id}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论