| | |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void wholeBomb() { |
| | | public synchronized void wholeBomb() { |
| | | Map<String, WholePriceDataModel> dataModelMap = WholeDataQueue.MAP; |
| | | if (CollUtil.isEmpty(dataModelMap)) { |
| | | return; |
| | |
| | | continue; |
| | | } |
| | | |
| | | synchronized (this) { |
| | | log.info("็ไปๅฅ็:{}", entry.getKey()); |
| | | if (entry.getKey() != null) { |
| | | dataModelMap.remove(entry.getKey()); |
| | |
| | | wholePriceData.setPrices(prices); |
| | | contractHoldOrderDao.updateMemberAllHoldOrderClosingStatus(wholePriceData.getMemberId()); |
| | | orderProducer.sendWholeBomb(JSONObject.toJSONString(wholePriceData)); |
| | | } |
| | | } |
| | | } |
| | | } |