Helius
2021-01-22 81406fbab9b6be9c61c115f5daf3f9bbfa4d256a
zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysVipInfoServiceImpl.java
@@ -485,7 +485,7 @@
      int i=sysVipInfoDao.insert(vipInfo);
      if (CollectionUtils.isNotEmpty(addVipDto.getLabels())) {
         batchInsertLabel(addVipDto.getLabels(), user.getSuName(), vipInfo.getId());
//         batchInsertLabel(addVipDto.getLabels(), user.getSuName(), vipInfo.getId());
      }
      //创建用户默认储值卡
@@ -536,9 +536,8 @@
      int i = sysVipInfoDao.update(vipInfo);
      if (CollectionUtils.isNotEmpty(modifyVipDto.getLabels())) {
         sysVipLabelDao.deleteByVipId(modifyVipDto.getVipId());
         batchInsertLabel(modifyVipDto.getLabels(), user.getSuName(), vipInfo.getId());
//         sysVipLabelDao.deleteByVipId(modifyVipDto.getVipId());
//         batchInsertLabel(modifyVipDto.getLabels(), user.getSuName(), vipInfo.getId());
      }
      return i;
   }
@@ -551,7 +550,6 @@
         sysVipLabel.setCreateTime(new Date());
         sysVipLabel.setCreateBy(suName);
         sysVipLabel.setLabel(iterator.next());
         sysVipLabel.setVipId(id);
         sysVipLabelDao.insert(sysVipLabel);
      }
   }