fix: 异常加上状态码

pull/4/head^2
tangqian 2023-05-30 18:26:41 +08:00
parent 696b28e2d5
commit 58037e0ebd
1 changed files with 2 additions and 2 deletions

View File

@ -1457,8 +1457,8 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
orderDO.setUserPhone(StringUtils.isEmpty(request.getUserPhone()) ? user.getMobile() : request.getUserPhone()); orderDO.setUserPhone(StringUtils.isEmpty(request.getUserPhone()) ? user.getMobile() : request.getUserPhone());
orderDO.setConfirmPhone(StringUtils.isEmpty(request.getConfirmPhone()) ? user.getMobile() : request.getConfirmPhone()); orderDO.setConfirmPhone(StringUtils.isEmpty(request.getConfirmPhone()) ? user.getMobile() : request.getConfirmPhone());
orderDO.setTotalNum(orderInfos.size()); orderDO.setTotalNum(orderInfos.size());
// BigDecimal sum = new BigDecimal(orderInfos.stream().mapToDouble(OrderContentRequest.OrderInfo::getGearAmount).sum()); BigDecimal sum = new BigDecimal(orderInfos.stream().mapToDouble(OrderContentRequest.OrderInfo::getGearAmount).sum());
BigDecimal sum = new BigDecimal("0.01"); // BigDecimal sum = new BigDecimal("0.01");
orderDO.setTotalPrice(sum); orderDO.setTotalPrice(sum);
orderDO.setPayPrice(sum); orderDO.setPayPrice(sum);
orderDO.setPayTime(LocalDateTime.now()); orderDO.setPayTime(LocalDateTime.now());