提交 f74aedc2 作者: 刘明祎

商品绑定话题id

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