feat: There is no way the,

This commit is contained in:
super_liu
2022-05-09 11:31:09 +08:00
parent 276a83937e
commit 5337c11a21
@@ -111,7 +111,6 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@@ -3008,11 +3007,6 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
attrInfoMap.put(key, value);
}
}
}
@Async
public void insertIntoIndexAsync(Map<String, Object> attrInfoMap){
// 根据文件attid 读取文件内容
if (StringUtils.isNotEmpty(String.valueOf(attrInfoMap.get("content")))) {
String[] attidlist = String.valueOf(attrInfoMap.get("content")).split(" , ");
@@ -3090,13 +3084,6 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
attrInfoMap.put(key, value);
}
}
// Async
updateIntoIndexAsync(attrInfoMap);
}
@Async
public void updateIntoIndexAsync(Map<String, Object> attrInfoMap){
// 根据文件attid 读取文件内容
if (org.apache.commons.lang.StringUtils.isNotEmpty(String.valueOf(attrInfoMap.get("content")))) {
String[] attidlist = String.valueOf(attrInfoMap.get("content")).split(",");