Commit 33cae621 authored by shiyu's avatar shiyu

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

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