|  | @ -20,7 +20,6 @@ import com.epmet.service.UserBadgeService; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.service.UserBaseInfoService; |  |  | import com.epmet.service.UserBaseInfoService; | 
			
		
	
		
		
			
				
					|  |  | import lombok.extern.slf4j.Slf4j; |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
		
			
				
					|  |  | import org.apache.commons.lang3.StringUtils; |  |  | import org.apache.commons.lang3.StringUtils; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.beans.BeanUtils; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.beans.factory.annotation.Autowired; |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.stereotype.Service; |  |  | import org.springframework.stereotype.Service; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.transaction.annotation.Transactional; |  |  | import org.springframework.transaction.annotation.Transactional; | 
			
		
	
	
		
		
			
				
					|  | @ -28,8 +27,6 @@ import org.springframework.util.CollectionUtils; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | import java.util.ArrayList; |  |  | import java.util.ArrayList; | 
			
		
	
		
		
			
				
					|  |  | import java.util.List; |  |  | import java.util.List; | 
			
		
	
		
		
			
				
					|  |  | import java.util.Map; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import java.util.stream.Collectors; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | /** |  |  | /** | 
			
		
	
		
		
			
				
					|  |  |  * @Author zxc |  |  |  * @Author zxc | 
			
		
	
	
		
		
			
				
					|  | @ -47,6 +44,8 @@ public class UserBadgeServiceImpl implements UserBadgeService { | 
			
		
	
		
		
			
				
					|  |  |     private UserBaseInfoService userBaseInfoService; |  |  |     private UserBaseInfoService userBaseInfoService; | 
			
		
	
		
		
			
				
					|  |  |     @Autowired |  |  |     @Autowired | 
			
		
	
		
		
			
				
					|  |  |     private EpmetMessageOpenFeignClient epmetMessageOpenFeignClient; |  |  |     private EpmetMessageOpenFeignClient epmetMessageOpenFeignClient; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     @Autowired | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     private EpmetMessageOpenFeignClient messageFeignClient; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     /** |  |  |     /** | 
			
		
	
		
		
			
				
					|  |  |      * @Description  查询已经点亮的徽章 |  |  |      * @Description  查询已经点亮的徽章 | 
			
		
	
	
		
		
			
				
					|  | @ -151,9 +150,32 @@ public class UserBadgeServiceImpl implements UserBadgeService { | 
			
		
	
		
		
			
				
					|  |  |         form.setCertificationImg(certificationAddFormDTO.getCertificationImg()); |  |  |         form.setCertificationImg(certificationAddFormDTO.getCertificationImg()); | 
			
		
	
		
		
			
				
					|  |  |         form.setSurname(certificationAddFormDTO.getSurname()); |  |  |         form.setSurname(certificationAddFormDTO.getSurname()); | 
			
		
	
		
		
			
				
					|  |  |         userBadgeDao.insertUserBadgeCertificateRecord(form); |  |  |         userBadgeDao.insertUserBadgeCertificateRecord(form); | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         //TODO 站内信发送  您好,您的xxx徽章因认证失败未成功点亮,请查看
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         return new Result(); |  |  |         return new Result(); | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     public void sendMessageByUser(UserBadgeCertificateRecordDTO form){ | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         List<UserMessageFormDTO> msgList = new ArrayList<>(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         UserMessageFormDTO formDTO = new UserMessageFormDTO(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         formDTO.setApp(BadgeConstant.RESI); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         formDTO.setCustomerId(form.getCustomerId()); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         formDTO.setGridId(form.getGridId()); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         UserBadgeListResultDTO userBadgeListResultDTO = userBadgeDao.selectBadgeByBadgeId(form.getCustomerId(), form.getBadgeId()); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         if (null == userBadgeListResultDTO){ | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             log.error(BadgeConstant.GET_BADGE_NAME_FAILURE); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             return; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         formDTO.setMessageContent(String.format(BadgeConstant.MESSAGE_CONTENT,userBadgeListResultDTO.getBadgeName())); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         formDTO.setTitle(BadgeConstant.AUTH_TITLE); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         formDTO.setReadFlag(BadgeConstant.READ_FLAG); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         formDTO.setUserId(form.getUserId()); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         msgList.add(formDTO); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         Result result = messageFeignClient.saveUserMessageList(msgList); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     /** |  |  |     /** | 
			
		
	
		
		
			
				
					|  |  |      * @Description  发送验证码 |  |  |      * @Description  发送验证码 | 
			
		
	
		
		
			
				
					|  |  |      * @Param badgeSendCodeFormDTO |  |  |      * @Param badgeSendCodeFormDTO | 
			
		
	
	
		
		
			
				
					|  | @ -205,7 +227,8 @@ public class UserBadgeServiceImpl implements UserBadgeService { | 
			
		
	
		
		
			
				
					|  |  |     public List<AuthFieldResultDTO> authField(AuthFieldFormDTO authFieldFormDTO) { |  |  |     public List<AuthFieldResultDTO> authField(AuthFieldFormDTO authFieldFormDTO) { | 
			
		
	
		
		
			
				
					|  |  |         List<AuthFieldResultDTO> authFieldResultDTOS = userBadgeDao.selectAuthField(authFieldFormDTO); |  |  |         List<AuthFieldResultDTO> authFieldResultDTOS = userBadgeDao.selectAuthField(authFieldFormDTO); | 
			
		
	
		
		
			
				
					|  |  |         if (CollectionUtils.isEmpty(authFieldResultDTOS)){ |  |  |         if (CollectionUtils.isEmpty(authFieldResultDTOS)){ | 
			
		
	
		
		
			
				
					
					|  |  |             return new ArrayList<>(); |  |  |             authFieldFormDTO.setCustomerId(BadgeConstant.DEFAULT); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |             return userBadgeDao.selectAuthField(authFieldFormDTO); | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |         return authFieldResultDTOS; |  |  |         return authFieldResultDTOS; | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
	
		
		
			
				
					|  | 
 |