/** * 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.result.BadgeDetailResultDTO; import com.epmet.dto.result.BadgeListResultDTO; 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; /** * 徽章 * * @author generator generator@elink-cn.com * @since v1.0.0 2020-11-03 */ @Mapper public interface BadgeDao extends BaseDao { /** * 获取徽章列表 * @author zhaoqifeng * @date 2020/11/3 17:30 * @param customerId * @return java.util.List */ List selectList(@Param("customerId") String customerId); /** * 重名校验 * @author zhaoqifeng * @date 2020/11/4 10:40 * @param customerId * @param badgeName * @return java.util.List */ List 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 */ List getDuplicateNameForEdit(@Param("customerId") String customerId, @Param("badgeId") String badgeId, @Param("badgeName") String badgeName); /** * 获取徽章详情 * @author zhaoqifeng * @date 2020/11/4 14:30 * @param customerId * @param badgeId * @return com.epmet.dto.result.BadgeDetailResultDTO */ 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 */ BadgeEntity selectBadgeInfo(@Param("customerId") String customerId, @Param("badgeId") String badgeId); /** * 更新徽章信息 * @author zhaoqifeng * @date 2020/11/4 15:38 * @param entity * @return void */ void updateBadge(BadgeEntity entity); /** * 删除徽章信息 * @author zhaoqifeng * @date 2020/11/4 15:39 * @param customerId * @param badgeId * @return void */ void deleteBadge(@Param("customerId") String customerId, @Param("badgeId") String badgeId); }