mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
96 lines
2.2 KiB
Java
96 lines
2.2 KiB
Java
package com.jsowell.pile.service;
|
|
|
|
import com.jsowell.pile.domain.MemberGroup;
|
|
import com.jsowell.pile.dto.MemberGroupDTO;
|
|
import com.jsowell.pile.vo.uniapp.MemberVO;
|
|
import com.jsowell.pile.vo.web.MemberDiscountVO;
|
|
import com.jsowell.pile.vo.web.MemberGroupVO;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 会员组Service接口
|
|
*
|
|
* @author jsowell
|
|
* @date 2023-12-26
|
|
*/
|
|
public interface MemberGroupService {
|
|
/**
|
|
* 查询会员组
|
|
*
|
|
* @param id 会员组主键
|
|
* @return 会员组
|
|
*/
|
|
public MemberGroup selectMemberGroupById(Long id);
|
|
|
|
/**
|
|
* 查询会员组列表
|
|
*/
|
|
public List<MemberGroupVO> selectMemberGroupList(MemberGroupDTO dto);
|
|
|
|
/**
|
|
* 新增会员组
|
|
*
|
|
* @param memberGroup 会员组
|
|
* @return 结果
|
|
*/
|
|
public int insertMemberGroup(MemberGroup memberGroup);
|
|
|
|
/**
|
|
* 修改会员组
|
|
*
|
|
* @param memberGroup 会员组
|
|
* @return 结果
|
|
*/
|
|
public int updateMemberGroup(MemberGroup memberGroup);
|
|
|
|
/**
|
|
* 批量删除会员组
|
|
*
|
|
* @param ids 需要删除的会员组主键集合
|
|
* @return 结果
|
|
*/
|
|
public int deleteMemberGroupByIds(Long[] ids);
|
|
|
|
/**
|
|
* 删除会员组信息
|
|
*
|
|
* @param id 会员组主键
|
|
* @return 结果
|
|
*/
|
|
public int deleteMemberGroupById(Long id);
|
|
|
|
/**
|
|
* 查询会员折扣
|
|
*
|
|
* @param merchantId
|
|
* @param stationId
|
|
* @param memberId
|
|
* @return
|
|
*/
|
|
MemberDiscountVO queryMemberDiscount(String merchantId, String stationId, String memberId);
|
|
|
|
MemberDiscountVO queryMemberDiscountV2(String merchantId, String stationId, String memberId);
|
|
|
|
int addMember(MemberGroupDTO dto);
|
|
|
|
List<MemberVO> queryMemberList(MemberGroupDTO dto);
|
|
|
|
MemberGroupVO queryByMerchantId(String merchantId);
|
|
|
|
/**
|
|
* 通过站点id查询当前站点是否配置集团
|
|
* @param stationId 站点信息
|
|
* @return
|
|
*/
|
|
MemberGroupVO queryByStationId(String stationId);
|
|
|
|
/**
|
|
* 添加会员到集团
|
|
* 如果该站点配置的有集团,就把会员自动加入到集团中
|
|
* 目前只有汇鑫大厦使用
|
|
* @return
|
|
*/
|
|
int addMember2MemberGroup(String memberId, String stationId);
|
|
}
|