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
0459c374
Commit
0459c374
authored
Apr 10, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
44d0dc5d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
AuditServiceImpl.java
...energy/chnmuseum/party/service/impl/AuditServiceImpl.java
+6
-0
CopyrightOwnerController.java
...museum/party/web/controller/CopyrightOwnerController.java
+1
-0
FileUploadController.java
.../chnmuseum/party/web/controller/FileUploadController.java
+6
-0
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/AuditServiceImpl.java
View file @
0459c374
...
...
@@ -268,9 +268,11 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
update
=
this
.
videoContentService
.
removeById
(
videoContent
);
break
;
case
ADD:
videoContent
.
setPublished
(
true
);
update
=
this
.
videoContentService
.
updateById
(
videoContent
);;
break
;
case
EDIT:
videoContent
.
setPublished
(
true
);
update
=
this
.
videoContentService
.
updateById
(
videoContent
);;
break
;
default
:
...
...
@@ -309,9 +311,11 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
update
=
this
.
exhibitionBoardService
.
removeById
(
exhibitionBoard
);
break
;
case
ADD:
exhibitionBoard
.
setPublished
(
true
);
update
=
this
.
exhibitionBoardService
.
updateById
(
exhibitionBoard
);;
break
;
case
EDIT:
exhibitionBoard
.
setPublished
(
true
);
update
=
this
.
exhibitionBoardService
.
updateById
(
exhibitionBoard
);;
break
;
default
:
...
...
@@ -350,9 +354,11 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
update
=
this
.
learningContentService
.
removeById
(
learningContent
);
break
;
case
ADD:
learningContent
.
setPublished
(
true
);
update
=
this
.
learningContentService
.
updateById
(
learningContent
);
break
;
case
EDIT:
learningContent
.
setPublished
(
true
);
update
=
this
.
learningContentService
.
updateById
(
learningContent
);
break
;
default
:
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/CopyrightOwnerController.java
View file @
0459c374
...
...
@@ -126,6 +126,7 @@ public class CopyrightOwnerController extends BaseController {
lambdaQueryWrapper
.
eq
(
CopyrightOwner:
:
getDeleted
,
false
);
lambdaQueryWrapper
.
le
(
CopyrightOwner:
:
getExpireDateStart
,
TimeUtils
.
getDateTimeOfTimestamp
(
System
.
currentTimeMillis
()))
.
ge
(
CopyrightOwner:
:
getExpireDateEnd
,
TimeUtils
.
getDateTimeOfTimestamp
(
System
.
currentTimeMillis
()));
lambdaQueryWrapper
.
orderByDesc
(
CopyrightOwner:
:
getCreateTime
);
List
<
CopyrightOwner
>
copyrightOwnerList
=
copyrightOwnerService
.
list
(
lambdaQueryWrapper
);
return
getResult
(
copyrightOwnerList
);
}
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/FileUploadController.java
View file @
0459c374
...
...
@@ -278,6 +278,9 @@ public class FileUploadController extends BaseController {
if
(!
existChineseAudio
)
{
throw
new
InterfaceException
(
RESPONSE_CODE_ENUM
.
SERVER_ERROR
.
getResultCode
(),
"必须包含汉语音频"
);
}
if
(
files
.
length
>
5
)
{
return
getFailResult
(
"只能上传包含5种语言的音频"
);
}
int
successCount
=
0
;
int
failureCount
=
0
;
...
...
@@ -398,6 +401,9 @@ public class FileUploadController extends BaseController {
if
(!
matchChinese
)
{
throw
new
InterfaceException
(
RESPONSE_CODE_ENUM
.
SERVER_ERROR
.
getResultCode
(),
"文件必须包含汉语视频"
);
}
if
(
files
.
length
>
5
)
{
return
getFailResult
(
"只能上传包含5种语言的视频"
);
}
int
successCount
=
0
;
int
failureCount
=
0
;
...
...
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