Files
jsowell-charger-web/jsowell-pile/src/main/java/com/jsowell/pile/mapper/MemberGroupMapper.java

78 lines
1.7 KiB
Java
Raw Normal View History

2023-12-26 14:59:02 +08:00
package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.MemberGroup;
2024-01-08 15:04:49 +08:00
import com.jsowell.pile.vo.web.MemberDiscountVO;
2024-01-02 15:29:30 +08:00
import com.jsowell.pile.vo.web.MemberGroupVO;
2024-01-08 15:04:49 +08:00
import org.apache.ibatis.annotations.Param;
2024-01-02 16:00:33 +08:00
import org.springframework.stereotype.Repository;
2023-12-26 14:59:02 +08:00
import java.util.List;
/**
* 会员组Mapper接口
2024-01-02 16:00:33 +08:00
*
2023-12-26 14:59:02 +08:00
* @author jsowell
* @date 2023-12-26
*/
2024-01-02 16:00:33 +08:00
@Repository
public interface MemberGroupMapper {
2023-12-26 14:59:02 +08:00
/**
* 查询会员组
2024-01-02 16:00:33 +08:00
*
2023-12-26 14:59:02 +08:00
* @param id 会员组主键
* @return 会员组
*/
public MemberGroup selectMemberGroupById(Long id);
/**
* 查询会员组列表
2024-01-02 16:00:33 +08:00
*
2023-12-26 14:59:02 +08:00
* @param memberGroup 会员组
* @return 会员组集合
*/
public List<MemberGroup> selectMemberGroupList(MemberGroup memberGroup);
/**
* 新增会员组
2024-01-02 16:00:33 +08:00
*
2023-12-26 14:59:02 +08:00
* @param memberGroup 会员组
* @return 结果
*/
public int insertMemberGroup(MemberGroup memberGroup);
/**
* 修改会员组
2024-01-02 16:00:33 +08:00
*
2023-12-26 14:59:02 +08:00
* @param memberGroup 会员组
* @return 结果
*/
public int updateMemberGroup(MemberGroup memberGroup);
/**
* 删除会员组
2024-01-02 16:00:33 +08:00
*
2023-12-26 14:59:02 +08:00
* @param id 会员组主键
* @return 结果
*/
public int deleteMemberGroupById(Long id);
/**
* 批量删除会员组
2024-01-02 16:00:33 +08:00
*
2023-12-26 14:59:02 +08:00
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteMemberGroupByIds(Long[] ids);
2024-01-02 15:29:30 +08:00
List<MemberGroupVO> queryMemberGroupList(MemberGroup memberGroup);
2024-01-08 15:04:49 +08:00
/**
* 查询会员折扣
* @param merchantId
* @param stationId
* @param memberId
* @return
*/
MemberDiscountVO queryMemberDiscount(@Param("merchantId") String merchantId, @Param("stationId") String stationId, @Param("memberId") String memberId);
2023-12-26 14:59:02 +08:00
}