| | |
| | | }else{ |
| | | userPositionVO.setProfitAndLose(userPositionVO.getProfitAndLose().multiply(new BigDecimal(userPositionVO.getOrderLever()))); |
| | | } |
| | | Stock stock = stockMapper.findStockByCode(position.getStockCode()); |
| | | if(null != stock){ |
| | | userPositionVO.setStockId(stock.getId().toString()); |
| | | userPositionVO.setStockGidJb(stock.getStockGid()); |
| | | } |
| | | userPositionVOS.add(userPositionVO); |
| | | } |
| | | } |
| | |
| | | userRecharge.setPayTime(new Date()); |
| | | userRecharge.setOrderStatus(Integer.valueOf(1)); |
| | | userRecharge.setPayId(1); |
| | | userAssetsServices.availablebalanceChange(EStockType.IN.getCode(), |
| | | userAssetsServices.availablebalanceChange(EStockType.US.getCode(), |
| | | userId,EUserAssets.TOP_UP,new BigDecimal(amt),"",""); |
| | | int insertCount = this.userRechargeMapper.insert(userRecharge); |
| | | if (insertCount > 0) { |
| | |
| | | |
| | | private String stockSpell; |
| | | |
| | | private String stockId; |
| | | |
| | | private String stockGidJb; |
| | | |
| | | private String buyOrderId; |
| | | |
| | | private Date buyOrderTime; |