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
07150b8c
Commit
07150b8c
authored
Nov 07, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷新拍卖最新出价时保证金额度判断
parent
16456484
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
...wdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
+10
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/openShop/AuctionEarnestServiceImpl.java
...m/wwdz/ch/wx/impl/openShop/AuctionEarnestServiceImpl.java
+1
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
View file @
07150b8c
...
@@ -325,6 +325,16 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
...
@@ -325,6 +325,16 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
auctionRecordVo
.
setUserStateName
(
DistributionEnum
.
AuctionUserStateEnum
.
PROCESS
.
getDes
());
auctionRecordVo
.
setUserStateName
(
DistributionEnum
.
AuctionUserStateEnum
.
PROCESS
.
getDes
());
}
}
}
}
//检查用户的保证金额度是否满足出价
EarnestRecordRequestDto
earnestRecordRequestDto
=
new
EarnestRecordRequestDto
();
earnestRecordRequestDto
.
setUserId
(
dto
.
getUserId
());
earnestRecordRequestDto
.
setAuctionPrice
(
PriceUtil
.
convertPriceFromStr
(
auctionRecordVo
.
getNextPrice
()));
Result
checkEnoughEarnestResult
=
auctionEarnestService
.
checkEnoughEarnest
(
earnestRecordRequestDto
);
if
(!
checkEnoughEarnestResult
.
getSuccess
())
{
return
checkEnoughEarnestResult
;
}
auctionRecordVo
.
setStartPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getStartPrice
()));
auctionRecordVo
.
setStartPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getStartPrice
()));
Date
startTime
=
auctionConfig
.
getStartTime
();
Date
startTime
=
auctionConfig
.
getStartTime
();
Date
realEndTime
=
auctionConfig
.
getRealEndTime
();
Date
realEndTime
=
auctionConfig
.
getRealEndTime
();
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/openShop/AuctionEarnestServiceImpl.java
View file @
07150b8c
...
@@ -108,7 +108,7 @@ public class AuctionEarnestServiceImpl implements AuctionEarnestService {
...
@@ -108,7 +108,7 @@ public class AuctionEarnestServiceImpl implements AuctionEarnestService {
UserAccount
userAccount
=
userAccountDao
.
findByUserId
(
dto
.
getUserId
());
UserAccount
userAccount
=
userAccountDao
.
findByUserId
(
dto
.
getUserId
());
long
earnestUsableAmount
=
userAccount
.
getEarnestUsableAmount
();
long
earnestUsableAmount
=
userAccount
.
getEarnestUsableAmount
();
if
(
occupyAmount
>
earnestUsableAmount
)
{
if
(
occupyAmount
>
earnestUsableAmount
)
{
return
Result
.
failed
(
"保证金
额度不够,请先
缴纳"
);
return
Result
.
failed
(
"保证金
不足,去
缴纳"
);
}
}
return
Result
.
success
();
return
Result
.
success
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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