| | |
| | | package com.xcong.excoin.rabbit.pricequeue; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.xcong.excoin.common.contants.AppContants; |
| | | import com.xcong.excoin.common.enumerates.CoinTypeEnum; |
| | |
| | | OrderModel orderModel = new OrderModel(null, 0, price, symbol, memberId); |
| | | list.add(orderModel); |
| | | String content = JSONObject.toJSONString(list); |
| | | orderProducer.sendWholeBomb(content); |
| | | |
| | | String key = AppContants.WHOLE_BOMB_PREFIX + memberId; |
| | | String value = redisUtils.getString(key); |
| | | if (StrUtil.isBlank(value)) { |
| | | orderProducer.sendWholeBomb(content); |
| | | contractHoldOrderDao.updateMemberAllHoldOrderClosingStatus(memberId); |
| | | |
| | | redisUtils.set(key, memberId); |
| | | } |
| | | } |
| | | } |
| | | } |