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.
170 lines
4.6 KiB
170 lines
4.6 KiB
/**
|
|
* Copyright 2018 人人开源 https://www.renren.io
|
|
* <p>
|
|
* 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.
|
|
* <p>
|
|
* 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.
|
|
* <p>
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
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<BadgeEntity> {
|
|
|
|
/**
|
|
* 获取徽章列表
|
|
*
|
|
* @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);
|
|
|
|
/**
|
|
* 重名校验
|
|
*
|
|
* @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);
|
|
|
|
/**
|
|
* 编辑重名校验
|
|
*
|
|
* @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 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<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("gridId") String gridId);
|
|
|
|
/**
|
|
* 审核历史列表
|
|
*
|
|
* @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("gridId") String gridId);
|
|
|
|
/**
|
|
* @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);
|
|
|
|
/**
|
|
* 插入数据
|
|
*
|
|
* @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<GridAuditingBadgeCountResultDTO> queryGridAuditingBadgeCount(@Param("gridIdList") List<String> gridIdList);
|
|
}
|