提交 2a97e5a7 作者: yanxin

企业高管 合并+审核 bug修改

上级 a40e7a2d
...@@ -33,6 +33,7 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook; ...@@ -33,6 +33,7 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.*; import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
...@@ -60,6 +61,9 @@ import java.util.stream.Collectors; ...@@ -60,6 +61,9 @@ import java.util.stream.Collectors;
@Service @Service
public class CharacterBasicInfoServiceImpl extends ServiceImpl<CharacterBasicInfoMapper, CharacterBasicInfo> implements CharacterBasicInfoService { public class CharacterBasicInfoServiceImpl extends ServiceImpl<CharacterBasicInfoMapper, CharacterBasicInfo> implements CharacterBasicInfoService {
@Value("${caiji.syncUrl:http://1.95.79.85:8824/subjectProject/enterprise/api/personnelUpdate}")
private String syncUrl;
//生成id //生成id
@Autowired @Autowired
IGeneratorIdService generatorIdService; IGeneratorIdService generatorIdService;
...@@ -107,7 +111,7 @@ public class CharacterBasicInfoServiceImpl extends ServiceImpl<CharacterBasicInf ...@@ -107,7 +111,7 @@ public class CharacterBasicInfoServiceImpl extends ServiceImpl<CharacterBasicInf
} }
ExecutiveNew executive = SyncUtil.convertToCaiji(basicInfo); ExecutiveNew executive = SyncUtil.convertToCaiji(basicInfo);
log.info("同步高管信息到采集中心:{}", com.alibaba.fastjson2.JSON.toJSONString(executive)); log.info("同步高管信息到采集中心:{}", com.alibaba.fastjson2.JSON.toJSONString(executive));
String post = HttpUtil.post("http://1.95.79.85:8824/subjectProject/enterprise/api/personnelUpdate", com.alibaba.fastjson2.JSON.toJSONString(executive)); String post = HttpUtil.post(syncUrl, com.alibaba.fastjson2.JSON.toJSONString(executive));
log.info("同步高管信息到采集中心结果:{}", post); log.info("同步高管信息到采集中心结果:{}", post);
}catch (Exception e){ }catch (Exception e){
log.error("同步高管信息到采集中心异常:{}", e.getMessage()); log.error("同步高管信息到采集中心异常:{}", e.getMessage());
......
...@@ -112,6 +112,7 @@ public class CharacterExtractInfoServiceImpl extends ServiceImpl<CharacterExtrac ...@@ -112,6 +112,7 @@ public class CharacterExtractInfoServiceImpl extends ServiceImpl<CharacterExtrac
//相同 更新 //相同 更新
if(checkSimilarPerson(suspectedInfo,character)){ if(checkSimilarPerson(suspectedInfo,character)){
opFlag =synCharacterBasicInfo(character,suspectedId); opFlag =synCharacterBasicInfo(character,suspectedId);
character.setUid(uid );
}else{//新建人物信息 }else{//新建人物信息
character=convertCharacter(character,extractInfo); character=convertCharacter(character,extractInfo);
character.setUid(uid ); character.setUid(uid );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论