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
f6ae744b
Commit
f6ae744b
authored
Apr 29, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
17df2a29
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
AuditServiceImpl.java
...ava/cn/chnmuseum/party/service/impl/AuditServiceImpl.java
+3
-3
ExhibitionBoardController.java
...useum/party/web/controller/ExhibitionBoardController.java
+6
-1
LearningContentController.java
...useum/party/web/controller/LearningContentController.java
+7
-3
No files found.
src/main/java/cn/chnmuseum/party/service/impl/AuditServiceImpl.java
View file @
f6ae744b
...
...
@@ -304,7 +304,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
final
LambdaQueryWrapper
<
Asset
>
assetQueryWrapper
=
Wrappers
.<
Asset
>
lambdaQuery
().
eq
(
Asset:
:
getRefItemId
,
videoContentId
);
assetQueryWrapper
.
eq
(
Asset:
:
getPublished
,
true
);
final
List
<
Asset
>
assetList
=
this
.
assetMapper
.
selectList
(
assetQueryWrapper
);
final
Map
<
String
,
String
>
collect
=
assetList
.
stream
().
collect
(
Collectors
.
toMap
(
Asset:
:
getId
,
Asset:
:
getFileUrl
));
final
Map
<
String
,
String
>
collect
=
assetList
.
stream
().
collect
(
Collectors
.
toMap
(
Asset:
:
getId
,
Asset:
:
getFileUrl
Crypto
));
for
(
String
videoFileId
:
videoFileIdList
)
{
final
Asset
asset
=
this
.
assetMapper
.
selectById
(
videoFileId
);
asset
.
setThumbnail
(
videoContent
.
getThumbnail
());
...
...
@@ -409,7 +409,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
assetQueryWrapper
.
eq
(
Asset:
:
getFileCat
,
FileCatEnum
.
EXHIBITION_BOARD_DATUM
.
name
());
assetQueryWrapper
.
eq
(
Asset:
:
getPublished
,
true
);
final
List
<
Asset
>
assetList
=
this
.
assetMapper
.
selectList
(
assetQueryWrapper
);
final
Map
<
String
,
String
>
collect
=
assetList
.
stream
().
collect
(
Collectors
.
toMap
(
Asset:
:
getId
,
Asset:
:
getFileUrl
));
final
List
<
String
>
collect
=
assetList
.
stream
().
map
(
Asset:
:
getId
).
collect
(
Collectors
.
toList
(
));
for
(
String
datumId
:
datumIdList
)
{
final
Asset
asset
=
this
.
assetMapper
.
selectById
(
datumId
);
asset
.
setFileCat
(
FileCatEnum
.
EXHIBITION_BOARD_DATUM
.
name
());
...
...
@@ -419,7 +419,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
collect
.
remove
(
datumId
);
}
if
(!
collect
.
isEmpty
())
{
this
.
assetMapper
.
deleteBatchIds
(
collect
.
keySet
()
);
this
.
assetMapper
.
deleteBatchIds
(
collect
);
}
}
one
.
setAuditStatus
(
audit
.
getStatus
());
...
...
src/main/java/cn/chnmuseum/party/web/controller/ExhibitionBoardController.java
View file @
f6ae744b
...
...
@@ -103,6 +103,7 @@ public class ExhibitionBoardController extends BaseController {
.
name
(
exhibitionBoard
.
getName
())
.
refItemId
(
exhibitionBoard
.
getId
())
.
userId
(
user
.
getId
())
.
organId
(
user
.
getOrgId
())
.
type
(
AuditTypeEnum
.
EXHIBITION_BOARD
.
name
())
.
operation
(
AuditOperationEnum
.
ADD
.
name
())
.
status
(
AuditStatusEnum
.
TBC
.
name
())
...
...
@@ -157,11 +158,13 @@ public class ExhibitionBoardController extends BaseController {
one
.
setAuditStatus
(
AuditStatusEnum
.
TBC
.
name
());
this
.
exhibitionBoardService
.
updateById
(
one
);
final
TUser
user
=
getcurUser
();
final
Audit
audit
=
Audit
.
builder
()
.
content
(
exhibitionBoard
.
getName
())
.
name
(
exhibitionBoard
.
getName
())
.
refItemId
(
exhibitionBoard
.
getId
())
.
userId
(
getcurUser
().
getId
())
.
userId
(
user
.
getId
())
.
organId
(
user
.
getOrgId
())
.
type
(
AuditTypeEnum
.
EXHIBITION_BOARD
.
name
())
.
operation
(
AuditOperationEnum
.
EDIT
.
name
())
.
status
(
AuditStatusEnum
.
TBC
.
name
())
...
...
@@ -443,6 +446,7 @@ public class ExhibitionBoardController extends BaseController {
.
content
(
exhibitionBoard
.
getName
())
.
name
(
exhibitionBoard
.
getName
())
.
refItemId
(
id
)
.
organId
(
user
.
getOrgId
())
.
type
(
AuditTypeEnum
.
EXHIBITION_BOARD
.
name
())
.
operation
(
isPublish
?
AuditOperationEnum
.
UPPER
.
name
()
:
AuditOperationEnum
.
LOWER
.
name
())
.
status
(
AuditStatusEnum
.
TBC
.
name
())
...
...
@@ -468,6 +472,7 @@ public class ExhibitionBoardController extends BaseController {
.
name
(
exhibitionBoard
.
getName
())
.
userId
(
user
.
getId
())
.
refItemId
(
id
)
.
organId
(
user
.
getOrgId
())
.
type
(
AuditTypeEnum
.
EXHIBITION_BOARD
.
name
())
.
operation
(
AuditOperationEnum
.
REMOVE
.
name
())
.
status
(
AuditStatusEnum
.
TBC
.
name
())
...
...
src/main/java/cn/chnmuseum/party/web/controller/LearningContentController.java
View file @
f6ae744b
...
...
@@ -137,6 +137,7 @@ public class LearningContentController extends BaseController {
.
refItemId
(
learningContent
.
getId
())
.
type
(
AuditTypeEnum
.
LEARNING_CONTENT
.
name
())
.
userId
(
tUser
.
getId
())
.
organId
(
tUser
.
getOrgId
())
.
operation
(
AuditOperationEnum
.
ADD
.
name
())
.
status
(
AuditStatusEnum
.
TBC
.
name
())
.
level
(
AuditStatusEnum
.
TBC
.
name
())
...
...
@@ -165,10 +166,12 @@ public class LearningContentController extends BaseController {
one
.
setAuditStatus
(
AuditStatusEnum
.
TBC
.
name
());
this
.
learningContentService
.
updateById
(
one
);
final
TUser
tUser
=
getcurUser
();
final
Audit
audit
=
Audit
.
builder
()
.
content
(
learningContent
.
getName
())
.
name
(
learningContent
.
getName
())
.
userId
(
getcurUser
().
getId
())
.
userId
(
tUser
.
getId
())
.
organId
(
tUser
.
getOrgId
())
.
refItemId
(
learningContent
.
getId
())
.
type
(
AuditTypeEnum
.
LEARNING_CONTENT
.
name
())
.
operation
(
AuditOperationEnum
.
EDIT
.
name
())
...
...
@@ -396,7 +399,7 @@ public class LearningContentController extends BaseController {
}
final
List
<
String
>
exhibitionBoardIdList
=
learningContent
.
getExhibitionBoardIdList
();
if
(
exhibitionBoardIdList
!=
null
&&
!
exhibitionBoardIdList
.
isEmpty
())
{
if
(
exhibitionBoardIdList
!=
null
&&
!
exhibitionBoardIdList
.
isEmpty
())
{
final
List
<
ExhibitionBoard
>
exhibitionBoardList
=
this
.
exhibitionBoardService
.
listByIds
(
exhibitionBoardIdList
);
if
(!
exhibitionBoardList
.
isEmpty
())
{
learningContent
.
setExhibitionBoardIdList
(
exhibitionBoardIdList
);
...
...
@@ -545,7 +548,7 @@ public class LearningContentController extends BaseController {
@RequiresAuthentication
//@RequiresPermissions("learning:content:enable")
@MethodLog
(
operModule
=
OperModule
.
LEARNCONTENT
,
operType
=
OperType
.
ENABLE
)
public
Map
<
String
,
Object
>
enableLearningContent
(
@PathVariable
(
"id"
)
String
id
,
@RequestParam
(
"isPublish"
)
Boolean
isPublish
)
{
TUser
user
=
getcurUser
();
final
TUser
user
=
getcurUser
();
LearningContent
learningContent
=
this
.
learningContentService
.
getById
(
id
);
final
Audit
audit
=
Audit
.
builder
()
...
...
@@ -553,6 +556,7 @@ public class LearningContentController extends BaseController {
.
name
(
learningContent
.
getName
())
.
refItemId
(
id
)
.
userId
(
user
.
getId
())
.
organId
(
user
.
getOrgId
())
.
type
(
AuditTypeEnum
.
LEARNING_CONTENT
.
name
())
.
operation
(
isPublish
?
AuditOperationEnum
.
ENABLE
.
name
()
:
AuditOperationEnum
.
DISABLE
.
name
())
.
status
(
AuditStatusEnum
.
TBC
.
name
())
...
...
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