|
|
@@ -156,7 +156,7 @@ public class CollectionService {
|
|
|
record.getMaxCount(), record.getCountId(), record.isScanCode(), record.isNoSoldOut(),
|
|
|
record.getAssignment(), record.isCouponPayment(), record.getShareBg(), record.getRegisterBg(),
|
|
|
record.getVipQuota(), record.getTimeDelay(), record.getSaleTime(), record.getHoldDays(),
|
|
|
- record.getOpenQuota(), record.getTotalQuota());
|
|
|
+ record.getOpenQuota(), record.getTotalQuota(), record.getMinimumCharge());
|
|
|
|
|
|
record = collectionRepo.findById(record.getId()).orElseThrow(new BusinessException("无记录"));
|
|
|
onShelfTask(record);
|
|
|
@@ -542,44 +542,6 @@ public class CollectionService {
|
|
|
log.info("邀请实名认证人量:{}", collect2.size());
|
|
|
// log.info("sql: update user set vip_point = 1 where id in ({})", longArrayConverter.convertToDatabaseColumn(collect2));
|
|
|
|
|
|
- //只留库存数量
|
|
|
-// List<PointDTO> result = dtos.stream()
|
|
|
-// .sorted(Comparator.comparing(PointDTO::getCreatedAt))
|
|
|
-// .collect(Collectors.toList());
|
|
|
-// List<Long> userIds = result.stream().map(PointDTO::getId).collect(Collectors.toList());
|
|
|
-// Map<Long, User> resultMap = userRepo.findAllById(userIds)
|
|
|
-// .stream()
|
|
|
-// .collect(Collectors.toMap(User::getId, user -> user));
|
|
|
-//
|
|
|
-// List<PointDTO> result2 = new ArrayList<>();
|
|
|
-// List<PointDTO> result3 = new ArrayList<>();
|
|
|
-// result.forEach(dto -> {
|
|
|
-// if (dto.getIdentitySum() > 0) {
|
|
|
-// result2.add(dto);
|
|
|
-// } else {
|
|
|
-// result3.add(dto);
|
|
|
-// }
|
|
|
-// });
|
|
|
-//
|
|
|
-// result2.addAll(result3);
|
|
|
-
|
|
|
-
|
|
|
- //加积分,存记录
|
|
|
-// result.forEach(pointDTO -> {
|
|
|
-// User user = resultMap.get(pointDTO.getId());
|
|
|
-// if (user.getVipPoint() <= 0) {
|
|
|
-// user.setVipPoint(1);
|
|
|
-// userRepo.save(user);
|
|
|
-// pointRecordRepo.save(PointRecord.builder()
|
|
|
-// .collectionId(collectionId)
|
|
|
-// .userId(pointDTO.getId())
|
|
|
-// .type("VIP_POINT")
|
|
|
-// .point(1)
|
|
|
-// .build());
|
|
|
-// }
|
|
|
-//
|
|
|
-// });
|
|
|
-
|
|
|
return dtos;
|
|
|
}
|
|
|
}
|