Commit 33cae621 authored by shiyu's avatar shiyu

围观次数增加,删除给分销商发信息逻辑

parent 284f0cfc
......@@ -381,7 +381,7 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
aliSmsSender.sendSms(auctionRecord.getUserId(), msg);
}
//给中拍用户对应分销商发消息
if (distributionOrder.getSellerId() != null && distributionOrder.getSellerId().longValue() != CommConsts.SYSTEM_ACCOUNT) {
/* if (distributionOrder.getSellerId() != null && distributionOrder.getSellerId().longValue() != CommConsts.SYSTEM_ACCOUNT) {
String lastOpenId = sendMsgService.getOpenIdByUserId(distributionOrder.getSellerId());
if (com.xxdxxs.utils.StringUtils.hasLength(lastOpenId)) {
AuctionOfferNoticeMsg auctionOfferNoticeMsg = new AuctionOfferNoticeMsg();
......@@ -405,13 +405,13 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
"元,您预计获得利润" + PriceUtil.convertDoubleToString(Math.floor(profit)) + "元。请前往"+ url + "查看";
aliSmsSender.sendSms(distributionOrder.getSellerId(), msg);
}
}
}*/
return Result.success(map);
} else {
return Result.failed("稍后再试");
}
} catch (Exception e) {
logger.error("创建拍卖分销订单失败 error : {}", e);
logger.error("创建拍卖订单失败 error : {}", e);
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
} finally {
if (lock != null && lock.isHeldByCurrentThread()) {
......
......@@ -549,12 +549,13 @@ public class SupplierItemServiceImpl implements SupplierItemService {
if (itemId == null) {
return Result.failed("没有对应的商品id");
}
if (StringUtils.hasLength(shareRecordId) && !shareRecordId.equals(CommConsts.DEFAULT_SHARE_ID)) {
//拍卖专场进入详情页,增加围观次数
specialPerformanceConfigDao.addViewNum(itemId);
/* if (StringUtils.hasLength(shareRecordId) && !shareRecordId.equals(CommConsts.DEFAULT_SHARE_ID)) {
if (collectionShareRecord.getItemUserId().longValue() != dto.getUserId().longValue()) {
//拍卖专场进入详情页,增加围观次数
specialPerformanceConfigDao.addViewNum(itemId);
}
}
}*/
//查询商品所属专场id
SpecialPerformanceConfigRequestDto specialPerformanceConfigRequestDto = new SpecialPerformanceConfigRequestDto();
specialPerformanceConfigRequestDto.setItemId(itemId);
......
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