...
|
...
|
@@ -126,47 +126,8 @@ public class SellerNoticeFacade extends BaseNoticeFacade { |
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 寄存商品上架出售
|
|
|
*
|
|
|
* @param sellerUid
|
|
|
* @param prdName
|
|
|
*/
|
|
|
public void depositGoodsSaleShelf(int sellerUid, String prdName, String sizeName, Integer productId) {
|
|
|
try {
|
|
|
newNotice(sellerUid)
|
|
|
.withLogPrefix("notice seller deposit goods sale shelf")
|
|
|
.withInBox(() -> {
|
|
|
Product product = productMapper.selectByPrimaryKey(productId);
|
|
|
String productCode = product.getProductCode();
|
|
|
return buildInboxContent(InboxBusinessTypeEnum.DEPOSIT_GOODS_SALE_SHELF, prdName, sizeName, productCode);
|
|
|
})
|
|
|
.send();
|
|
|
} catch (Exception e) {
|
|
|
log.warn("notice seller deposit goods sale shelf fail, sellerUid {}, prdName {} ,sizeName {} ", sellerUid, prdName, sizeName, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 寄存商品下架
|
|
|
*
|
|
|
* @param sellerUid
|
|
|
* @param prdName
|
|
|
*/
|
|
|
public void depositGoodsSaleUnShelf(int sellerUid, String prdName, String sizeName, Integer productId) {
|
|
|
try {
|
|
|
newNotice(sellerUid)
|
|
|
.withLogPrefix("notice seller deposit goods sale shelf")
|
|
|
.withInBox(() -> {
|
|
|
Product product = productMapper.selectByPrimaryKey(productId);
|
|
|
String productCode = product.getProductCode();
|
|
|
return buildInboxContent(InboxBusinessTypeEnum.DEPOSIT_GOODS_SALE_UN_SHELF, prdName, sizeName, productCode);
|
|
|
})
|
|
|
.send();
|
|
|
} catch (Exception e) {
|
|
|
log.warn("notice seller deposit goods sale shelf fail, sellerUid {}, prdName {} ,sizeName {} ", sellerUid, prdName, sizeName, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public void buyerCancelBeforeDepotReceive(@NonNull BuyerOrder buyerOrder, SellerOrderGoods sog) {
|
|
|
Integer buyerUid = buyerOrder.getUid();
|
...
|
...
|
|