From 245f369b980e7d6f34a5a1aa9fb0bdaba1f63f5f Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 02 九月 2019 14:20:29 +0800 Subject: [PATCH] 京东/拼多多维权订单修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java | 34 ++++++++++++++++++---------------- 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java index 65bdfcf..4624520 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java @@ -308,12 +308,20 @@ return; } - // 鐏板害娴嬭瘯涓紝浜笢/鎷煎澶氫笉杩斿埄 - if (hongBaoOrder.getCommonOrder() == null - || hongBaoOrder.getCommonOrder().getSourceType() == Constant.SOURCE_TYPE_JD - || hongBaoOrder.getCommonOrder().getSourceType() == Constant.SOURCE_TYPE_PDD) { + if (hongBaoOrder.getCommonOrder() == null) {// || + // hongBaoOrder.getCommonOrder().getSourceType() + // == + // Constant.SOURCE_TYPE_JD + // || hongBaoOrder.getCommonOrder().getSourceType() == + // Constant.SOURCE_TYPE_PDD return; } + + // 濡傛灉鏄嫾澶氬/浜笢缁存潈鍒欒繑鍥烇紝涓嶉渶瑕佽繑鍒� + if ((hongBaoOrder.getCommonOrder().getSourceType() == Constant.SOURCE_TYPE_PDD + || hongBaoOrder.getCommonOrder().getSourceType() == Constant.SOURCE_TYPE_JD) + && hongBaoOrder.getCommonOrder().getState() == CommonOrder.STATE_WQ) + return; if (hongBaoOrder.getCommonOrder() != null && hongBaoOrder.getCommonOrder().getSourceType() == Constant.SOURCE_TYPE_TAOBAO) { @@ -602,17 +610,13 @@ HongBaoOrder hongBaoOrder = hongBaoOrderMapper.selectByHongBaoId(item.getId()); if (hongBaoOrder != null && hongBaoOrder.getCommonOrder() != null) { CommonOrder co = hongBaoOrder.getCommonOrder(); - if (co.getSourceType() == Constant.SOURCE_TYPE_JD - || co.getSourceType() == Constant.SOURCE_TYPE_PDD) { + // 涓婄骇鐢ㄦ埛涓嶆槸姝e父鐢ㄦ埛锛岃鍗曞潎涓嶈兘鍒拌处 + UserInfo userInfo = userInfoMapper.selectByPrimaryKey(co.getUserInfo().getId()); + if (userInfo == null || userInfo.getState() != UserInfo.STATE_NORMAL) { hongBaoList.remove(i); i--; - } else {// 涓婄骇鐢ㄦ埛涓嶆槸姝e父鐢ㄦ埛锛岃鍗曞潎涓嶈兘鍒拌处 - UserInfo userInfo = userInfoMapper.selectByPrimaryKey(co.getUserInfo().getId()); - if (userInfo == null || userInfo.getState() != UserInfo.STATE_NORMAL) { - hongBaoList.remove(i); - i--; - } } + } } } @@ -713,11 +717,9 @@ minDate, maxDate); long weiQuanCount = hongBaoV2Mapper.countInviteOrderCountByUidAndSettleTime(uid, CommonOrder.STATE_WQ, minDate, maxDate); - long invalidCount = hongBaoV2Mapper.countInviteOrderCountByUidAndSettleTime(uid, CommonOrder.STATE_SX, - minDate, maxDate); UserMoneyDetail userMoneyDetail = UserMoneyDetailFactory.createInvite(uid, Constant.SOURCE_TYPE_TAOBAO, - (int) validCount, (int) weiQuanCount, (int) invalidCount, invitemoney, new Date()); + (int) validCount, (int) weiQuanCount, invitemoney, new Date()); // 澧炲姞璧勯噾 userMoneyService.addUserMoney(uid, invitemoney, userMoneyDetail); @@ -809,7 +811,7 @@ minDate, maxDate); UserMoneyDetail userMoneyDetail = UserMoneyDetailFactory.createShare(uid, Constant.SOURCE_TYPE_TAOBAO, - (int) validCount, (int) weiQuanCount, (int) invalidCount, sharemoney, new Date()); + (int) validCount, (int) weiQuanCount, sharemoney, new Date()); // 娣诲姞璧勯噾 userMoneyService.addUserMoney(uid, sharemoney, userMoneyDetail); -- Gitblit v1.8.0