feat: There is no way the,
This commit is contained in:
-13
@@ -111,7 +111,6 @@ import org.slf4j.LoggerFactory;
|
|||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.scheduling.annotation.Async;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Propagation;
|
import org.springframework.transaction.annotation.Propagation;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@@ -3008,11 +3007,6 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
attrInfoMap.put(key, value);
|
attrInfoMap.put(key, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Async
|
|
||||||
public void insertIntoIndexAsync(Map<String, Object> attrInfoMap){
|
|
||||||
// 根据文件attid 读取文件内容
|
// 根据文件attid 读取文件内容
|
||||||
if (StringUtils.isNotEmpty(String.valueOf(attrInfoMap.get("content")))) {
|
if (StringUtils.isNotEmpty(String.valueOf(attrInfoMap.get("content")))) {
|
||||||
String[] attidlist = String.valueOf(attrInfoMap.get("content")).split(" , ");
|
String[] attidlist = String.valueOf(attrInfoMap.get("content")).split(" , ");
|
||||||
@@ -3090,13 +3084,6 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
attrInfoMap.put(key, value);
|
attrInfoMap.put(key, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Async
|
|
||||||
updateIntoIndexAsync(attrInfoMap);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Async
|
|
||||||
public void updateIntoIndexAsync(Map<String, Object> attrInfoMap){
|
|
||||||
// 根据文件attid 读取文件内容
|
// 根据文件attid 读取文件内容
|
||||||
if (org.apache.commons.lang.StringUtils.isNotEmpty(String.valueOf(attrInfoMap.get("content")))) {
|
if (org.apache.commons.lang.StringUtils.isNotEmpty(String.valueOf(attrInfoMap.get("content")))) {
|
||||||
String[] attidlist = String.valueOf(attrInfoMap.get("content")).split(",");
|
String[] attidlist = String.valueOf(attrInfoMap.get("content")).split(",");
|
||||||
|
|||||||
Reference in New Issue
Block a user