xiaoyong931011
2020-08-28 28f0aa6728abd49e6789179ef43c213d42a750b0
src/main/java/com/xcong/excoin/rabbit/init/OrderProducerInit.java
@@ -59,9 +59,11 @@
                    // 爆仓价
                    BigDecimal forceSetPrice = order.getForceClosingPrice();
                    if (forceSetPrice != null) {
                        OrderModel model = new OrderModel(order.getId(), RabbitPriceTypeEnum.CLOSE_MORE_BOMB.getValue(), forceSetPrice.toPlainString(),
                                order.getSymbol(), order.getOperateNo());
                        producer.sendPriceOperate(JSONObject.toJSONString(model));
                        if (forceSetPrice.compareTo(BigDecimal.ZERO) >= 0) {
                            OrderModel model = new OrderModel(order.getId(), RabbitPriceTypeEnum.CLOSE_MORE_BOMB.getValue(), forceSetPrice.toPlainString(),
                                    order.getSymbol(), order.getOperateNo());
                            producer.sendPriceOperate(JSONObject.toJSONString(model));
                        }
                    }
                    // 止损
                    BigDecimal stopLossPrice = order.getStopLossPrice();
@@ -85,9 +87,11 @@
                    // 爆仓价
                    BigDecimal forceSetPrice = order.getForceClosingPrice();
                    if (forceSetPrice != null) {
                        OrderModel model = new OrderModel(order.getId(), RabbitPriceTypeEnum.CLOSE_LESS_BOMB.getValue(), forceSetPrice.toPlainString(),
                                order.getSymbol(), order.getOperateNo());
                        producer.sendPriceOperate(JSONObject.toJSONString(model));
                        if (forceSetPrice.compareTo(BigDecimal.ZERO) >= 0) {
                            OrderModel model = new OrderModel(order.getId(), RabbitPriceTypeEnum.CLOSE_LESS_BOMB.getValue(), forceSetPrice.toPlainString(),
                                    order.getSymbol(), order.getOperateNo());
                            producer.sendPriceOperate(JSONObject.toJSONString(model));
                        }
                    }
                    // 止损
                    BigDecimal stopLossPrice = order.getStopLossPrice();