| 
					
				 | 
			
			
				@@ -149,20 +149,20 @@ public class ApiAllServiceImpl implements IApiAllService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public CurrYieldVO currYield() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         CurrYieldVO vo = new CurrYieldVO(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         vo.mock(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        IndexData todayData = redisCache.getCacheObject(CacheConstants.INDEX_CALC); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        IndexData currData = redisCache.getCacheObject(CacheConstants.INDEX_ALARM); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        vo.getJb().setYield(BigDecimal.valueOf(todayData.getEfficiency().getTotalLength()).setScale(0, RoundingMode.HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        vo.getJb().setYieldMax(BigDecimal.valueOf(50000)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        BigDecimal jdl = BigDecimal.valueOf(todayData.getEfficiency().getAEfficiency() + todayData.getEfficiency().getBEfficiency()).divide(BigDecimal.valueOf(2), 0, RoundingMode.HALF_UP); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (todayData.getEfficiency().getBEfficiency() == 0f) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            jdl = BigDecimal.valueOf(todayData.getEfficiency().getAEfficiency()).setScale(0, RoundingMode.HALF_UP); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        vo.getJb().setJdl(jdl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        vo.getJb().setOpen(currData.getDevice().getOnline(),currData.getDevice().getTotal()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        vo.getJb().setOpenNum(currData.getDevice().getOnline()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        vo.getJb().setTotalNum(currData.getDevice().getTotal()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        vo.getJb().setOpenRatio(BigDecimal.valueOf(currData.getDevice().getRunningRatio()).setScale(0, RoundingMode.HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        IndexData todayData = redisCache.getCacheObject(CacheConstants.INDEX_CALC); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        IndexData currData = redisCache.getCacheObject(CacheConstants.INDEX_ALARM); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        vo.getJb().setYield(BigDecimal.valueOf(todayData.getEfficiency().getTotalLength()).setScale(0, RoundingMode.HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        vo.getJb().setYieldMax(BigDecimal.valueOf(50000)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        BigDecimal jdl = BigDecimal.valueOf(todayData.getEfficiency().getAEfficiency() + todayData.getEfficiency().getBEfficiency()).divide(BigDecimal.valueOf(2), 0, RoundingMode.HALF_UP); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        if (todayData.getEfficiency().getBEfficiency() == 0f) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            jdl = BigDecimal.valueOf(todayData.getEfficiency().getAEfficiency()).setScale(0, RoundingMode.HALF_UP); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        vo.getJb().setJdl(jdl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+////        vo.getJb().setOpen(currData.getDevice().getOnline(),currData.getDevice().getTotal()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        vo.getJb().setOpenNum(currData.getDevice().getOnline()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        vo.getJb().setTotalNum(currData.getDevice().getTotal()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        vo.getJb().setOpenRatio(BigDecimal.valueOf(currData.getDevice().getRunningRatio()).setScale(0, RoundingMode.HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         redisCache.setCacheObject(CacheConstants.CURR_YIELD, vo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return redisCache.getCacheObject(CacheConstants.CURR_YIELD); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -311,19 +311,9 @@ public class ApiAllServiceImpl implements IApiAllService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void mock() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        YrTwinVO rzVO = redisCache.getCacheObject(CacheConstants.RZ_MOCK); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         TwinAllVO vo = new TwinAllVO(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         vo.setStock(stock()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         vo.setAvgMonth(avgMonth()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CurrYieldVO currYieldVO = currYield(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CurrYieldVO.RZ rz = currYieldVO.getRz(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        rz.setYield(rzVO.getStatus().getLength()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        rz.setOpenLine(rzVO.getStatus().getOpenProd()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        rz.setYieldMax(BigDecimal.valueOf(200000)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        rz.setOpenNum(rzVO.getStatus().getOpen()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        rz.setTotalNum(rzVO.getStatus().getTotal()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        rz.setOpenRatio(rzVO.getStatus().getRatio()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        vo.setCurrYield(currYieldVO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         vo.setProdTrade(prodTrade()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         vo.setEnergyTrade(energyTrade()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         redisCache.setCacheObject(CacheConstants.ALL_MOCK, vo); 
			 |