feat: 支付宝相关支付

pull/2/head
tangqian 2023-05-19 19:10:18 +08:00
parent 6eaa2f70b5
commit 9764afb6bd
1 changed files with 3 additions and 1 deletions

View File

@ -1408,7 +1408,9 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
if (!CollectionUtils.isEmpty(infoDOS)) {
Map<Long, List<PhoneRecordDO>> collect1 = infoDOS.stream().collect(Collectors.groupingBy(PhoneRecordDO::getRechargeGearId));
orderInfos.forEach(info -> {
Assert.isTrue(CollectionUtils.isEmpty(collect1.get(info.getGearId())), "该挡位:" + info.getName() + "你已购买,请勿重复操作");
if (!CollectionUtils.isEmpty(collect1.get(info.getGearId()))) {
throw new ServiceException("该挡位:" + info.getName() + "你已购买,请勿重复操作");
}
});
}
if (StringUtils.isNotBlank(request.getUserPhone()) && StringUtils.isNotBlank(request.getConfirmPhone())) {