|
|
package com.yohoufo.order.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yohobuy.ufo.model.ProductInfo;
|
|
|
import com.yohobuy.ufo.model.enums.StorageCheckEnum;
|
...
|
...
|
@@ -11,6 +12,7 @@ import com.yohobuy.ufo.model.order.common.SkupStatus; |
|
|
import com.yohobuy.ufo.model.order.constants.SkupType;
|
|
|
import com.yohobuy.ufo.model.order.req.*;
|
|
|
import com.yohobuy.ufo.model.order.resp.*;
|
|
|
import com.yohobuy.ufo.model.order.vo.AddressInfo;
|
|
|
import com.yohobuy.ufo.model.request.product.ProductImportTranItemBo;
|
|
|
import com.yohobuy.ufo.model.request.product.ProductRequestBo;
|
|
|
import com.yohobuy.ufo.model.response.ProductDetailResp;
|
...
|
...
|
@@ -106,6 +108,10 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { |
|
|
@Autowired
|
|
|
private TradeBillsMapper tradeBillsMapper;
|
|
|
|
|
|
private static final String ADDRESS_STR = "{\"address\":\"松金公路2758号sneakerburger仓储中心\",\"address_id\":17560803,\"area\":\"上海 金山区 张堰镇\",\"areaCode\":\"310116103\",\"consignee\":\"阿津\",\"isUpdate\":\"N\",\"mobile\":\"18121153590\",\"phone\":\"\",\"zipCode\":\"\"}";
|
|
|
|
|
|
private static final String HIDDEN_ADDRESS_STR = "{\"address\":\"松金公路2758号sneakerbur****储中心\",\"address_id\":17560803,\"area\":\"上海 金山区 张堰镇\",\"areaCode\":\"310116103\",\"consignee\":\"*津\",\"isUpdate\":\"N\",\"mobile\":\"181****3590\",\"phone\":\"\",\"zipCode\":\"\"}";
|
|
|
|
|
|
/**
|
|
|
* 货款收入
|
|
|
*/
|
...
|
...
|
@@ -384,6 +390,10 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { |
|
|
// 上架
|
|
|
List<ProductImportTranItemBo> responseList = Lists.newArrayList();
|
|
|
|
|
|
|
|
|
AddressInfo noHiddenBackAddress = JSONObject.parseObject(ADDRESS_STR, AddressInfo.class);
|
|
|
AddressInfo hiddenBackAddress = JSONObject.parseObject(HIDDEN_ADDRESS_STR, AddressInfo.class);
|
|
|
|
|
|
// 上架的代码(和之前同)
|
|
|
List<FastDeliveryBatchOnShelfResp> shelfResps = Lists.newArrayList();
|
|
|
for(FastDeliveryBatchOnShelfReq.ProductInfo productInfo : req.getProductInfos()){
|
...
|
...
|
@@ -406,6 +416,8 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { |
|
|
ImPrdNode node = ImPrdNode.builder().uid(req.getUid())
|
|
|
.sellerWrapper(sellerWrapper)
|
|
|
.storageId(productInfo.getStorageId())
|
|
|
.noHiddenBackAddress(noHiddenBackAddress)
|
|
|
.hiddenBackAddress(hiddenBackAddress)
|
|
|
.salePrice(productInfo.getConvertedPrice())
|
|
|
.storageNum(productInfo.getNum())
|
|
|
.productCode(productInfo.getProductCode())
|
...
|
...
|
|