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
16ea963e
Commit
16ea963e
authored
Dec 26, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
寄售单详情展示结款转账信息
parent
a17d602c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/ConsignSaleDetailVo.java
...java/com/wwdz/ch/admin/entity/vo/ConsignSaleDetailVo.java
+6
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ConsignSaleServiceImpl.java
...n/java/com/wwdz/ch/admin/impl/ConsignSaleServiceImpl.java
+14
-2
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/ConsignSaleDetailVo.java
View file @
16ea963e
...
...
@@ -5,6 +5,7 @@ import com.wwdz.ch.db.domain.UserVo;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.Map
;
@Data
public
class
ConsignSaleDetailVo
implements
Entity
{
...
...
@@ -43,4 +44,9 @@ public class ConsignSaleDetailVo implements Entity {
* 发布人信息
*/
private
UserVo
userVo
;
/**
* 结款转账信息
*/
private
Map
<
String
,
Object
>
payInfo
;
}
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ConsignSaleServiceImpl.java
View file @
16ea963e
...
...
@@ -173,9 +173,8 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
User
user
=
cacheUtil
.
getAppletUsers
(
userId
);
UserVo
userVo
=
new
UserVo
();
userVo
.
setNickname
(
user
.
getNickname
());
userVo
.
setPhone
(
user
Vo
.
getPhon
e
());
userVo
.
setPhone
(
user
.
getMobil
e
());
consignSaleDetailVo
.
setUserVo
(
userVo
);
consignSaleDetailVo
.
setConsignSaledId
(
dto
.
getSaleId
());
consignSaleDetailVo
.
setSystemState
(
consignSale
.
getSystemState
());
consignSaleDetailVo
.
setSystemStateName
(
ConsignSaleEnum
.
SaleForSysStateEnum
.
getNameByCode
(
consignSale
.
getSystemState
()));
...
...
@@ -216,6 +215,18 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSaleRecordVoList
.
add
(
consignSaleRecordVo
);
});
consignSaleDetailVo
.
setConsignSaleRecordVoList
(
consignSaleRecordVoList
);
//如果寄售单状态是已完成,则展示结款转账信息
if
(
consignSale
.
getSystemState
()
==
ConsignSaleEnum
.
SaleForSysStateEnum
.
FINISH
.
getCode
())
{
int
settleAmount
=
consignSale
.
getSettleAmount
();
String
amount
=
PriceUtil
.
convertPriceByTwo
(
settleAmount
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"name"
,
user
.
getNickname
());
map
.
put
(
"phone"
,
user
.
getMobile
());
map
.
put
(
"settleAmount"
,
amount
);
map
.
put
(
"credential"
,
consignSale
.
getCredential
());
consignSaleDetailVo
.
setPayInfo
(
map
);
}
return
Result
.
success
(
consignSaleDetailVo
);
}
catch
(
Exception
e
)
{
logger
.
info
(
"查询寄售单详情error:{}"
,
e
);
...
...
@@ -523,6 +534,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
map
.
put
(
"name"
,
user
.
getNickname
());
map
.
put
(
"phone"
,
user
.
getMobile
());
map
.
put
(
"settleAmount"
,
amount
);
map
.
put
(
"credential"
,
consignSale
.
getCredential
());
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"查询结款信息error : {}"
,
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