Commit fe4bd8c0 authored by nie'hong's avatar nie'hong

修改内容管理中修改信息时删除参考资料

parent 7554f448
......@@ -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();
}
}
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment