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

102 lines
2.6 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-20 14:09:09 +08:00
import com.jsowell.pile.dto.MemberGroupDTO;
2024-02-19 15:48:27 +08:00
import com.jsowell.pile.vo.base.MemberGroupStationVO;
2024-07-16 14:07:06 +08:00
import com.jsowell.pile.vo.uniapp.customer.MemberVO;
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 会员组
*/
MemberGroup selectMemberGroupById(Long id);
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 memberGroup 会员组
* @return 会员组集合
*/
List<MemberGroup> selectMemberGroupList(MemberGroup memberGroup);
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 memberGroup 会员组
* @return 结果
*/
int insertMemberGroup(MemberGroup memberGroup);
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 memberGroup 会员组
* @return 结果
*/
int updateMemberGroup(MemberGroup memberGroup);
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 结果
*/
int deleteMemberGroupById(Long id);
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 ids 需要删除的数据主键集合
* @return 结果
*/
int deleteMemberGroupByIds(Long[] ids);
2024-01-02 15:29:30 +08:00
2024-01-20 14:09:09 +08:00
List<MemberGroupVO> queryMemberGroupList(MemberGroupDTO dto);
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);
2024-01-15 11:51:21 +08:00
2024-02-02 17:01:07 +08:00
MemberGroupVO queryByGroupCodeAndMemberId(@Param("groupCode") String groupCode, @Param("memberId") String memberId);
2024-01-15 11:51:21 +08:00
List<MemberVO> queryMemberList(@Param("groupCode") String groupCode);
2024-01-17 09:55:04 +08:00
MemberGroup selectByGroupCode(String groupCode);
2024-02-01 15:16:01 +08:00
MemberGroupVO queryByStationId(String stationId);
MemberGroupVO queryByMerchantId(String merchantId);
2024-02-02 17:01:07 +08:00
/**
* 查询集团编号
* @param merchantId 运营商id
* @param stationId 站点id
* @param memberId 会员id
* @return
*/
String queryMemberGroupCode(@Param("merchantId") String merchantId, @Param("stationId") String stationId, @Param("memberId") String memberId);
2024-02-19 15:48:27 +08:00
List<MemberGroupStationVO> queryStationList(MemberGroupDTO dto);
2023-12-26 14:59:02 +08:00
}