Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
f4fa7fbf
Commit
f4fa7fbf
authored
Sep 20, 2023
by
Wangmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
71767d6c
a8ab1f8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
pz-system/src/main/java/com/pz/system/domain/vo/PaymentRecordVo.java
+2
-2
pz-system/src/main/java/com/pz/system/service/impl/PaymentRecordServiceImpl.java
+3
-1
pz-system/src/main/java/com/pz/system/service/impl/UserRefundServiceImpl.java
+2
-2
No files found.
pz-system/src/main/java/com/pz/system/domain/vo/PaymentRecordVo.java
View file @
f4fa7fbf
...
...
@@ -49,13 +49,13 @@ public class PaymentRecordVo {
* 金额
*/
@ExcelProperty
(
value
=
"金额"
)
private
Long
money
;
private
Double
money
;
/**
* 用户
*/
@ExcelProperty
(
value
=
"用户"
)
private
Long
uid
;
private
Integer
uid
;
/**
* 备注
...
...
pz-system/src/main/java/com/pz/system/service/impl/PaymentRecordServiceImpl.java
View file @
f4fa7fbf
...
...
@@ -2,6 +2,7 @@ package com.pz.system.service.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.pz.common.core.domain.BaseEntity
;
import
com.pz.common.core.page.TableDataInfo
;
import
com.pz.common.core.domain.PageQuery
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -53,7 +54,7 @@ public class PaymentRecordServiceImpl implements IPaymentRecordService {
Optional
.
ofNullable
(
result
.
getRecords
())
.
ifPresent
(
paymentRecordVos
->
{
paymentRecordVos
.
forEach
(
paymentRecordVo
->
{
Optional
.
ofNullable
(
sysUserMapper
.
selectUserById
(
paymentRecordVo
.
getUid
()))
Optional
.
ofNullable
(
sysUserMapper
.
selectUserById
(
paymentRecordVo
.
getUid
()
.
longValue
()
))
.
ifPresent
(
sysUser
->
{
paymentRecordVo
.
setUserName
(
sysUser
.
getUserName
());
});
...
...
@@ -79,6 +80,7 @@ public class PaymentRecordServiceImpl implements IPaymentRecordService {
lqw
.
eq
(
StringUtils
.
isNotBlank
(
bo
.
getOtherOrder
()),
PaymentRecord:
:
getOtherOrder
,
bo
.
getOtherOrder
());
lqw
.
eq
(
bo
.
getMoney
()
!=
null
,
PaymentRecord:
:
getMoney
,
bo
.
getMoney
());
lqw
.
eq
(
bo
.
getUid
()
!=
null
,
PaymentRecord:
:
getUid
,
bo
.
getUid
());
lqw
.
orderByDesc
(
BaseEntity:
:
getCreateTime
);
return
lqw
;
}
...
...
pz-system/src/main/java/com/pz/system/service/impl/UserRefundServiceImpl.java
View file @
f4fa7fbf
...
...
@@ -59,10 +59,10 @@ public class UserRefundServiceImpl implements IUserRefundService {
userRefundVos
.
forEach
(
userRefundVo
->
{
Optional
.
ofNullable
(
totalOrderMapper
.
selectVoById
(
userRefundVo
.
getOrderId
()))
.
ifPresent
(
totalOrderVo
->
{
userRefundVo
.
setRemark
(
totalOrderVo
.
getRefundReason
());
userRefundVo
.
setOrderSn
(
totalOrderVo
.
getOrderSn
());
userRefundVo
.
setPayMoney
(
new
BigDecimal
(
totalOrderVo
.
getPayMoney
()));
userRefundVo
.
setPayMoney
(
new
BigDecimal
(
totalOrderVo
.
getPayMoney
())
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
)
);
});
Optional
.
ofNullable
(
businessMapper
.
selectVoById
(
userRefundVo
.
getBusinessId
())).
ifPresent
(
businessVo
->
{
userRefundVo
.
setBname
(
businessVo
.
getName
());
...
...
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