fix: 异常加上状态码
parent
696b28e2d5
commit
58037e0ebd
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue