Authored by qinchao

上架成功消息,支持区分现货、预售等

... ... @@ -142,7 +142,7 @@ public class SellerOrderPaymentService extends AbstractOrderPaymentService {
}
inBoxFacade.sellerPaidEarnestMoney(sellerUid, prdName,sizeName,productId);
inBoxFacade.sellerPaidEarnestMoney(sellerUid, prdName,sizeName,productId,sellerOrderGoods.getAttributes());
//
int skup = sellerOrder.getSkup();
SellerOrderPriceChangeEvent sopcEvent = SellerOrderPriceChangeEvent.builder()
... ...
... ... @@ -339,7 +339,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic
ForkJoinTask<SellerOrderSubmitHandler.ForkJoinResult> fjt = ThreadPoolFactory.getForkJoinPool().submit(batchProcessTask);
taskList.add(fjt);
}
inBoxFacade.sellerPaidEarnestMoney(uid, ctx.getSoldProduct().getProductName(),ctx.getSoldProduct().getSizeName(),ctx.getSoldProduct().getProductId());
inBoxFacade.sellerPaidEarnestMoney(uid, ctx.getSoldProduct().getProductName(),ctx.getSoldProduct().getSizeName(),ctx.getSoldProduct().getProductId(),ctx.getSoldProduct().getSkupType().prdAttributes().getCode());
return OrderSubmitResp.builder().build();
}
... ...
... ... @@ -602,16 +602,17 @@ public class InBoxFacade {
* @param sellerUid
* @param prdName
*/
public void sellerPaidEarnestMoney(int sellerUid, String prdName,String sizeName,Integer productId) {
public void sellerPaidEarnestMoney(int sellerUid, String prdName,String sizeName,Integer productId,Integer prdAttr) {
try {
executorService.execute(() -> {
logger.info("record sellerPaidEarnestMoney inbox in , sellerUid {}, prdName {}, sizeName {} ,productId {}",
sellerUid, prdName, sizeName,productId);
logger.info("record sellerPaidEarnestMoney inbox in , sellerUid {}, prdName {}, sizeName {} ,productId {},prdAttr {}",
sellerUid, prdName, sizeName,productId,prdAttr);
Product product = productMapper.selectByPrimaryKey(productId);
String productCode = product.getProductCode();
String skupTypeText=SkupType.getSkupType(prdAttr).attrName();
InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_SHELF;
String params = buildParams(prdName,sizeName,productCode);
String params = buildParams(skupTypeText,prdName,sizeName,productCode);
InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt);
InBoxResponse resp = inBoxSDK.addInbox(req);
... ...
... ... @@ -122,7 +122,7 @@ public class ImperfectGoodsPublishExcutor implements PublishExcutor<ImperfectOrd
merchantOrderPaymentService.useEarnestAddWalletDetail(sellerWallet, orderList);
syncPrdStatus(resp.getSkup(), SkupStatus.WAITING_AUDIT);
//给入驻卖家发消息
inBoxFacade.sellerPaidEarnestMoney(uid, ctx.getSoldProduct().getProductName(),ctx.getSoldProduct().getSizeName(),ctx.getSoldProduct().getProductId());
inBoxFacade.sellerPaidEarnestMoney(uid, ctx.getSoldProduct().getProductName(),ctx.getSoldProduct().getSizeName(),ctx.getSoldProduct().getProductId(),ctx.getSoldProduct().getSkupType().prdAttributes().getCode());
return resp;
}
... ... @@ -135,7 +135,7 @@ public class ImperfectGoodsPublishExcutor implements PublishExcutor<ImperfectOrd
OrderSubmitResp resp = doPublish(ctx);
syncPrdStatus(resp.getSkup(), SkupStatus.WAITING_AUDIT);
//给入驻卖家发消息
inBoxFacade.sellerPaidEarnestMoney(uid, ctx.getSoldProduct().getProductName(),ctx.getSoldProduct().getSizeName(),ctx.getSoldProduct().getProductId());
inBoxFacade.sellerPaidEarnestMoney(uid, ctx.getSoldProduct().getProductName(),ctx.getSoldProduct().getSizeName(),ctx.getSoldProduct().getProductId(),ctx.getSoldProduct().getSkupType().prdAttributes().getCode());
return resp;
}
... ...