‘linchangsheng’ 3 周之前
父節點
當前提交
18c3f8b530

+ 1 - 1
src/main/java/com/gree/mall/manager/enums/CouponCrowdEnum.java

@@ -14,7 +14,7 @@ import lombok.Getter;
 @AllArgsConstructor(access = AccessLevel.PRIVATE)
 public enum CouponCrowdEnum implements BaseEnum, IEnum<Integer> {
 
-    TAG("0","所有用户"),
+    ALL("0","所有用户"),
     SPECIFY("4","指定会员"),
     ALL_SERVICE("3","全部业务员"),
     ALL_GENRERAL("2","全部普通用户"),;

+ 0 - 25
src/main/java/com/gree/mall/manager/logic/coupon/CouponLogic.java

@@ -171,31 +171,6 @@ public class CouponLogic {
             }
             couponGoodsService.saveBatch(couponGoodsList);
         }
-        //指定标签
-        if (couponBean.getReceiveCrowd().equals(Convert.toInt(CouponCrowdEnum.TAG.getKey())) && couponBean.getTagList() != null) {
-            List<String> userIds = wxCustomerMapper.queryTagUserIdList(adminUser.getLoginCompanyWechatId(), couponBean.getTagList());
-            List<CouponTag> couponTagList = new ArrayList<>();
-            for (CouponTag couponTag : couponBean.getTagList()) {
-                couponTag.setCouponId(couponId);
-                couponTag.setCreateTime(new Date());
-                couponTag.setCompanyWechatId(adminUser.getLoginCompanyWechatId());
-                couponTag.setCompanyName(adminUser.getLoginCompanyName());
-                couponTagList.add(couponTag);
-            }
-            couponTagService.saveBatch(couponTagList);
-
-            List<CouponUser> couponUserList = new ArrayList<>();
-            CouponUser couponUser = new CouponUser();
-            for (String userId : userIds) {
-                couponUser.setCouponId(couponId);
-                couponUser.setUserId(userId);
-                couponUser.setCreateTime(new Date());
-                couponUser.setCouponUserId(adminUser.getLoginCompanyWechatId());
-                couponUser.setCompanyName(adminUser.getCompanyName());
-                couponUserList.add(couponUser);
-            }
-            couponUserService.saveBatch(couponUserList);
-        }
 
         //指定会员
         if (couponBean.getReceiveCrowd().equals(Convert.toInt(CouponCrowdEnum.SPECIFY.getKey())) && couponBean.getUserList() != null) {