Helius
2021-05-20 d8fb05f44d8969921b7128d92be282176475ee80
src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java
@@ -160,11 +160,11 @@
            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("不是购买单");
        }
@@ -181,12 +181,12 @@
            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);