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
90a3dc6e
Commit
90a3dc6e
authored
Sep 12, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交价格
parent
2ad601f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/BidRecordVo.java
...rc/main/java/com/wwdz/ch/admin/entity/vo/BidRecordVo.java
+2
-2
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/BidRecordServiceImpl.java
...ain/java/com/wwdz/ch/admin/impl/BidRecordServiceImpl.java
+4
-2
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/BidRecordService.java
...main/java/com/wwdz/ch/admin/service/BidRecordService.java
+1
-1
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/BidRecordVo.java
View file @
90a3dc6e
...
...
@@ -31,7 +31,7 @@ public class BidRecordVo implements Entity {
private
Integer
bidTime
;
@ApiModelProperty
(
value
=
"成交价格"
,
name
=
"price"
)
private
Double
price
;
private
Long
price
;
@ApiModelProperty
(
value
=
"钱币描述"
,
name
=
"extra"
)
private
String
extra
;
...
...
@@ -54,7 +54,7 @@ public class BidRecordVo implements Entity {
this
.
cid
=
record
.
getCid
();
this
.
images
=
Arrays
.
asList
(
record
.
getImages
().
split
(
";"
));
this
.
bidTime
=
record
.
getBidTime
();
this
.
price
=
record
.
getPrice
()
/
(
double
)
100
;
this
.
price
=
Math
.
round
(
record
.
getPrice
()
/
(
double
)
100
)
;
this
.
buyer
=
record
.
getBuyer
();
this
.
platform
=
record
.
getPlatform
();
this
.
extra
=
record
.
getExtra
();
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/BidRecordServiceImpl.java
View file @
90a3dc6e
...
...
@@ -43,8 +43,10 @@ public class BidRecordServiceImpl implements BidRecordService {
}
@Override
public
List
<
BidRecord
>
queryByCid
(
Integer
cid
)
{
return
bidRecordDao
.
queryByCid
(
cid
);
public
List
<
BidRecordVo
>
queryByCid
(
Integer
cid
)
{
List
<
BidRecord
>
list
=
bidRecordDao
.
queryByCid
(
cid
);
List
<
BidRecordVo
>
bidRecordVoList
=
list
.
parallelStream
().
map
(
a
->
new
BidRecordVo
(
a
)).
collect
(
Collectors
.
toList
());
return
bidRecordVoList
;
}
@Override
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/BidRecordService.java
View file @
90a3dc6e
...
...
@@ -14,7 +14,7 @@ public interface BidRecordService {
BidRecordVo
queryById
(
Long
id
);
List
<
BidRecord
>
queryByCid
(
Integer
cid
);
List
<
BidRecord
Vo
>
queryByCid
(
Integer
cid
);
Object
query
(
BidRecordRequestDto
dto
);
...
...
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