|
|
@ -19,15 +19,10 @@ package com.epmet.dao; |
|
|
|
|
|
|
|
import com.epmet.commons.mybatis.dao.BaseDao; |
|
|
|
import com.epmet.dto.BadgeDTO; |
|
|
|
import com.epmet.dto.result.BadgeAuditRecordResultDTO; |
|
|
|
import com.epmet.dto.result.BadgeAuditingResultDTO; |
|
|
|
import com.epmet.dto.result.BadgeDetailResultDTO; |
|
|
|
import com.epmet.dto.result.BadgeListResultDTO; |
|
|
|
import com.epmet.dto.result.UserBadgeListResultDTO; |
|
|
|
import com.epmet.dto.result.*; |
|
|
|
import com.epmet.entity.BadgeEntity; |
|
|
|
import org.apache.ibatis.annotations.Mapper; |
|
|
|
import org.apache.ibatis.annotations.Param; |
|
|
|
import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -42,114 +37,126 @@ public interface BadgeDao extends BaseDao<BadgeEntity> { |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取徽章列表 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/3 17:30 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @return java.util.List<com.epmet.dto.result.BadgeListResultDTO> |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/3 17:30 |
|
|
|
*/ |
|
|
|
List<BadgeListResultDTO> selectList(@Param("customerId") String customerId); |
|
|
|
|
|
|
|
/** |
|
|
|
* 重名校验 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 10:40 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param badgeName |
|
|
|
* @return java.util.List<com.epmet.dto.result.BadgeListResultDTO> |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 10:40 |
|
|
|
*/ |
|
|
|
List<BadgeListResultDTO> getDuplicateName(@Param("customerId") String customerId, @Param("badgeName") String badgeName); |
|
|
|
|
|
|
|
/** |
|
|
|
* 编辑重名校验 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 15:09 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param badgeId |
|
|
|
* @param badgeName |
|
|
|
* @return java.util.List<com.epmet.dto.result.BadgeListResultDTO> |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 15:09 |
|
|
|
*/ |
|
|
|
List<BadgeListResultDTO> getDuplicateNameForEdit(@Param("customerId") String customerId, @Param("badgeId") String badgeId, |
|
|
|
@Param("badgeName") String badgeName); |
|
|
|
@Param("badgeName") String badgeName); |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取徽章详情 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 14:30 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param badgeId |
|
|
|
* @return com.epmet.dto.result.BadgeDetailResultDTO |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 14:30 |
|
|
|
*/ |
|
|
|
BadgeDetailResultDTO selectDetail(@Param("customerId") String customerId, @Param("badgeId") String badgeId); |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取徽章信息 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 15:16 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param badgeId |
|
|
|
* @return com.epmet.entity.BadgeEntity |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 15:16 |
|
|
|
*/ |
|
|
|
BadgeEntity selectBadgeInfo(@Param("customerId") String customerId, @Param("badgeId") String badgeId); |
|
|
|
|
|
|
|
/** |
|
|
|
* 更新徽章信息 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 15:38 |
|
|
|
* |
|
|
|
* @param entity |
|
|
|
* @return void |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 15:38 |
|
|
|
*/ |
|
|
|
void updateBadge(BadgeEntity entity); |
|
|
|
|
|
|
|
/** |
|
|
|
* 删除徽章信息 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 15:39 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param badgeId |
|
|
|
* @return void |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/4 15:39 |
|
|
|
*/ |
|
|
|
void deleteBadge(@Param("customerId") String customerId, @Param("badgeId") String badgeId); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 待审核列表 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/5 10:01 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param pageNo |
|
|
|
* @param pageSize |
|
|
|
* @param gridId |
|
|
|
* @return java.util.List<com.epmet.dto.result.BadgeAuditingResultDTO> |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/5 10:01 |
|
|
|
*/ |
|
|
|
List<BadgeAuditingResultDTO> selectAuditingList(@Param("customerId") String customerId, @Param("pageNo") Integer pageNo, |
|
|
|
@Param("pageSize") Integer pageSize); |
|
|
|
@Param("pageSize") Integer pageSize, @Param("gridId") String gridId); |
|
|
|
|
|
|
|
/** |
|
|
|
* 审核历史列表 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/5 11:01 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param pageNo |
|
|
|
* @param pageSize |
|
|
|
* @param gridId |
|
|
|
* @return java.util.List<com.epmet.dto.result.BadgeAuditRecordResultDTO> |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/5 11:01 |
|
|
|
*/ |
|
|
|
List<BadgeAuditRecordResultDTO> selectAuditRecord(@Param("customerId") String customerId, @Param("pageNo") Integer pageNo, |
|
|
|
@Param("pageSize") Integer pageSize); |
|
|
|
@Param("pageSize") Integer pageSize, @Param("gridId") String gridId); |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 查询客户的徽章 |
|
|
|
* @param customerId |
|
|
|
* @return java.util.List<com.epmet.dto.result.UserBadgeListResultDTO> |
|
|
|
* @Description 查询客户的徽章 |
|
|
|
* @author wangc |
|
|
|
* @date 2020.11.05 15:50 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
List<UserBadgeListResultDTO> selectCustomerBadgePool(@Param("customerId") String customerId); |
|
|
|
|
|
|
|
/** |
|
|
|
* 插入数据 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/6 14:46 |
|
|
|
* |
|
|
|
* @param entity |
|
|
|
* @return void |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/11/6 14:46 |
|
|
|
*/ |
|
|
|
void insertBadge(BadgeDTO dto); |
|
|
|
} |