mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
运营商VIP
This commit is contained in:
@@ -4,6 +4,7 @@ import com.jsowell.pile.domain.MemberBasicInfo;
|
||||
import com.jsowell.pile.dto.QueryMemberInfoDTO;
|
||||
import com.jsowell.pile.vo.base.MerchantInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberVO;
|
||||
import com.jsowell.pile.vo.uniapp.MerchantVipVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@@ -118,4 +119,5 @@ public interface MemberBasicInfoMapper {
|
||||
*/
|
||||
List<MerchantInfoVO> getMerchantListByAuth(@Param("deptIds") List<String> deptIds);
|
||||
|
||||
List<MerchantVipVO> queryMerchantVipList(@Param("merchantIdList") List<String> merchantIdList);
|
||||
}
|
||||
|
||||
@@ -4,10 +4,7 @@ import com.jsowell.pile.domain.MemberBasicInfo;
|
||||
import com.jsowell.pile.dto.PlatformTesterDTO;
|
||||
import com.jsowell.pile.dto.QueryMemberInfoDTO;
|
||||
import com.jsowell.pile.dto.UniAppQueryMemberBalanceDTO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberBalanceVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberWalletLogVO;
|
||||
import com.jsowell.pile.vo.uniapp.PersonalPileInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.*;
|
||||
import com.jsowell.pile.vo.web.PlatformTesterVO;
|
||||
import com.jsowell.pile.vo.web.UpdateMemberBalanceDTO;
|
||||
|
||||
@@ -148,4 +145,6 @@ public interface IMemberBasicInfoService {
|
||||
* @return
|
||||
*/
|
||||
List<MemberBalanceVO> getMemberRefundAmount(List<String> memberIds);
|
||||
|
||||
List<MerchantVipVO> queryMerchantVipList(QueryMemberInfoDTO dto);
|
||||
}
|
||||
|
||||
@@ -27,10 +27,7 @@ import com.jsowell.pile.service.*;
|
||||
import com.jsowell.pile.util.UserUtils;
|
||||
import com.jsowell.pile.vo.base.LoginUserDetailVO;
|
||||
import com.jsowell.pile.vo.base.MerchantInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberBalanceVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberWalletLogVO;
|
||||
import com.jsowell.pile.vo.uniapp.PersonalPileInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.*;
|
||||
import com.jsowell.pile.vo.web.PlatformTesterVO;
|
||||
import com.jsowell.pile.vo.web.UpdateMemberBalanceDTO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -481,4 +478,16 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
||||
return memberWalletLogMapper.getMemberRefundAmount(memberIds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MerchantVipVO> queryMerchantVipList(QueryMemberInfoDTO dto) {
|
||||
// 获取后管登录用户的权限
|
||||
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<MerchantInfoVO> merchantInfoVOList = loginUserDetail.getMerchantInfoVOList();
|
||||
List<String> merchantIdList = merchantInfoVOList.stream()
|
||||
.map(MerchantInfoVO::getMerchantId).collect(Collectors.toList());
|
||||
List<MerchantVipVO> resultList = memberBasicInfoMapper.queryMerchantVipList(merchantIdList);
|
||||
|
||||
return resultList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ public class LoginUserDetailVO {
|
||||
private List<String> firstMerchantIdList;
|
||||
|
||||
/**
|
||||
* 获取当前会员中的运营商列表
|
||||
* 获取当前登录用户中有权限的运营商列表
|
||||
*/
|
||||
private List<MerchantInfoVO> merchantInfoVOList;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.jsowell.pile.vo.uniapp;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 运营商Vip VO
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class MerchantVipVO {
|
||||
/**
|
||||
* 会员Id
|
||||
*/
|
||||
private String memberId;
|
||||
|
||||
private String merchantId;
|
||||
|
||||
/**
|
||||
* 运营商名称
|
||||
*/
|
||||
private String merchantName;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 手机号码
|
||||
*/
|
||||
private String mobileNumber;
|
||||
|
||||
/**
|
||||
* 钱包编号,前端也可以显示为卡号
|
||||
*/
|
||||
private String walletCode;
|
||||
|
||||
/**
|
||||
* 本金金额
|
||||
*/
|
||||
private BigDecimal principalBalance;
|
||||
|
||||
/**
|
||||
* 赠送金额
|
||||
*/
|
||||
private BigDecimal giftBalance;
|
||||
|
||||
/**
|
||||
* 总账户余额
|
||||
*/
|
||||
private BigDecimal totalAccountAmount;
|
||||
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
private List<String> plateNumberList;
|
||||
|
||||
/**
|
||||
* VIN码
|
||||
*/
|
||||
private List<String> vinCodeList;
|
||||
|
||||
/**
|
||||
* 头像地址
|
||||
*/
|
||||
private String avatarUrl;
|
||||
}
|
||||
Reference in New Issue
Block a user