forked from rongchao/epmet-cloud-rizhao
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							122 lines
						
					
					
						
							3.8 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							122 lines
						
					
					
						
							3.8 KiB
						
					
					
				| package com.epmet.dao; | |
| 
 | |
| import com.epmet.dto.UserBadgeCertificateRecordDTO; | |
| import com.epmet.dto.form.AuthFieldFormDTO; | |
| import com.epmet.dto.form.OpenedOrClosedFormDTO; | |
| import com.epmet.dto.form.UserBadgeListFormDTO; | |
| import com.epmet.dto.form.UserBadgeUnitFormDTO; | |
| import com.epmet.dto.result.*; | |
| import org.apache.ibatis.annotations.Mapper; | |
| import org.apache.ibatis.annotations.Param; | |
| 
 | |
| import java.util.List; | |
| 
 | |
| /** | |
|  * @Author zxc | |
|  * @DateTime 2020/11/3 1:22 下午 | |
|  */ | |
| @Mapper | |
| public interface UserBadgeDao { | |
| 
 | |
|     /** | |
|      * @Description  查询已经点亮的徽章 | |
|      * @Param userBadgeListFormDTO | |
|      * @author zxc | |
|      * @date 2020/11/3 1:33 下午 | |
|      */ | |
|     List<UserBadgeListResultDTO> selectBadgeList(UserBadgeListFormDTO userBadgeListFormDTO); | |
| 
 | |
|     /** | |
|      * @Description  查询默认徽章和改名后的徽章 | |
|      * @Param userBadgeListFormDTO | |
|      * @author zxc | |
|      * @date 2020/11/3 3:11 下午 | |
|      */ | |
|     List<UserBadgeListResultDTO> selectAllBadge(@Param("customerId") String customerId); | |
| 
 | |
|     /** | |
|      * @Description  查询单个徽章信息 | |
|      * @Param customerId | |
|      * @Param badgeId | |
|      * @author zxc | |
|      * @date 2020/11/9 11:17 上午 | |
|      */ | |
|     UserBadgeListResultDTO selectBadgeByBadgeId(@Param("customerId") String customerId,@Param("badgeId") String badgeId); | |
| 
 | |
|     /** | |
|      * @Description  查询徽章认证记录 | |
|      * @Param userId | |
|      * @author zxc | |
|      * @date 2020/11/3 5:25 下午 | |
|      */ | |
|     List<UserOperListResultDTO> selectAuthRecord(@Param("userId")String userId); | |
| 
 | |
|     /** | |
|      * @Description  根据UserId查询个人徽章点亮信息 | |
|      * @Param userId | |
|      * @author zxc | |
|      * @date 2020/11/4 9:32 上午 | |
|      */ | |
|     List<UserOperListResultDTO> selectBadgeByUserId(@Param("userId")String userId); | |
| 
 | |
|     /** | |
|      * @Description  用户认证徽章记录表插入 | |
|      * @Param userBadgeCertificateRecordDTO | |
|      * @author zxc | |
|      * @date 2020/11/4 2:13 下午 | |
|      */ | |
|     int insertUserBadgeCertificateRecord(UserBadgeCertificateRecordDTO userBadgeCertificateRecordDTO); | |
| 
 | |
|     /** | |
|      * @Description  更新认证徽章记录最新 | |
|      * @Param badgeId | |
|      * @Param userId | |
|      * @author zxc | |
|      * @date 2020/11/4 2:16 下午 | |
|      */ | |
|     void updateCertificateRecordIsLast(@Param("badgeId")String badgeId,@Param("userId")String userId); | |
| 
 | |
|     /** | |
|      * @Description  查询单个徽章的认证记录 | |
|      * @Param userId | |
|      * @Param badgeId | |
|      * @author zxc | |
|      * @date 2020/11/4 4:09 下午 | |
|      */ | |
|     CertificationDetailResultDTO selectBadgeAuthRecord(@Param("userId")String userId, @Param("badgeId")String badgeId,@Param("recordId")String recordId); | |
| 
 | |
|     /** | |
|      * @Description  个人中心-查询徽章要显示的认证信息字段 | |
|      * @Param authFieldFormDTO | |
|      * @author zxc | |
|      * @date 2020/11/4 5:05 下午 | |
|      */ | |
|     List<AuthFieldResultDTO> selectAuthField(AuthFieldFormDTO authFieldFormDTO); | |
|     /** | |
|      * @Description  个人中心-取消/点亮徽章 | |
|      * @Param openedOrClosedFormDTO | |
|      * @author zxc | |
|      * @date 2020/11/4 6:04 下午 | |
|      */ | |
|     void updateIsOpen(OpenedOrClosedFormDTO openedOrClosedFormDTO); | |
|      | |
|     /** | |
|      * @Description 查找用户全部的显示徽章(排序) | |
|      * @param userId | |
|      * @param customerId | |
|      * @return java.util.List<com.epmet.dto.form.UserBadgeUnitFormDTO> | |
|      * @author wangc | |
|      * @date 2020.11.09 14:14 | |
|     */ | |
|     List<UserBadgeUnitFormDTO> selectUserSortedBadge(@Param("userId")String userId,@Param("customerId")String customerId); | |
| 
 | |
|     /** | |
|      * @Description 批量查找用户全部的显示徽章(排序) | |
|      * @param customerId | |
|      * @param userIds | |
|      * @return java.util.List<com.epmet.dto.result.UserBadgeInfoResultDTO> | |
|      * @author wangc | |
|      * @date 2020.11.09 14:14 | |
|      */ | |
|     List<UserBadgeInfoResultDTO> selectBatchUserSortedBadge(@Param("customerId")String customerId, @Param("userIds")List<String> userIds); | |
| }
 | |
| 
 |