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.
 
 
 
 
 

225 lines
5.4 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.service;
import com.epmet.commons.mybatis.service.BaseService;
import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.dto.BadgeDTO;
import com.epmet.dto.form.*;
import com.epmet.dto.result.*;
import com.epmet.entity.BadgeEntity;
import java.util.List;
import java.util.Map;
/**
* 徽章
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-11-03
*/
public interface BadgeService extends BaseService<BadgeEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<BadgeDTO>
* @author generator
* @date 2020-11-03
*/
PageData<BadgeDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<BadgeDTO>
* @author generator
* @date 2020-11-03
*/
List<BadgeDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return BadgeDTO
* @author generator
* @date 2020-11-03
*/
BadgeDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-11-03
*/
void save(BadgeDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-11-03
*/
void update(BadgeDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-11-03
*/
void delete(String[] ids);
/**
* 获取徽章列表
* @author zhaoqifeng
* @date 2020/11/3 17:04
* @param customerId
* @return java.util.List<com.epmet.dto.result.BadgeListResultDTO>
*/
List<BadgeListResultDTO> getList(String customerId);
/**
* 添加徽章
* @author zhaoqifeng
* @date 2020/11/4 10:09
* @param tokenDto
* @param formDTO
* @return void
*/
void add(TokenDto tokenDto, AddBadgeFormDTO formDTO);
/**
* 徽章详情
* @author zhaoqifeng
* @date 2020/11/4 14:25
* @param tokenDto
* @param formDTO
* @return com.epmet.dto.result.BadgeDetailResultDTO
*/
BadgeDetailResultDTO detail(TokenDto tokenDto, BadgeFormDTO formDTO);
/**
* 编辑徽章
* @author zhaoqifeng
* @date 2020/11/4 14:28
* @param tokenDto
* @param formDTO
* @return void
*/
void edit(TokenDto tokenDto, EditBadgeFormDTO formDTO);
/**
* 删除徽章
* @author zhaoqifeng
* @date 2020/11/4 15:34
* @param tokenDto
* @param formDTO
* @return void
*/
void deleteBadge(TokenDto tokenDto, BadgeFormDTO formDTO);
/**
* 待审核列表
* @author zhaoqifeng
* @date 2020/11/5 9:50
* @param tokenDto
* @param formDTO
* @return java.util.List<com.epmet.dto.result.BadgeAuditingResultDTO>
*/
List<BadgeAuditingResultDTO> auditingList(TokenDto tokenDto, BadgeFormDTO formDTO);
/**
* 审核历史列表
* @author zhaoqifeng
* @date 2020/11/5 10:59
* @param tokenDto
* @param formDTO
* @return java.util.List<com.epmet.dto.result.BadgeAuditRecordResultDTO>
*/
List<BadgeAuditRecordResultDTO> auditRecord(TokenDto tokenDto, BadgeFormDTO formDTO);
/**
* 审核
* @author zhaoqifeng
* @date 2020/11/5 11:08
* @param formDTO
* @return void
*/
void audit(BadgeAuditFormDTO formDTO);
void testCache();
/**
* @param gridIdList
* @author yinzuomei
* @description 根据网格id, 查询每个网格有多少个徽章申请
* @Date 2020/11/12 15:56
**/
List<GridAuditingBadgeCountResultDTO> queryGridAuditingBadgeCount(List<String> gridIdList);
/**
* @Description 查询用户徽章
* @Param formDTO
* @author zxc
* @date 2021/4/22 下午4:17
*/
List<UserBadgesResultDTO> userBadges(UserBadgesFormDTO formDTO);
/**
* @Description 根据徽章查询用户列表
* @return
* @author wxz
* @date 2021.08.02 10:39
*/
List<ListUserByBadgeResultDTO> listUsersByBadge(String customerId, String badgeKey);
/**
* Desc: 查询网格下是否存在未审核的徽章,true:是,false:否
* @param gridId
* @author zxc
* @date 2022/3/16 9:42 上午
*/
Boolean badgeAuditReset(String gridId);
/**
* desc:根据网格id 修改审核状态
* @param customerId
* @param gridId
* @return
*/
Integer deleteBadgeCertificateAuditing(String customerId, String gridId);
/**
* pc端徽章审核-分页列表
* @param formDTO
* @return
*/
PageData<BadgeAuditRecordResultDTO> auditPageList(BadgeAuditPageFormDTO formDTO);
}