From 6009c2c07cd32a76b32c8d63a5a017be695c5ea5 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 26 八月 2019 15:19:33 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/div' into div --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponRecordServiceImpl.java | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponRecordServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponRecordServiceImpl.java index 7c51f69..360e392 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponRecordServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponRecordServiceImpl.java @@ -49,20 +49,20 @@ } @Override - public List<UserSystemCouponRecord> getRecordByOrderNoList(List<String> list) { - return userSystemCouponRecordMapper.getRecordByOrderNoList(list); + public List<UserSystemCouponRecord> getRecordByOrderNoList(Integer source, List<String> list) { + return userSystemCouponRecordMapper.getRecordByOrderNoList(source, list); } @Override - public List<UserSystemCouponRecord> getCouponByUsingTimeOut(Long uid, long seconds) { + public List<UserSystemCouponRecord> getCouponByUsingTimeOut(Long uid, Long seconds) { return userSystemCouponRecordMapper.getCouponByUsingTimeOut(uid, seconds); } @Override - public boolean isSuccessMianDan(String orderId) { + public boolean isSuccessMianDan(Integer source, String orderId) { List<String> orderList = new ArrayList<>(); orderList.add(orderId); - List<UserSystemCouponRecord> list = getRecordByOrderNoList(orderList); + List<UserSystemCouponRecord> list = getRecordByOrderNoList(source, orderList); for (UserSystemCouponRecord record : list) { if (record.getCouponType().equalsIgnoreCase(CouponTypeEnum.freeCoupon.name()) || record.getCouponType().equalsIgnoreCase(CouponTypeEnum.welfareFreeCoupon.name())) { @@ -74,4 +74,8 @@ return false; } + @Override + public UserSystemCouponRecord getNearByUserCouponId(Long userCouponId) { + return userSystemCouponRecordMapper.getNearByUserCouponId(userCouponId); + } } -- Gitblit v1.8.0