| | |
| | | throw new GlobalException("订单不存在"); |
| | | } |
| | | |
| | | if (OtcOrder.STATUS_PAY.equals(otcOrder.getStatus())) { |
| | | if (!OtcOrder.STATUS_SUBMIT.equals(otcOrder.getStatus())) { |
| | | throw new GlobalException("状态不正确"); |
| | | } |
| | | |
| | | if (OtcEntrustOrder.ORDER_TYPE_B.equals(otcOrder.getOrderType())) { |
| | | if (!OtcEntrustOrder.ORDER_TYPE_B.equals(otcOrder.getOrderType())) { |
| | | throw new GlobalException("不是购买单"); |
| | | } |
| | | |
| | |
| | | throw new GlobalException("订单不存在"); |
| | | } |
| | | |
| | | if (OtcOrder.STATUS_PAY.equals(otcOrder.getStatus())) { |
| | | if (!OtcOrder.STATUS_PAY.equals(otcOrder.getStatus())) { |
| | | throw new GlobalException("状态不正确"); |
| | | } |
| | | |
| | | if (OtcEntrustOrder.ORDER_TYPE_S.equals(otcOrder.getOrderType())) { |
| | | throw new GlobalException("不是购买单"); |
| | | if (!OtcEntrustOrder.ORDER_TYPE_S.equals(otcOrder.getOrderType())) { |
| | | throw new GlobalException("不是出售单"); |
| | | } |
| | | |
| | | OtcOrder buyOrder = this.baseMapper.selectOrderByOrderNoAndType(otcOrder.getOrderNo(), OtcEntrustOrder.ORDER_TYPE_B); |