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
fe4bd8c0
Commit
fe4bd8c0
authored
May 31, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改内容管理中修改信息时删除参考资料
parent
7554f448
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
PinYinUtil.java
src/main/java/cn/chnmuseum/party/common/util/PinYinUtil.java
+3
-0
ExhibitionBoardController.java
...useum/party/web/controller/ExhibitionBoardController.java
+7
-4
No files found.
src/main/java/cn/chnmuseum/party/common/util/PinYinUtil.java
View file @
fe4bd8c0
...
...
@@ -7,6 +7,8 @@ import net.sourceforge.pinyin4j.format.HanyuPinyinToneType;
import
net.sourceforge.pinyin4j.format.HanyuPinyinVCharType
;
import
net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination
;
import
java.util.ArrayList
;
/**
* 获取中文拼音工具类
*
...
...
@@ -60,4 +62,5 @@ public class PinYinUtil {
}
return
stringBuilder
.
toString
();
}
}
src/main/java/cn/chnmuseum/party/web/controller/ExhibitionBoardController.java
View file @
fe4bd8c0
...
...
@@ -157,8 +157,8 @@ public class ExhibitionBoardController extends BaseController {
if
(
datumIdList
==
null
||
datumIdList
.
isEmpty
())
{
return
getFailResult
(
"400"
,
"参考资料文件必须上传"
);
}
//
removeNotInIds
(
audioIdList
,
exhibitionBoard
.
getId
());
//
2021-05-31修改前
//
removeNotInIds(audioIdList,exhibitionBoard.getId());
for
(
String
audioId
:
audioIdList
)
{
final
Asset
asset
=
this
.
assetService
.
getById
(
audioId
);
...
...
@@ -169,8 +169,8 @@ public class ExhibitionBoardController extends BaseController {
this
.
assetService
.
updateById
(
asset
);
}
}
//
removeNotInIds
(
audioIdList
,
exhibitionBoard
.
getId
());
//
2021-05-31修改前
//
removeNotInIds(audioIdList,exhibitionBoard.getId());
for
(
String
datumId
:
datumIdList
)
{
final
Asset
asset
=
this
.
assetService
.
getById
(
datumId
);
...
...
@@ -183,6 +183,9 @@ public class ExhibitionBoardController extends BaseController {
this
.
assetService
.
updateById
(
asset
);
}
}
// 2021-05-31修改后
audioIdList
.
addAll
(
datumIdList
);
removeNotInIds
(
audioIdList
,
exhibitionBoard
.
getId
());
final
ExhibitionBoard
one
=
this
.
exhibitionBoardService
.
getById
(
exhibitionBoard
.
getId
());
one
.
setAuditStatus
(
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