From 4d233c11d61c03a560ff53870c910e390a8c6b75 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Wed, 29 Mar 2023 16:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/HighDiscountPackageServiceImpl.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/hai-service/src/main/java/com/hai/service/impl/HighDiscountPackageServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighDiscountPackageServiceImpl.java index e6cc4fe9..d5d1093d 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighDiscountPackageServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighDiscountPackageServiceImpl.java @@ -316,14 +316,6 @@ public class HighDiscountPackageServiceImpl implements HighDiscountPackageServic userRel.setUseEndTime(userEndTime.getTime()); } - HighDiscountUserRel highDiscountUserRel = new HighDiscountUserRel(); - highDiscountUserRel.setDiscountId(actualList.getDiscountId()); - highDiscountUserRel.setUserId(MapUtils.getLong(map , "userId")); - highDiscountUserRel.setAgentId(actualList.getAgentId()); - highDiscountUserRel.setDiscountAgentCodeId(actualList.getAgentDiscountCodeId()); - highDiscountUserRel.setStatus(1); - highDiscountUserRel.setCreateTime(new Date()); - HighDiscountAgentCode discountAgentCode = highDiscountAgentCodeService.getCodeById(actualList.getAgentDiscountCodeId()); // 修改优惠券二维码状态 @@ -331,7 +323,7 @@ public class HighDiscountPackageServiceImpl implements HighDiscountPackageServic highDiscountAgentCodeService.updateCode(discountAgentCode); // 新增优惠券与用户的绑定关系 - highDiscountUserRelMapper.insert(highDiscountUserRel); + highDiscountUserRelMapper.insert(userRel); // 修改优惠券包实际库存实际优惠券状态 actualList.setStatus(0);