From 7e7db2fa55a9a3af46d4fd8ede0dee147f101d64 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 09 五月 2020 21:41:27 +0800 Subject: [PATCH] 2.1需求 --- fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushCouponServiceImpl.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushCouponServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushCouponServiceImpl.java index cf64f6c..d4b2da9 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushCouponServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushCouponServiceImpl.java @@ -85,7 +85,7 @@ } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void save(PushCoupon record) throws PushCouponException,Exception { if (record == null) { throw new PushCouponException(1, "鍙傛暟涓嶆纭�"); @@ -125,9 +125,9 @@ pushCouponRecord.setCreateTime(new Date()); // 鎻掑叆棰嗗彇璁板綍 - pushCouponRecordService.insertSelective(pushCouponRecord); + //pushCouponRecordService.insertSelective(pushCouponRecord); // 鐩存帴鍙戦�佸埜 - userSystemCouponService.randomRewardCoupon(amount, uid, UserSystemCoupon.SOURCE_SYSTEM_PUSH); + //userSystemCouponService.randomRewardCoupon(amount, uid, UserSystemCoupon.SOURCE_SYSTEM_PUSH); } } @@ -153,7 +153,7 @@ } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void executePush(Long id) throws Exception, PushCouponException, PushException { PushCoupon pushCoupon = selectByPrimaryKey(id); -- Gitblit v1.8.0