Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
60a5e2aa
Commit
60a5e2aa
authored
Nov 07, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保证金
parent
07150b8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
0 deletions
+82
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/UserAccountVo.java
.../src/main/java/com/wwdz/ch/core/entity/UserAccountVo.java
+82
-0
No files found.
ch-core/src/main/java/com/wwdz/ch/core/entity/UserAccountVo.java
0 → 100644
View file @
60a5e2aa
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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment