/** * Copyright 2018 人人开源 https://www.renren.io *

* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. *

* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *

* You should have received a copy of the GNU General Public License * along with this program. If not, see . */ package com.epmet.dao; import com.epmet.commons.mybatis.dao.BaseDao; import com.epmet.dto.BadgeDTO; import com.epmet.dto.result.*; import com.epmet.entity.BadgeEntity; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 徽章 * * @author generator generator@elink-cn.com * @since v1.0.0 2020-11-03 */ @Mapper public interface BadgeDao extends BaseDao { /** * 获取徽章列表 * * @param customerId * @return java.util.List * @author zhaoqifeng * @date 2020/11/3 17:30 */ List selectList(@Param("customerId") String customerId); /** * 重名校验 * * @param customerId * @param badgeName * @return java.util.List * @author zhaoqifeng * @date 2020/11/4 10:40 */ List getDuplicateName(@Param("customerId") String customerId, @Param("badgeName") String badgeName); /** * 编辑重名校验 * * @param customerId * @param badgeId * @param badgeName * @return java.util.List * @author zhaoqifeng * @date 2020/11/4 15:09 */ List getDuplicateNameForEdit(@Param("customerId") String customerId, @Param("badgeId") String badgeId, @Param("badgeName") String badgeName); /** * 获取徽章详情 * * @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); /** * 获取徽章信息 * * @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); /** * 更新徽章信息 * * @param entity * @return void * @author zhaoqifeng * @date 2020/11/4 15:38 */ void updateBadge(BadgeEntity entity); /** * 删除徽章信息 * * @param customerId * @param badgeId * @return void * @author zhaoqifeng * @date 2020/11/4 15:39 */ void deleteBadge(@Param("customerId") String customerId, @Param("badgeId") String badgeId); /** * 待审核列表 * * @param customerId * @param pageNo * @param pageSize * @param gridId * @return java.util.List * @author zhaoqifeng * @date 2020/11/5 10:01 */ List selectAuditingList(@Param("customerId") String customerId, @Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize, @Param("gridId") String gridId); /** * 审核历史列表 * * @param customerId * @param pageNo * @param pageSize * @param gridId * @return java.util.List * @author zhaoqifeng * @date 2020/11/5 11:01 */ List selectAuditRecord(@Param("customerId") String customerId, @Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize, @Param("gridId") String gridId); /** * @param customerId * @return java.util.List * @Description 查询客户的徽章 * @author wangc * @date 2020.11.05 15:50 */ List selectCustomerBadgePool(@Param("customerId") String customerId); /** * 插入数据 * * @param entity * @return void * @author zhaoqifeng * @date 2020/11/6 14:46 */ void insertBadge(BadgeDTO dto); /** * @param gridIdList * @author yinzuomei * @description 根据网格id, 查询每个网格有多少个徽章申请 * @Date 2020/11/12 15:59 **/ List queryGridAuditingBadgeCount(@Param("gridIdList") List gridIdList); }