| | |
| | | if(stockConfig == null){ |
| | | return true; |
| | | } |
| | | |
| | | if(new BigDecimal(stockConfig.getCValue()).compareTo(pcp)<=0){ |
| | | if(pcp.compareTo(new BigDecimal(stockConfig.getCValue()))<=0){ |
| | | StockConfig limitConfig = iStockConfigServices.queryByKey(EConfigKey.LIMIT_DOWN_IS_SELL.getCode()); |
| | | if(limitConfig.getCValue().equals("1")){ |
| | | return true; |
| | | if(!limitConfig.getCValue().equals("1")){ |
| | | return false; |
| | | } |
| | | } |
| | | return false; |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | |
| | | if (userPositions.size() > 0) { |
| | | for (UserPosition position : userPositions) { |
| | | UserPositionVO userPositionVO = UserPointUtil.assembleUserPositionVO(position, priceServices.getNowPrice(position.getStockCode())); |
| | | userPositionVO.setOrderTotalPrice(userPositionVO.getOrderTotalPrice().multiply(new BigDecimal(userPositionVO.getOrderLever()))); |
| | | userPositionVO.setProfitAndLose(userPositionVO.getProfitAndLose().multiply(new BigDecimal(userPositionVO.getOrderLever()))); |
| | | userPositionVOS.add(userPositionVO); |
| | | } |
| | | } |