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
0985556d
Commit
0985556d
authored
Nov 07, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保证金缴纳3
parent
354b2487
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/openShop/AuctionEarnestServiceImpl.java
...m/wwdz/ch/wx/impl/openShop/AuctionEarnestServiceImpl.java
+5
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/openShop/EarnestRecordServiceImpl.java
...om/wwdz/ch/wx/impl/openShop/EarnestRecordServiceImpl.java
+4
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/openShop/AuctionEarnestServiceImpl.java
View file @
0985556d
...
@@ -27,6 +27,8 @@ import org.springframework.transaction.interceptor.TransactionAspectSupport;
...
@@ -27,6 +27,8 @@ import org.springframework.transaction.interceptor.TransactionAspectSupport;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
@Service
@Service
...
@@ -61,7 +63,9 @@ public class AuctionEarnestServiceImpl implements AuctionEarnestService {
...
@@ -61,7 +63,9 @@ public class AuctionEarnestServiceImpl implements AuctionEarnestService {
earnestOrder
.
setUpdateTime
(
new
Date
());
earnestOrder
.
setUpdateTime
(
new
Date
());
earnestOrder
.
setState
(
EarnestEnum
.
EarnestOrderStateEnum
.
PRE_PAY
.
getCode
());
earnestOrder
.
setState
(
EarnestEnum
.
EarnestOrderStateEnum
.
PRE_PAY
.
getCode
());
earnestOrderDao
.
insert
(
earnestOrder
);
earnestOrderDao
.
insert
(
earnestOrder
);
return
Result
.
success
();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"earnestOrderId"
,
earnestOrderId
);
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"创建支付保证金订单 error : {}"
,
e
);
logger
.
error
(
"创建支付保证金订单 error : {}"
,
e
);
}
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/openShop/EarnestRecordServiceImpl.java
View file @
0985556d
...
@@ -87,7 +87,10 @@ public class EarnestRecordServiceImpl implements EarnestRecordService {
...
@@ -87,7 +87,10 @@ public class EarnestRecordServiceImpl implements EarnestRecordService {
earnestRecordRequestDto
.
setType
(
EarnestEnum
.
TypeEnum
.
OCCUPY
.
getCode
());
earnestRecordRequestDto
.
setType
(
EarnestEnum
.
TypeEnum
.
OCCUPY
.
getCode
());
earnestRecordRequestDto
.
setState
(
EarnestEnum
.
StateEnum
.
VALID
.
getCode
());
earnestRecordRequestDto
.
setState
(
EarnestEnum
.
StateEnum
.
VALID
.
getCode
());
long
occupyAmount
=
earnestRecordDao
.
sumForOccupy
(
earnestRecordRequestDto
);
long
occupyAmount
=
earnestRecordDao
.
sumForOccupy
(
earnestRecordRequestDto
);
map
.
put
(
"usedAmount"
,
PriceUtil
.
convertPriceFenToYuan
(
occupyAmount
));
//已用保证金
map
.
put
(
"usedEarnestAmount"
,
PriceUtil
.
convertPriceFenToYuan
(
occupyAmount
));
//已用出价
map
.
put
(
"usedAuctionAmount"
,
PriceUtil
.
convertPriceFenToYuan
(
occupyAmount
*
20
));
//查询用户的保证金账户
//查询用户的保证金账户
UserAccount
userAccount
=
userAccountDao
.
findByUserId
(
dto
.
getUserId
());
UserAccount
userAccount
=
userAccountDao
.
findByUserId
(
dto
.
getUserId
());
...
...
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