积分模块相关接口
This commit is contained in:
parent
c69cc065a6
commit
029213e068
|
|
@ -15,7 +15,7 @@ public interface ShopUserMapper extends BaseMapper<TbShopUser> {
|
|||
@Select("<script>" +
|
||||
"SELECT su.id as id, su.user_id as user_id, su.head_img as headImg, su.name as nickName, su.sex as sex, " +
|
||||
"su.amount as amount, 0 as totalScore, su.telephone as telephone, u.last_log_in_at as lastLoginAt, " +
|
||||
"su.birth_day as birthDay, su.is_vip as isVip, su.created_at as createAt " +
|
||||
"su.birth_day as birthDay, su.is_vip as isVip, su.created_at as createAt, su.account_points as accountPoints, su.last_points_change_time as lastPointsChangeTime, su.last_float_points as lastFloatPoints " +
|
||||
"FROM tb_shop_user su " +
|
||||
"left join tb_user_info u on u.id = su.user_id " +
|
||||
"<where> " +
|
||||
|
|
|
|||
|
|
@ -71,6 +71,9 @@ public class TbShopUserServiceImpl implements TbShopUserService {
|
|||
shopUserInfoVo.setHeadImg(tbShopUser.getHeadImg());
|
||||
shopUserInfoVo.setTelephone(tbShopUser.getTelephone());
|
||||
shopUserInfoVo.setTotalScore(0);
|
||||
shopUserInfoVo.setAccountPoints(tbShopUser.getAccountPoints());
|
||||
shopUserInfoVo.setLastPointsChangeTime(tbShopUser.getLastPointsChangeTime());
|
||||
shopUserInfoVo.setLastFloatPoints(tbShopUser.getLastFloatPoints());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
|
||||
package cn.ysk.cashier.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class ShopUserInfoVo implements Serializable {
|
||||
|
|
@ -25,6 +27,20 @@ public class ShopUserInfoVo implements Serializable {
|
|||
private BigDecimal inMoney;
|
||||
private Integer orderNumber;
|
||||
|
||||
/**
|
||||
* 账户积分
|
||||
*/
|
||||
private Integer accountPoints;
|
||||
/**
|
||||
* 最近一次积分变动时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date lastPointsChangeTime;
|
||||
/**
|
||||
* 最近一次浮动积分
|
||||
*/
|
||||
private Integer lastFloatPoints;
|
||||
|
||||
public Object getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue