| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.xcong.excoin.common.contants.AppContants; |
| | | import com.xcong.excoin.common.enumerates.CoinTypeEnum; |
| | | import com.xcong.excoin.common.enumerates.MemberWalletCoinEnum; |
| | | import com.xcong.excoin.common.enumerates.OrderClosingTypeEnum; |
| | | import com.xcong.excoin.common.system.service.CommonService; |
| | | import com.xcong.excoin.modules.coin.entity.MemberAccountFlowEntity; |
| | | import com.xcong.excoin.modules.coin.entity.MemberAccountMoneyChange; |
| | | import com.xcong.excoin.modules.contract.dao.ContractEntrustOrderDao; |
| | | import com.xcong.excoin.modules.contract.dao.ContractHoldOrderDao; |
| | | import com.xcong.excoin.modules.contract.dao.ContractOrderDao; |
| | |
| | | memberWalletContractDao.increaseWalletContractBalanceById(returnMoney, returnMoney, null, traderWallet.getId()); |
| | | insertReturnProfitDetail(traderInfoEntity.getMemberId(), memberEntity.getId(), returnMoney, holdOrderEntity.getOrderNo()); |
| | | //增加返佣提醒 |
| | | String orderNo = holdOrderEntity.getOrderNo(); |
| | | LogRecordUtils.insertFollowerNotice(traderInfoEntity.getMemberId(), |
| | | NoticeConstant.RETURN_MONEY_TITLE, |
| | | StrUtil.format(NoticeConstant.RETURN_MONEY_CONTENT, |
| | | memberEntity.getInviteId(), |
| | | orderNo, |
| | | returnMoney.setScale(2, BigDecimal.ROUND_HALF_UP).toString())); |
| | | // String orderNo = holdOrderEntity.getOrderNo(); |
| | | // LogRecordUtils.insertFollowerNotice(traderInfoEntity.getMemberId(), |
| | | // NoticeConstant.RETURN_MONEY_TITLE, |
| | | // StrUtil.format(NoticeConstant.RETURN_MONEY_CONTENT, |
| | | // orderNo, |
| | | // holdOrderEntity.getSymbol(), |
| | | // returnMoney.setScale(2, BigDecimal.ROUND_HALF_UP).toString())); |
| | | // //带单返利的记录要在资产页面的其他记录 |
| | | // LogRecordUtils.insertMemberAccountMoneyChange( |
| | | // traderInfoEntity.getMemberId(), |
| | | // StrUtil.format(NoticeConstant.RETURN_MONEY_CONTENT_MAMC, |
| | | // orderNo, |
| | | // holdOrderEntity.getSymbol(), |
| | | // returnMoney.setScale(2, BigDecimal.ROUND_HALF_UP).toString()), |
| | | // returnMoney.setScale(2, BigDecimal.ROUND_HALF_UP), |
| | | // MemberWalletCoinEnum.WALLETCOINCODE.getValue(), |
| | | // MemberAccountMoneyChange.STATUS_SUCCESS_INTEGER, |
| | | // MemberAccountMoneyChange.TYPE_WALLET_AGENT); |
| | | } |
| | | } |
| | | } |
| | |
| | | continue; |
| | | } |
| | | |
| | | // holdOrderEntity.setForceClosingPrice(getForceSetPrice(wholePriceData, holdOrderEntity, holdOrderDataModel.getSymbol())); |
| | | holdOrderEntity.setStopLossPrice(CalculateUtil.calForcePriceForWhole(memberEntity, holdOrderEntity)); |
| | | contractHoldOrderDao.deleteById(holdOrderDataModel.getId()); |
| | | |
| | | ContractOrderEntity contractOrderEntity = ContractHoldOrderEntityMapper.INSTANCE.holdOrderToOrder(holdOrderEntity); |