记得上下班打卡 | git大法好,push需谨慎

Commit e435dbae authored by 胡佳晨's avatar 胡佳晨

提交

parent 13171a6d
package com.liquidnet.service.goblin.dto.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@ApiModel(value = "GoblinStoreMarketPurchaseRelationVo", description = "商铺活动-限时秒杀配置-商品下的款式")
@Data
public class GoblinStoreMarketPurchaseRelationVo implements Serializable, Cloneable {
private static final long serialVersionUID = 2353354057235207502L;
@ApiModelProperty(position = 11, value = "spuId")
private String spuId;
@ApiModelProperty(position = 12, value = "skuId 几盒")
private List<String> skuList;
private static final GoblinStoreMarketPurchaseRelationVo obj = new GoblinStoreMarketPurchaseRelationVo();
public static GoblinStoreMarketPurchaseRelationVo getNew() {
try {
return (GoblinStoreMarketPurchaseRelationVo) obj.clone();
} catch (CloneNotSupportedException e) {
return new GoblinStoreMarketPurchaseRelationVo();
}
}
}
...@@ -176,12 +176,12 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS ...@@ -176,12 +176,12 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS
GoblinMarketRelationVo relationVo = GoblinMarketRelationVo.getNew(); GoblinMarketRelationVo relationVo = GoblinMarketRelationVo.getNew();
relationVo.setSpuId(params.getSpuId()); relationVo.setSpuId(params.getSpuId());
List<String> skuList = CollectionUtil.arrayListString(); List<String> skuList = CollectionUtil.arrayListString();
List<String> marketSkuList = CollectionUtil.arrayListString();
LinkedList<String> sqls = CollectionUtil.linkedListString(); LinkedList<String> sqls = CollectionUtil.linkedListString();
sqls.add(SqlMapping.get("goblin.store.market.insertRelation")); sqls.add(SqlMapping.get("goblin.store.market.insertRelation"));
LinkedList<Object[]> sqlsData = CollectionUtil.linkedListObjectArr(); LinkedList<Object[]> sqlsData = CollectionUtil.linkedListObjectArr();
for (GoblinStorePurchaseItemParam item : params.getGoblinStorePurchaseItemParam()) { for (GoblinStorePurchaseItemParam item : params.getGoblinStorePurchaseItemParam()) {
String purchaseId = IDGenerator.nextMilliId2(); String purchaseId = IDGenerator.nextMilliId2();
skuList.add(item.getSkuId());
GoblinStoreMarketPurchasing bean = GoblinStoreMarketPurchasing.getNew(); GoblinStoreMarketPurchasing bean = GoblinStoreMarketPurchasing.getNew();
bean.setStoreId(params.getStoreId()); bean.setStoreId(params.getStoreId());
bean.setStoreMarketId(params.getStoreMarketId()); bean.setStoreMarketId(params.getStoreMarketId());
...@@ -211,10 +211,13 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS ...@@ -211,10 +211,13 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS
//mysql //mysql
sqlsData.add(new Object[]{purchaseId, bean.getStoreMarketId(), bean.getSpuId(), bean.getSpuId(), bean.getStoreId(), bean.getPriceMarketing(), sqlsData.add(new Object[]{purchaseId, bean.getStoreMarketId(), bean.getSpuId(), bean.getSpuId(), bean.getStoreId(), bean.getPriceMarketing(),
bean.getStockMarketing(), bean.getBuyFactor(), bean.getBuyRoster(), bean.getBuyLimit(), bean.getDelFlag(), bean.getCreatedAt()}); bean.getStockMarketing(), bean.getBuyFactor(), bean.getBuyRoster(), bean.getBuyLimit(), bean.getDelFlag(), bean.getCreatedAt()});
marketSkuList.add(skuVo.getSkuId());
skuList.add(item.getSkuId());
} }
//mongo //mongo
GoblinGoodsInfoVo spuVo = goblinRedisUtils.getGoodsInfoVo(params.getSpuId()); GoblinGoodsInfoVo spuVo = goblinRedisUtils.getGoodsInfoVo(params.getSpuId());
spuVo.setSpuId(marketSpuId); spuVo.setSpuId(marketSpuId);
spuVo.setSkuIdList(marketSkuList);
spuVo.setMarketId(GoblinStatusConst.MarketPreStatus.MARKET_PRE_PURCHASE.getValue().concat(params.getStoreMarketId())); spuVo.setMarketId(GoblinStatusConst.MarketPreStatus.MARKET_PRE_PURCHASE.getValue().concat(params.getStoreMarketId()));
goblinMongoUtils.setGoodsInfoVo(spuVo); goblinMongoUtils.setGoodsInfoVo(spuVo);
//redis //redis
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment