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

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

erp 组合售下单

parent ace202f4
...@@ -210,7 +210,7 @@ public class GoblinStoreOrderVo implements Serializable, Cloneable { ...@@ -210,7 +210,7 @@ public class GoblinStoreOrderVo implements Serializable, Cloneable {
return this; return this;
} }
public GoblinStoreOrderVo copyMix(GoblinStoreOrder source,String mixId,String mixName) { public GoblinStoreOrderVo copyMix(GoblinStoreOrder source,String mixId,String mixName,int erpHosting) {
if (null == source) return this; if (null == source) return this;
this.setOrderId(source.getOrderId()); this.setOrderId(source.getOrderId());
this.setStoreId(source.getStoreId()); this.setStoreId(source.getStoreId());
...@@ -254,6 +254,7 @@ public class GoblinStoreOrderVo implements Serializable, Cloneable { ...@@ -254,6 +254,7 @@ public class GoblinStoreOrderVo implements Serializable, Cloneable {
this.setCreatedAt(source.getCreatedAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); this.setCreatedAt(source.getCreatedAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
this.setMixId(mixId); this.setMixId(mixId);
this.setMixName(mixName); this.setMixName(mixName);
this.setErpHosting(erpHosting);
return this; return this;
} }
......
...@@ -365,7 +365,7 @@ public class MixOrderServiceImpl implements IMixOrderService { ...@@ -365,7 +365,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
nftOrder.setCreatedAt(now); nftOrder.setCreatedAt(now);
GoblinGoodsInfoVo spuVo = redisUtils.getGoodsInfoVo(nftOrder.getSpuId()); GoblinGoodsInfoVo spuVo = redisUtils.getGoodsInfoVo(nftOrder.getSpuId());
if(boxSkuId==null || "".equals(boxSkuId)) { if(nftOrder.getBoxSkuId()==null || "".equals(nftOrder.getBoxSkuId())) {
skuVo = redisUtils.getGoodsSkuInfoVo(nftOrder.getSkuId()); skuVo = redisUtils.getGoodsSkuInfoVo(nftOrder.getSkuId());
}else{ }else{
skuVo = redisUtils.getGoodsSkuInfoVo(nftOrder.getBoxSkuId()); skuVo = redisUtils.getGoodsSkuInfoVo(nftOrder.getBoxSkuId());
...@@ -496,7 +496,11 @@ public class MixOrderServiceImpl implements IMixOrderService { ...@@ -496,7 +496,11 @@ public class MixOrderServiceImpl implements IMixOrderService {
LinkedList<Object[]> sqlDataAttr = CollectionUtil.linkedListObjectArr(); LinkedList<Object[]> sqlDataAttr = CollectionUtil.linkedListObjectArr();
List<String> goblinOrderSkuIdList = CollectionUtil.linkedListString(); List<String> goblinOrderSkuIdList = CollectionUtil.linkedListString();
if (preParam != null) { if (preParam != null) {
int erpHosting = 0;
for (GoblinOrderSku orderSku : preParam.getOrderSkuList()) { for (GoblinOrderSku orderSku : preParam.getOrderSkuList()) {
if(erpHosting == 0){
erpHosting = orderSku.getErpHosting();
}
sqlDataSku.add(new Object[]{ sqlDataSku.add(new Object[]{
orderSku.getOrderSkuId(), orderSku.getOrderId(), orderSku.getSpuId(), orderSku.getSpuName(), orderSku.getSpuPic(), orderSku.getSkuId(), orderSku.getNum(), orderSku.getSkuPrice(), orderSku.getSkuPriceActual(), orderSku.getSkuName(), orderSku.getOrderSkuId(), orderSku.getOrderId(), orderSku.getSpuId(), orderSku.getSpuName(), orderSku.getSpuPic(), orderSku.getSkuId(), orderSku.getNum(), orderSku.getSkuPrice(), orderSku.getSkuPriceActual(), orderSku.getSkuName(),
orderSku.getSkuNo(), orderSku.getSkuImage(), orderSku.getSkuSpecs(), orderSku.getPriceVoucher(), orderSku.getSkuNo(), orderSku.getSkuImage(), orderSku.getSkuSpecs(), orderSku.getPriceVoucher(),
...@@ -521,7 +525,7 @@ public class MixOrderServiceImpl implements IMixOrderService { ...@@ -521,7 +525,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
orderAttr.getOrderAttrId(), orderAttr.getOrderId(), orderAttr.getExpressContacts(), orderAttr.getExpressAddress(), orderAttr.getExpressAddressDetail(), orderAttr.getExpressPhone(), orderAttr.getExpressType(), orderAttr.getCreatedAt() orderAttr.getOrderAttrId(), orderAttr.getOrderId(), orderAttr.getExpressContacts(), orderAttr.getExpressAddress(), orderAttr.getExpressAddressDetail(), orderAttr.getExpressPhone(), orderAttr.getExpressType(), orderAttr.getCreatedAt()
}); });
//订单vo //订单vo
GoblinStoreOrderVo orderVo = GoblinStoreOrderVo.getNew().copyMix(storeOrder, mixId, mixName); GoblinStoreOrderVo orderVo = GoblinStoreOrderVo.getNew().copyMix(storeOrder, mixId, mixName,erpHosting);
//订单attr vo //订单attr vo
GoblinOrderAttrVo orderAttrVo = GoblinOrderAttrVo.getNew().copy(orderAttr); GoblinOrderAttrVo orderAttrVo = GoblinOrderAttrVo.getNew().copy(orderAttr);
//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