Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lei
fzm-joying
Commits
e4b1bc5a
Commit
e4b1bc5a
authored
Jan 17, 2022
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
a7b4dc77
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
14 deletions
+20
-14
CollectionNftVo.java
...c/main/java/com/fzm/common/entity/vo/CollectionNftVo.java
+0
-11
EntrustShelfService.java
...main/java/com/fzm/common/service/EntrustShelfService.java
+8
-0
EntrustShelfServiceImpl.java
.../com/fzm/common/service/impl/EntrustShelfServiceImpl.java
+7
-0
NftMapper.xml
joying-common/src/main/resources/mapper/NftMapper.xml
+2
-0
EntrustShelfController.java
...ava/com/fzm/portal/controller/EntrustShelfController.java
+3
-3
No files found.
joying-common/src/main/java/com/fzm/common/entity/vo/CollectionNftVo.java
View file @
e4b1bc5a
...
@@ -46,15 +46,4 @@ public class CollectionNftVo {
...
@@ -46,15 +46,4 @@ public class CollectionNftVo {
@ApiModelProperty
(
"是否已委托上架 0-否 1-是"
)
@ApiModelProperty
(
"是否已委托上架 0-否 1-是"
)
private
Integer
isEntrust
;
private
Integer
isEntrust
;
public
CollectionNftVo
(
Nft
nft
,
Category
category
)
{
this
.
id
=
nft
.
getId
();
this
.
nftId
=
nft
.
getNftId
();
this
.
category
=
category
.
getCategoryName
();
this
.
name
=
nft
.
getName
();
this
.
cover
=
nft
.
getCover
();
this
.
isCommemorate
=
nft
.
getIsCommemorate
();
this
.
fileUrl
=
nft
.
getFileUrl
();
this
.
publishTime
=
nft
.
getPublishTime
();
this
.
isEntrust
=
nft
.
getIsEntrust
();
}
}
}
joying-common/src/main/java/com/fzm/common/service/EntrustShelfService.java
View file @
e4b1bc5a
...
@@ -39,4 +39,12 @@ public interface EntrustShelfService extends IService<EntrustShelf> {
...
@@ -39,4 +39,12 @@ public interface EntrustShelfService extends IService<EntrustShelf> {
* @return
* @return
*/
*/
PageInfo
<
EntrustShelf
>
getPages
(
Integer
pageNum
,
Integer
pageSize
,
String
telephone
,
String
name
,
String
from
,
String
to
);
PageInfo
<
EntrustShelf
>
getPages
(
Integer
pageNum
,
Integer
pageSize
,
String
telephone
,
String
name
,
String
from
,
String
to
);
/**
* 根据nft哈希查询详情
*
* @param nftHash
* @return
*/
EntrustShelf
getByNftHash
(
String
nftHash
);
}
}
joying-common/src/main/java/com/fzm/common/service/impl/EntrustShelfServiceImpl.java
View file @
e4b1bc5a
...
@@ -86,4 +86,11 @@ public class EntrustShelfServiceImpl extends ServiceImpl<EntrustShelfMapper, Ent
...
@@ -86,4 +86,11 @@ public class EntrustShelfServiceImpl extends ServiceImpl<EntrustShelfMapper, Ent
}
}
return
new
PageInfo
<>(
this
.
list
(
queryWrapper
));
return
new
PageInfo
<>(
this
.
list
(
queryWrapper
));
}
}
@Override
public
EntrustShelf
getByNftHash
(
String
nftHash
)
{
QueryWrapper
<
EntrustShelf
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"nft_hash"
,
nftHash
);
return
this
.
getOne
(
queryWrapper
);
}
}
}
joying-common/src/main/resources/mapper/NftMapper.xml
View file @
e4b1bc5a
...
@@ -79,6 +79,8 @@
...
@@ -79,6 +79,8 @@
a.nft_id,
a.nft_id,
a.nft_hash,
a.nft_hash,
a.file_url,
a.file_url,
a.is_entrust,
a.publish_time,
a.is_commemorate,
a.is_commemorate,
b.category_name as category
b.category_name as category
from tb_nft a left join tb_category b on a.category_id = b.id
from tb_nft a left join tb_category b on a.category_id = b.id
...
...
joying-portal/src/main/java/com/fzm/portal/controller/EntrustShelfController.java
View file @
e4b1bc5a
...
@@ -35,10 +35,10 @@ public class EntrustShelfController {
...
@@ -35,10 +35,10 @@ public class EntrustShelfController {
return
ResponseModel
.
success
(
entrustShelfService
.
submit
(
entrustShelf
));
return
ResponseModel
.
success
(
entrustShelfService
.
submit
(
entrustShelf
));
}
}
@GetMapping
(
"/detail/{
id
}"
)
@GetMapping
(
"/detail/{
nftHash
}"
)
@ApiOperation
(
value
=
"根据id查询委托详情"
)
@ApiOperation
(
value
=
"根据id查询委托详情"
)
public
ResponseModel
<
EntrustShelf
>
getById
(
@PathVariable
Integer
id
)
{
public
ResponseModel
<
EntrustShelf
>
getById
(
@PathVariable
String
nftHash
)
{
return
ResponseModel
.
success
(
entrustShelfService
.
getBy
Id
(
id
));
return
ResponseModel
.
success
(
entrustShelfService
.
getBy
NftHash
(
nftHash
));
}
}
@PostMapping
(
"/update"
)
@PostMapping
(
"/update"
)
...
...
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