update 查询会员余额明细添加字段

This commit is contained in:
Lemon
2023-07-24 15:32:19 +08:00
parent 992f945274
commit 649239e4bd
7 changed files with 166 additions and 31 deletions

View File

@@ -11,6 +11,8 @@ public interface IMemberWalletInfoService {
MemberWalletInfo selectByPrimaryKey(Integer id);
MemberWalletInfo selectByMemberId(String memberId);
int updateByPrimaryKeySelective(MemberWalletInfo record);
int updateByPrimaryKey(MemberWalletInfo record);

View File

@@ -33,6 +33,11 @@ public class MemberWalletInfoServiceImpl implements IMemberWalletInfoService {
return memberWalletInfoMapper.selectByPrimaryKey(id);
}
@Override
public MemberWalletInfo selectByMemberId(String memberId) {
return memberWalletInfoMapper.selectByMemberId(memberId);
}
@Override
public int updateByPrimaryKeySelective(MemberWalletInfo record) {
return memberWalletInfoMapper.updateByPrimaryKeySelective(record);

View File

@@ -619,8 +619,8 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
List<PileInfoVO> pileInfoVOS = queryPileDetailList(stationIdList);
// 对集合根据pileSn进行去重
ArrayList<PileInfoVO> pileInfoList = pileInfoVOS.stream()
.collect(Collectors.collectingAndThen(Collectors.toCollection(()
-> new TreeSet<>(Comparator.comparing(PileInfoVO::getPileSn))), ArrayList::new));
.collect(Collectors.collectingAndThen(Collectors.toCollection(
() -> new TreeSet<>(Comparator.comparing(PileInfoVO::getPileSn))), ArrayList::new));
// 桩总数
generalInfo.setTotalPileQuantity(String.valueOf(pileInfoList.size()));
// 总充电订单数 3.0 --> 3

View File

@@ -0,0 +1,35 @@
package com.jsowell.pile.vo.uniapp;
import com.jsowell.common.core.page.PageResponse;
import lombok.Data;
import java.math.BigDecimal;
/**
* 会员钱包明细VO
*
* @author Lemon
* @Date 2023/7/24 14:36
*/
@Data
public class MemberWalletInfoVO {
/**
* 会员id
*/
private String memberId;
/**
* 当前余额
*/
private BigDecimal currentBalance;
/**
* 总消费
*/
private BigDecimal totalConsumption;
/**
* 分页对象list
*/
private PageResponse pageResponse;
}