Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liqin
chnmuseum-party
Commits
c5d03e45
Commit
c5d03e45
authored
Mar 26, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
3e3a1156
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
CopyrightOwnerController.java
...museum/party/web/controller/CopyrightOwnerController.java
+13
-9
application.properties
src/main/resources/application.properties
+1
-1
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/CopyrightOwnerController.java
View file @
c5d03e45
...
...
@@ -158,7 +158,7 @@ public class CopyrightOwnerController extends BaseController {
@ApiImplicitParams
(
value
=
{
@ApiImplicitParam
(
name
=
"_index"
,
value
=
"分页起始偏移量"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"_size"
,
value
=
"返回条数"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"ownerType"
,
value
=
"版权方类型"
,
paramType
=
"query"
,
dataType
=
"String"
,
required
=
true
),
@ApiImplicitParam
(
name
=
"ownerType"
,
value
=
"版权方类型"
,
paramType
=
"query"
,
dataType
=
"String"
,
required
=
true
,
allowableValues
=
"ASSET, EXHIBITION_BOARD"
),
@ApiImplicitParam
(
name
=
"nameOrCode"
,
value
=
"名称或编码"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"startDate"
,
value
=
"创建时间-开始"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"endDate"
,
value
=
"创建时间-结束"
,
paramType
=
"query"
,
dataType
=
"String"
)
...
...
@@ -193,17 +193,21 @@ public class CopyrightOwnerController extends BaseController {
for
(
CopyrightOwner
copyrightOwner
:
page
.
getRecords
())
{
if
(
CopyrightOwnerTypeEnum
.
ASSET
.
name
().
equals
(
genericPageParam
.
getOwnerType
()))
{
List
<
CopyrightOwnerAssetType
>
CopyrightOwnerAssetTypeList
=
this
.
copyrightOwnerAssetTypeService
.
list
(
Wrappers
.<
CopyrightOwnerAssetType
>
lambdaQuery
().
eq
(
CopyrightOwnerAssetType:
:
getCopyrightOwnerId
,
copyrightOwner
.
getId
()));
Set
<
String
>
idList
=
CopyrightOwnerAssetTypeList
.
stream
().
map
(
CopyrightOwnerAssetType:
:
getAssetTypeId
).
collect
(
Collectors
.
toSet
());
List
<
AssetType
>
assetTypeList
=
this
.
assetTypeService
.
listByIds
(
idList
);
String
assetTypeNameList
=
assetTypeList
.
stream
().
map
(
AssetType:
:
getName
).
collect
(
Collectors
.
joining
(
"、"
));
copyrightOwner
.
setAssetTypeNames
(
assetTypeNameList
);
if
(!
CopyrightOwnerAssetTypeList
.
isEmpty
())
{
Set
<
String
>
idList
=
CopyrightOwnerAssetTypeList
.
stream
().
map
(
CopyrightOwnerAssetType:
:
getAssetTypeId
).
collect
(
Collectors
.
toSet
());
List
<
AssetType
>
assetTypeList
=
this
.
assetTypeService
.
listByIds
(
idList
);
String
assetTypeNameList
=
assetTypeList
.
stream
().
map
(
AssetType:
:
getName
).
collect
(
Collectors
.
joining
(
"、"
));
copyrightOwner
.
setAssetTypeNames
(
assetTypeNameList
);
}
}
else
if
(
CopyrightOwnerTypeEnum
.
EXHIBITION_BOARD
.
name
().
equals
(
genericPageParam
.
getOwnerType
()))
{
LambdaQueryWrapper
<
ExhibitionBoard
>
lambdaQueryWrapper
=
Wrappers
.<
ExhibitionBoard
>
lambdaQuery
().
eq
(
ExhibitionBoard:
:
getBoardCopyrightOwnerId
,
copyrightOwner
.
getId
());
List
<
ExhibitionBoard
>
exhibitionBoardList
=
this
.
exhibitionBoardService
.
list
(
lambdaQueryWrapper
);
Set
<
String
>
assetTypeIdList
=
exhibitionBoardList
.
stream
().
map
(
ExhibitionBoard:
:
getAssetTypeId
).
collect
(
Collectors
.
toSet
());
List
<
AssetType
>
assetTypeList
=
this
.
assetTypeService
.
listByIds
(
assetTypeIdList
);
String
assetTypeNames
=
assetTypeList
.
stream
().
map
(
AssetType:
:
getName
).
collect
(
Collectors
.
joining
(
"、"
));
copyrightOwner
.
setAssetTypeNames
(
assetTypeNames
);
if
(!
exhibitionBoardList
.
isEmpty
())
{
Set
<
String
>
assetTypeIdList
=
exhibitionBoardList
.
stream
().
map
(
ExhibitionBoard:
:
getAssetTypeId
).
collect
(
Collectors
.
toSet
());
List
<
AssetType
>
assetTypeList
=
this
.
assetTypeService
.
listByIds
(
assetTypeIdList
);
String
assetTypeNames
=
assetTypeList
.
stream
().
map
(
AssetType:
:
getName
).
collect
(
Collectors
.
joining
(
"、"
));
copyrightOwner
.
setAssetTypeNames
(
assetTypeNames
);
}
}
}
return
getResult
(
page
);
...
...
src/main/resources/application.properties
View file @
c5d03e45
...
...
@@ -20,7 +20,7 @@ mybatis-plus.configuration.map-underscore-to-camel-case=true
mybatis-plus.configuration.cache-enabled
=
false
mybatis-plus.configuration.call-setters-on-nulls
=
true
mybatis-plus.configuration.jdbc-type-for-null
=
null
mybatis-plus.configuration.log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
########################################################
###FastDFS
...
...
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