From f111025b1c2c8bb95e64f4f9e23c09813b7938d2 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 24 十二月 2019 10:53:30 +0800 Subject: [PATCH] 维权日志添加,京东短链解析添加缓存 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java index f1070e2..7017628 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java @@ -86,7 +86,7 @@ return threeSaleMapper.selectBoss(uid); } - @Transactional + @Transactional(rollbackFor=Exception.class) public void bind(UserInfo worker, UserInfo inviter) throws ThreeSaleException { if (worker == null || inviter == null) throw new ThreeSaleException(1, "鐢ㄦ埛淇℃伅涓虹┖"); @@ -500,7 +500,7 @@ } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void bindRelationshipByInviteCode(UserInfo invitee, UserInfo inviter) throws ThreeSaleException { if (invitee == null || inviter == null) throw new ThreeSaleException(1, "鐢ㄦ埛淇℃伅涓虹┖"); @@ -520,7 +520,7 @@ } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void bindRelationshipByWX(UserInfo invitee, Long inviterId)throws ThreeSaleException { if (invitee == null || inviterId == null) throw new ThreeSaleException(1, "鐢ㄦ埛淇℃伅涓虹┖"); @@ -590,6 +590,11 @@ public ThreeSale selectByWorkerId(Long workerId) { return threeSaleMapper.selectSuccessByWorkerId(workerId); } + + @Override + public ThreeSale getNearRelationByBossIdAndWorkerId(Long bossId, Long workerId) { + return threeSaleMapper.getNearRelationByBossIdAndWorkerId(bossId, workerId); + } @Override public List<ThreeSale> getSuccessByDate(Long bossId, Long minTime, Long maxTime) { @@ -621,4 +626,9 @@ threeSaleMapper.inviteSeparate(workerId, bossId); } + @Override + public long getTeamOrderNumByWorkerId(Long workerId) { + return threeSaleMapper.getTeamOrderNumByWorkerId(workerId); + } + } -- Gitblit v1.8.0