Files
jsowell-charger-web/jsowell-pile/src/main/java/com/jsowell/pile/service/MemberGroupService.java

132 lines
3.1 KiB
Java
Raw Normal View History

2023-12-26 14:59:02 +08:00
package com.jsowell.pile.service;
import com.jsowell.pile.domain.MemberGroup;
2024-01-15 10:38:50 +08:00
import com.jsowell.pile.dto.MemberGroupDTO;
2024-02-26 13:43:02 +08:00
import com.jsowell.pile.vo.base.MemberGroupConsumptionVO;
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-03-01 09:05:33 +08:00
import com.jsowell.pile.vo.web.OrderListVO;
2023-12-26 14:59:02 +08:00
import java.util.List;
/**
* 会员组Service接口
2024-01-20 14:09:09 +08:00
*
2023-12-26 14:59:02 +08:00
* @author jsowell
* @date 2023-12-26
*/
2024-01-20 14:09:09 +08:00
public interface MemberGroupService {
2023-12-26 14:59:02 +08:00
/**
* 查询会员组
2024-01-20 14:09:09 +08:00
*
2023-12-26 14:59:02 +08:00
* @param id 会员组主键
* @return 会员组
*/
public MemberGroup selectMemberGroupById(Long id);
/**
* 查询会员组列表
*/
2024-01-20 14:09:09 +08:00
public List<MemberGroupVO> selectMemberGroupList(MemberGroupDTO dto);
2023-12-26 14:59:02 +08:00
/**
* 新增会员组
2024-01-20 14:09:09 +08:00
*
2023-12-26 14:59:02 +08:00
* @param memberGroup 会员组
* @return 结果
*/
public int insertMemberGroup(MemberGroup memberGroup);
/**
* 修改会员组
2024-01-20 14:09:09 +08:00
*
2023-12-26 14:59:02 +08:00
* @param memberGroup 会员组
* @return 结果
*/
public int updateMemberGroup(MemberGroup memberGroup);
/**
* 批量删除会员组
2024-01-20 14:09:09 +08:00
*
2023-12-26 14:59:02 +08:00
* @param ids 需要删除的会员组主键集合
* @return 结果
*/
public int deleteMemberGroupByIds(Long[] ids);
/**
* 删除会员组信息
2024-01-20 14:09:09 +08:00
*
2023-12-26 14:59:02 +08:00
* @param id 会员组主键
* @return 结果
*/
public int deleteMemberGroupById(Long id);
2024-01-08 15:04:49 +08:00
/**
* 查询会员折扣
2024-01-20 14:09:09 +08:00
*
2024-01-08 15:04:49 +08:00
* @param merchantId
* @param stationId
* @param memberId
* @return
*/
MemberDiscountVO queryMemberDiscount(String merchantId, String stationId, String memberId);
2024-01-15 10:38:50 +08:00
2024-02-02 17:01:07 +08:00
MemberDiscountVO queryMemberDiscountV2(String merchantId, String stationId, String memberId);
2024-01-15 10:38:50 +08:00
int addMember(MemberGroupDTO dto);
List<MemberVO> queryMemberList(MemberGroupDTO dto);
2024-02-01 15:16:01 +08:00
MemberGroupVO queryByMerchantId(String merchantId);
2024-02-23 10:32:23 +08:00
MemberGroupVO queryByGroupCode(String groupCode);
2024-02-01 15:16:01 +08:00
/**
* 通过站点id查询当前站点是否配置集团
* @param stationId 站点信息
* @return
*/
MemberGroupVO queryByStationId(String stationId);
/**
* 添加会员到集团
* 如果该站点配置的有集团就把会员自动加入到集团中
* 目前只有汇鑫大厦使用
* @return
*/
int addMember2MemberGroup(String memberId, String stationId);
2024-02-19 15:48:27 +08:00
/**
* 查询会员组/集团站点列表
* @param dto
* @return
*/
List<MemberGroupStationVO> queryStationList(MemberGroupDTO dto);
2024-02-23 15:06:29 +08:00
2024-03-01 09:05:33 +08:00
/**
* 集团移除站点
* @param dto
* @return
*/
2024-02-23 15:06:29 +08:00
int removeStationFromMemberGroup(MemberGroupDTO dto);
2024-02-26 13:43:02 +08:00
2024-03-01 09:05:33 +08:00
/**
* 集团移除会员
* @param dto
* @return
*/
2024-02-26 14:39:10 +08:00
int removeMemberFromMemberGroup(MemberGroupDTO dto);
2024-02-26 13:43:02 +08:00
/**
* 根据memberGroup查询车辆消费记录
*/
List<MemberGroupConsumptionVO> queryMemberGroupConsumptionList(String groupCode);
2024-03-01 09:05:33 +08:00
/**
* 查询车辆消费明细
*/
List<OrderListVO> queryConsumptionDetailListByVinCode(String groupCode, String vinCode);
2023-12-26 14:59:02 +08:00
}