| | |
| | | continue; |
| | | } |
| | | |
| | | dataModelMap.remove(entry.getKey()); |
| | | redisUtils.set(AppContants.WHOLE_BOMB_MAP, JSONObject.toJSONString(dataModelMap)); |
| | | log.info("全仓爆仓触发:{}", JSONObject.toJSONString(wholePriceData)); |
| | | wholePriceData.setPrices(prices); |
| | | contractHoldOrderDao.updateMemberAllHoldOrderClosingStatus(wholePriceData.getMemberId()); |
| | | orderProducer.sendWholeBomb(JSONObject.toJSONString(wholePriceData)); |
| | | synchronized (this) { |
| | | if (entry.getKey() != null) { |
| | | dataModelMap.remove(entry.getKey()); |
| | | redisUtils.set(AppContants.WHOLE_BOMB_MAP, JSONObject.toJSONString(dataModelMap)); |
| | | log.info("全仓爆仓触发:{}", JSONObject.toJSONString(wholePriceData)); |
| | | wholePriceData.setPrices(prices); |
| | | contractHoldOrderDao.updateMemberAllHoldOrderClosingStatus(wholePriceData.getMemberId()); |
| | | orderProducer.sendWholeBomb(JSONObject.toJSONString(wholePriceData)); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |