forked from integrated_whb/integrated_whb
优化BUG 三项数据库修改报错
parent
013dd6e242
commit
997da4fe66
|
@ -153,12 +153,15 @@ public class TextLibraryController extends BaseController {
|
||||||
.filter(data -> dataList.stream()
|
.filter(data -> dataList.stream()
|
||||||
.noneMatch(craft -> StringUtils.equals(data.getString("CATEGORY_ID"), craft.getString("CATEGORY_ID"))))
|
.noneMatch(craft -> StringUtils.equals(data.getString("CATEGORY_ID"), craft.getString("CATEGORY_ID"))))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
PageData data = resultList.get(0);
|
|
||||||
if (!ObjectUtil.isEmpty(data)) {
|
if(!CollectionUtils.isEmpty(resultList)) {
|
||||||
findChildren(craftList, data, resultList);
|
PageData data = resultList.get(0);
|
||||||
}
|
if (!ObjectUtil.isEmpty(data)) {
|
||||||
for (PageData pageData : varList) {
|
findChildren(craftList, data, resultList);
|
||||||
pageData.put("SPECIFICATION_TYPES", resultList);
|
}
|
||||||
|
for (PageData pageData : varList) {
|
||||||
|
pageData.put("SPECIFICATION_TYPES", resultList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
map.put("varList", varList);
|
map.put("varList", varList);
|
||||||
map.put("page", page);
|
map.put("page", page);
|
||||||
|
|
|
@ -163,7 +163,7 @@ public class TextLibraryServiceImpl implements TextLibraryService {
|
||||||
String path = smb.saveFile(file[0]);
|
String path = smb.saveFile(file[0]);
|
||||||
condition.put("PATH", path);
|
condition.put("PATH", path);
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(condition.getString("BUS_TEXT_LIBRARY_ID")) && StringUtils.isEmpty(condition.getString("ISADD"))) {
|
if (StringUtils.isNotBlank(condition.getString("BUS_TEXT_LIBRARY_ID")) && StringUtils.equals(condition.getString("OPERATE"), "edit")) {
|
||||||
// 保存历史文件
|
// 保存历史文件
|
||||||
PageData entity = textlibraryMapper.findById(condition);
|
PageData entity = textlibraryMapper.findById(condition);
|
||||||
condition.put("REMOTE_FILE_NAME", Warden.getFileName(condition.getString("PATH")));
|
condition.put("REMOTE_FILE_NAME", Warden.getFileName(condition.getString("PATH")));
|
||||||
|
|
Loading…
Reference in New Issue