mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 09:29:59 +08:00
add 小程序查询个人信息接口新增 用户注册天数字段
This commit is contained in:
@@ -5,9 +5,12 @@ import com.jsowell.pile.dto.UniAppQueryMemberBalanceDTO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberBalanceVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberWalletLogVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface MemberWalletLogMapper {
|
||||
/**
|
||||
* delete by primary key
|
||||
|
||||
@@ -38,6 +38,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -392,6 +393,9 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
||||
// totalAccountAmount = memberWalletInfo.getPrincipalBalance();
|
||||
vo.setMerchantId(memberWalletInfo.getMerchantId());
|
||||
}
|
||||
// 计算用户注册天数
|
||||
String days = DateUtils.getPoorDays(new Date(), vo.getCreateTime());
|
||||
vo.setRegistrationDays(days);
|
||||
vo.setPrincipalBalance(principalBalance);
|
||||
vo.setGiftBalance(giftBalance);
|
||||
vo.setTotalAccountAmount(vo.getPrincipalBalance().add(vo.getGiftBalance()));
|
||||
|
||||
@@ -6,6 +6,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -64,6 +65,16 @@ public class MemberVO {
|
||||
*/
|
||||
private BigDecimal totalAccountAmount;
|
||||
|
||||
/**
|
||||
* 注册天数
|
||||
*/
|
||||
private String registrationDays;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
|
||||
@@ -187,7 +187,8 @@
|
||||
t1.nick_name as nickName,
|
||||
t1.avatar_url as avatarUrl,
|
||||
t1.mobile_number as mobileNumber,
|
||||
t1.merchant_id as merchantId
|
||||
t1.merchant_id as merchantId,
|
||||
t1.create_time as createTime
|
||||
<!--t2.principal_balance as principalBalance,
|
||||
t2.gift_balance as giftBalance-->
|
||||
FROM
|
||||
|
||||
Reference in New Issue
Block a user