| | |
| | | import com.xcong.excoin.modules.member.entity.MemberWalletContractEntity; |
| | | import com.xcong.excoin.modules.platform.entity.PlatformTradeSettingEntity; |
| | | import com.xcong.excoin.rabbit.pricequeue.OrderModel; |
| | | import com.xcong.excoin.rabbit.pricequeue.whole.WholePriceDataModel; |
| | | import com.xcong.excoin.utils.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | ThreadPoolUtils.calReturnMoney(memberEntity.getId(), fee, contractOrderEntity, AgentReturnEntity.ORDER_TYPE_CLOSE); |
| | | } |
| | | |
| | | @Override |
| | | public void wholeBombOrder(WholePriceDataModel wholePriceData) { |
| | | |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | |
| | | |
| | | Map<Object, Object> value = redisUtils.hmget(AppContants.WHOLE_BOMB_PREFIX + memberId); |
| | | if (CollUtil.isNotEmpty(holdOrderEntities)) { |
| | | |
| | | BigDecimal maxLess = BigDecimal.ZERO; |
| | | ContractOrderEntity maxLessEntity = null; |
| | | BigDecimal totalProfitOrLess = BigDecimal.ZERO; |
| | | for (ContractHoldOrderEntity holdOrderEntity : holdOrderEntities) { |
| | | // 删除次仓订单 |
| | | contractHoldOrderDao.deleteById(holdOrderEntity.getId()); |