|  |  | @ -23,6 +23,7 @@ import com.epmet.common.enu.AroundPartyConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.constant.FieldConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.constant.NumConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.constant.StrConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.exception.RenException; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.page.PageData; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.security.dto.TokenDto; | 
			
		
	
	
		
			
				
					|  |  | @ -351,6 +352,7 @@ public class UserPointStatisticalDailyServiceImpl extends BaseServiceImpl<UserPo | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         MyPointRankResultDTO result = new MyPointRankResultDTO(); | 
			
		
	
		
			
				
					|  |  |  |         result.setHeadPhoto(myInfoResult.getData().get(0).getHeadImgUrl()); | 
			
		
	
		
			
				
					|  |  |  |         result.setUserName(myInfoResult.getData().get(0).getRealName()); | 
			
		
	
		
			
				
					|  |  |  |         //获取客户下用户积分
 | 
			
		
	
		
			
				
					|  |  |  |         List<BizPointUserTotalDetailDTO> list = getUserPointList(tokenDto.getCustomerId(), null, null); | 
			
		
	
		
			
				
					|  |  |  |         result.setCustomerRank(getRank(list, tokenDto.getUserId())); | 
			
		
	
	
		
			
				
					|  |  | @ -378,7 +380,7 @@ public class UserPointStatisticalDailyServiceImpl extends BaseServiceImpl<UserPo | 
			
		
	
		
			
				
					|  |  |  |         if (!gridInfoResult.success()) { | 
			
		
	
		
			
				
					|  |  |  |             throw new RenException(gridInfoResult.getCode()); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         result.setGridName(gridInfoResult.getData().getGridName()); | 
			
		
	
		
			
				
					|  |  |  |         result.setGridName(gridInfoResult.getData().getParentAgencyName() + StrConstant.HYPHEN + gridInfoResult.getData().getGridName()); | 
			
		
	
		
			
				
					|  |  |  |         String agencyId = gridInfoResult.getData().getParentAgencyId(); | 
			
		
	
		
			
				
					|  |  |  |         //获取客户下用户积分
 | 
			
		
	
		
			
				
					|  |  |  |         List<BizPointUserTotalDetailDTO> list = getGridPointList(tokenDto.getCustomerId(), null); | 
			
		
	
	
		
			
				
					|  |  | @ -453,6 +455,8 @@ public class UserPointStatisticalDailyServiceImpl extends BaseServiceImpl<UserPo | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     private Boolean havePoint(List<BizPointUserTotalDetailDTO> list, String userId) { | 
			
		
	
		
			
				
					|  |  |  |         Map<String, Integer> map = list.stream().collect(Collectors.toMap(BizPointUserTotalDetailDTO::getUserId, BizPointUserTotalDetailDTO::getTotalPoint)); | 
			
		
	
		
			
				
					|  |  |  |         String point = null == map.get(userId)?"0":Integer.toString(map.get(userId)); | 
			
		
	
		
			
				
					|  |  |  |         log.info("userPoint:" + point); | 
			
		
	
		
			
				
					|  |  |  |         return null != map.get(userId); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -463,6 +467,8 @@ public class UserPointStatisticalDailyServiceImpl extends BaseServiceImpl<UserPo | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         //如果当月网格没有积分变动,则积分为0
 | 
			
		
	
		
			
				
					|  |  |  |         Map<String, Integer> map = list.stream().collect(Collectors.toMap(BizPointUserTotalDetailDTO::getGridId, BizPointUserTotalDetailDTO::getTotalPoint)); | 
			
		
	
		
			
				
					|  |  |  |         String points = null == map.get(gridId)?"0":Integer.toString(map.get(gridId)); | 
			
		
	
		
			
				
					|  |  |  |         log.info("gridPoint:" + points); | 
			
		
	
		
			
				
					|  |  |  |         if (null == map.get(gridId)) { | 
			
		
	
		
			
				
					|  |  |  |             BizPointUserTotalDetailDTO dto = new BizPointUserTotalDetailDTO(); | 
			
		
	
		
			
				
					|  |  |  |             dto.setGridId(gridId); | 
			
		
	
	
		
			
				
					|  |  | 
 |