文档库--编辑回显
This commit is contained in:
+28
-7
@@ -233,6 +233,12 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
sysAnnouncementService.saveAnnouncement(sysAnnouncement);
|
||||
sendWebsocket(StringUtils.join(serialNumberList, ","), StringUtils.join(serialNumberList, ","));
|
||||
}
|
||||
//删除es
|
||||
// for (String id : ids) {
|
||||
// jeroElasticsearchTemplate.delete();
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -506,17 +512,17 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
}
|
||||
}
|
||||
//对应标准中文
|
||||
if (correspondingStandardNameList.size() != 0) {
|
||||
// if (correspondingStandardNameList.size() != 0) {
|
||||
dataList.get(0).put("corresponding_standard", StringUtils.join(correspondingStandardNameList, ","));
|
||||
dataList.get(0).put("corresponding_standard_id", correspondingStandard);
|
||||
}
|
||||
if (replacedStandardNameList.size() != 0) {
|
||||
// }
|
||||
// if (replacedStandardNameList.size() != 0) {
|
||||
dataList.get(0).put("replaced_standard", StringUtils.join(replacedStandardNameList, ","));
|
||||
}
|
||||
if (replaceStandardNameList.size() != 0) {
|
||||
// }
|
||||
// if (replaceStandardNameList.size() != 0) {
|
||||
dataList.get(0).put("replace_standard", StringUtils.join(replaceStandardNameList, ","));
|
||||
dataList.get(0).put("replace_standard_id", replaceStandardTemp);
|
||||
}
|
||||
// }
|
||||
//代替标准中文
|
||||
// String replaceStandard = (String) dataList.get(0).get("replace_standard");
|
||||
// if (StringUtils.isNotBlank(replaceStandard)) {
|
||||
@@ -936,7 +942,13 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
JSONObject jsonObject = JSON.parseObject(json);
|
||||
int a=0;
|
||||
|
||||
// jeroElasticsearchTemplate.saveOrUpdate(null,null,idTemp,jsonObject);
|
||||
// try {
|
||||
// jeroElasticsearchTemplate.saveOrUpdate("documentLibrary","document","cce8d7d2e8454606ad9c7697f6dc2607",jsonObject);
|
||||
//// jeroElasticsearchTemplate.saveOrUpdate("documentLibrary","document",idTemp,jsonObject);
|
||||
// } catch (Exception e) {
|
||||
// int b = 0;
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
}
|
||||
|
||||
private void sendMsg(Map<String, Object> map, String idTemp) {
|
||||
@@ -1115,6 +1127,15 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
//删除文档库数据
|
||||
bussDocumentLibraryEOMapper.deleteById((String) map.get("id"));
|
||||
bussDocumentLibraryEOMapper.insertInfo(insertField, insertValue);
|
||||
String json = JSON.toJSONString(map);//map转String
|
||||
JSONObject jsonObject = JSON.parseObject(json);
|
||||
//修改es
|
||||
// try {
|
||||
//// jeroElasticsearchTemplate.saveOrUpdate("documentLibrary","document","cce8d7d2e8454606ad9c7697f6dc2607",jsonObject);
|
||||
// jeroElasticsearchTemplate.saveOrUpdate("documentLibrary","document",(String) map.get("id"),jsonObject);
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user