mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 查询会员余额明细添加字段
This commit is contained in:
@@ -11,6 +11,8 @@ public interface IMemberWalletInfoService {
|
||||
|
||||
MemberWalletInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
MemberWalletInfo selectByMemberId(String memberId);
|
||||
|
||||
int updateByPrimaryKeySelective(MemberWalletInfo record);
|
||||
|
||||
int updateByPrimaryKey(MemberWalletInfo record);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user