Merge branch 'feature/mall_product' of http://117.33.142.185:3000/zenghuapei/cyywl_server into feature/mall_product

pull/3/head
TianYu 2023-05-29 21:29:14 +08:00
commit bebd1393a6
1 changed files with 2 additions and 2 deletions

View File

@ -1502,7 +1502,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
rechargeGearDOList.forEach(rechargeGearDO -> {
Boolean flag = phoneRecordService.verifyPhone(request.getUserPhone(), rechargeGearDO.getRefundAmount().intValue() + "");
if (flag) {
throw new ServiceException("该挡位:" + rechargeGearDO.getName() + "你已购买,请勿重复操作");
throw new ServiceException(200, "该挡位:" + rechargeGearDO.getName() + "你已购买,一年内无法再次办理同套餐");
}
});
@ -1516,7 +1516,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
Map<Long, List<PhoneRecordDO>> collect1 = infoDOS.stream().collect(Collectors.groupingBy(PhoneRecordDO::getRechargeGearId));
orderInfos.forEach(info -> {
if (!CollectionUtils.isEmpty(collect1.get(info.getGearId()))) {
throw new ServiceException("该挡位:" + info.getName() + "你已购买,请勿重复操作");
throw new ServiceException(200, "该挡位:" + info.getName() + "你已购买,一年内无法再次办理同套餐");
}
});
}