Commit 60a5e2aa authored by shiyu's avatar shiyu

保证金

parent 07150b8c
package com.wwdz.ch.core.entity;
import com.wwdz.ch.core.util.PriceUtil;
import com.wwdz.ch.db.domain.openShop.UserAccount;
import com.xxdxxs.entity.Entity;
import com.xxdxxs.utils.EntityMapper;
import lombok.Data;
import java.util.Date;
@Data
public class UserAccountVo implements Entity{
/**
* 用户id
*/
private Long userId;
/**
* 店铺质保金
*/
private String guaranteeAmount;
/**
* 货款
*/
private String goodsAmount;
/**
* 待入账货款
*/
private String goodsWaitEntryAmount;
/**
* 介绍佣金
*/
private String introduceAmount;
/**
* 待入账介绍佣金
*/
private String introduceWaitEntryAmount;
/**
* 拍卖保证金
*/
private String earnestAmount;
/**
* 保证金可用金额
*/
private String earnestUsableAmount;
/**
* 赠送的保证金金额
*/
private String giftEarnestAmount;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
public UserAccountVo convert(UserAccount userAccount) {
UserAccountVo userAccountVo = new UserAccountVo();
EntityMapper.copyAttribute(userAccount, userAccountVo);
userAccountVo.setGuaranteeAmount(PriceUtil.convertPriceFenToYuan(userAccount.getGuaranteeAmount()));
userAccountVo.setGoodsAmount(PriceUtil.convertPriceFenToYuan(userAccount.getGoodsAmount()));
userAccountVo.setGoodsWaitEntryAmount(PriceUtil.convertPriceFenToYuan(userAccount.getGoodsWaitEntryAmount()));
userAccountVo.setIntroduceAmount(PriceUtil.convertPriceFenToYuan(userAccount.getIntroduceAmount()));
userAccountVo.setIntroduceWaitEntryAmount(PriceUtil.convertPriceFenToYuan(userAccount.getIntroduceWaitEntryAmount()));
userAccountVo.setEarnestAmount(PriceUtil.convertPriceFenToYuan(userAccount.getEarnestAmount()));
userAccountVo.setEarnestUsableAmount(PriceUtil.convertPriceFenToYuan(userAccount.getEarnestUsableAmount()));
userAccountVo.setGiftEarnestAmount(PriceUtil.convertPriceFenToYuan(userAccount.getGiftEarnestAmount()));
return userAccountVo;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment