...
|
...
|
@@ -729,11 +729,11 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
}
|
|
|
int n = storagePriceMapper.cancelSaleSkup(bo.getSkup()); // SQL里面保证修改的原始状态为 可售 防止并发
|
|
|
if (n == 1) {
|
|
|
Storage storage = storageMapper.selectByPrimaryKey(sp.getStorageId());
|
|
|
/*Storage storage = storageMapper.selectByPrimaryKey(sp.getStorageId());
|
|
|
|
|
|
if (storageMapper.updateStorageNum(sp.getStorageId(), storage.getStorageNum() - 1, storage.getStorageNum()) != 1) { // 防止并发修改,如果失败则发送一个spring事件
|
|
|
applicationContext.publishEvent(new StorageNumEvent(sp.getStorageId()));
|
|
|
}
|
|
|
}*/
|
|
|
|
|
|
LOGGER.info("send info to seller, product_name is {}, seller_uid is {}", bo.getProductName(), sp.getSellerUid());
|
|
|
//inboxService.addInbox(InboxBusinessTypeEnum.SALE_NOTIFIED_UNSHELF.getBusinessType(), InboxBusinessTypeEnum.SALE_NOTIFIED_UNSHELF.getType(),
|
...
|
...
|
|