|
@@ -578,14 +578,18 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
*/
|
|
*/
|
|
@Transactional
|
|
@Transactional
|
|
public ConnectioninfoModel insertOrUpdate(ConnectioninfoModel connectioninfoModel, String node, long pagecode, String pagetitle) {
|
|
public ConnectioninfoModel insertOrUpdate(ConnectioninfoModel connectioninfoModel, String node, long pagecode, String pagetitle) {
|
|
|
|
+ log.info("param connectioninfoModel:{}",connectioninfoModel.getOrgcontent());
|
|
if (connectioninfoModel.getOrganizationInfo().getId() == null) {
|
|
if (connectioninfoModel.getOrganizationInfo().getId() == null) {
|
|
|
|
+ log.info("connectioninfoModel.getOrganizationInfo().getId() == null ...");
|
|
List<OrganizationInfo> orglist = organizationInfoMapper.getOrgListByNode(connectioninfoModel.getOrganizationInfo().getName(), node);
|
|
List<OrganizationInfo> orglist = organizationInfoMapper.getOrgListByNode(connectioninfoModel.getOrganizationInfo().getName(), node);
|
|
if (CollectionUtils.isNotEmpty(orglist)) {
|
|
if (CollectionUtils.isNotEmpty(orglist)) {
|
|
|
|
+ log.info("orglist is not empty...");
|
|
connectioninfoModel.getOrganizationInfo().setId(orglist.get(0).getId());
|
|
connectioninfoModel.getOrganizationInfo().setId(orglist.get(0).getId());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (connectioninfoModel.getId() == null || connectioninfoModel.getId() == 0) {//新增对接信息
|
|
|
|
-
|
|
|
|
|
|
+ if (connectioninfoModel.getId() == null || connectioninfoModel.getId() == 0) {
|
|
|
|
+ //新增对接信息
|
|
|
|
+ log.info("新增对接信息...connectioninfoModel.getId() == null || connectioninfoModel.getId() == 0");
|
|
UserModel user = connectioninfoModel.getUserModel();
|
|
UserModel user = connectioninfoModel.getUserModel();
|
|
if (user.getUserid() == 0 && "330122000".equals(node) && pagecode == 1000027L) {
|
|
if (user.getUserid() == 0 && "330122000".equals(node) && pagecode == 1000027L) {
|
|
connectioninfoModel.setCreator(2198L);
|
|
connectioninfoModel.setCreator(2198L);
|
|
@@ -827,18 +831,23 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
//insertContentLabel(Long.valueOf(node), connectioninfoModel.getPagecode(), connectioninfoModel.getId(), connectioninfoModel.getOrgcontent());
|
|
//insertContentLabel(Long.valueOf(node), connectioninfoModel.getPagecode(), connectioninfoModel.getId(), connectioninfoModel.getOrgcontent());
|
|
//insertLabelForConn(Long.valueOf(node), connectioninfoModel.getPagecode(), connectioninfoModel.getId(), connectioninfoModel.getOrgcontent());
|
|
//insertLabelForConn(Long.valueOf(node), connectioninfoModel.getPagecode(), connectioninfoModel.getId(), connectioninfoModel.getOrgcontent());
|
|
|
|
|
|
- } else {//修改对接信息
|
|
|
|
-
|
|
|
|
|
|
+ } else {
|
|
|
|
+ // 修改对接信息
|
|
|
|
+ log.info("修改对接信息...connectioninfoModel.getId() == null || connectioninfoModel.getId() == 0 else else else...");
|
|
connectioninfoModel.setUpdatetime(new Date());
|
|
connectioninfoModel.setUpdatetime(new Date());
|
|
-
|
|
|
|
|
|
+ log.info("getOrgType:{}",connectioninfoModel.getOrganizationInfo().getOrgtype());
|
|
//新标签系统走访时修改标签
|
|
//新标签系统走访时修改标签
|
|
if (connectioninfoModel.getOrganizationInfo().getOrgtype() == 10104L) {
|
|
if (connectioninfoModel.getOrganizationInfo().getOrgtype() == 10104L) {
|
|
//企业
|
|
//企业
|
|
- updateIntelligentLabel(Long.valueOf(node), Integer.valueOf(String.valueOf(connectioninfoModel.getPagecode())), Integer.valueOf(String.valueOf(connectioninfoModel.getId())), String.valueOf(connectioninfoModel.getCategoryid()),
|
|
|
|
- connectioninfoModel.getIshigh() == null ? "0" : String.valueOf(connectioninfoModel.getOrggradecode()), connectioninfoModel.getCompanyplabelname() == null ? "0" : connectioninfoModel.getCompanyplabelname());
|
|
|
|
|
|
+ log.info("企业...");
|
|
|
|
+ updateIntelligentLabel(Long.valueOf(node), Integer.valueOf(String.valueOf(connectioninfoModel.getPagecode())),
|
|
|
|
+ Integer.valueOf(String.valueOf(connectioninfoModel.getId())), String.valueOf(connectioninfoModel.getCategoryid()),
|
|
|
|
+ connectioninfoModel.getIshigh() == null ? "0" : String.valueOf(connectioninfoModel.getOrggradecode()),
|
|
|
|
+ connectioninfoModel.getCompanyplabelname() == null ? "0" : connectioninfoModel.getCompanyplabelname());
|
|
}
|
|
}
|
|
if (connectioninfoModel.getOrganizationInfo().getOrgtype() == 10105L) {
|
|
if (connectioninfoModel.getOrganizationInfo().getOrgtype() == 10105L) {
|
|
//高校
|
|
//高校
|
|
|
|
+ log.info("高校...");
|
|
updateIntelligentLabel(Long.valueOf(node), Integer.valueOf(String.valueOf(connectioninfoModel.getPagecode())), Integer.valueOf(String.valueOf(connectioninfoModel.getId())),
|
|
updateIntelligentLabel(Long.valueOf(node), Integer.valueOf(String.valueOf(connectioninfoModel.getPagecode())), Integer.valueOf(String.valueOf(connectioninfoModel.getId())),
|
|
connectioninfoModel.getOrggradecode() == null ? "0" : String.valueOf(connectioninfoModel.getOrggradecode()), connectioninfoModel.getCompanyplabelname() == null ? "0" : connectioninfoModel.getCompanyplabelname());
|
|
connectioninfoModel.getOrggradecode() == null ? "0" : String.valueOf(connectioninfoModel.getOrggradecode()), connectioninfoModel.getCompanyplabelname() == null ? "0" : connectioninfoModel.getCompanyplabelname());
|
|
}
|
|
}
|
|
@@ -846,49 +855,99 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
//修改自定义标签
|
|
//修改自定义标签
|
|
updateUserDefinedLabel(Long.valueOf(node), connectioninfoModel.getPagecode(), connectioninfoModel.getId(), connectioninfoModel.getCompanyplabelname());
|
|
updateUserDefinedLabel(Long.valueOf(node), connectioninfoModel.getPagecode(), connectioninfoModel.getId(), connectioninfoModel.getCompanyplabelname());
|
|
//标签记录表中修改简介中行业信息
|
|
//标签记录表中修改简介中行业信息
|
|
|
|
+ log.info("connectioninfoModel.getOrgcontent():{}",connectioninfoModel.getOrgcontent());
|
|
updateContentLabel(Long.valueOf(node), connectioninfoModel.getPagecode(), connectioninfoModel.getId(), connectioninfoModel.getOrgcontent());
|
|
updateContentLabel(Long.valueOf(node), connectioninfoModel.getPagecode(), connectioninfoModel.getId(), connectioninfoModel.getOrgcontent());
|
|
|
|
|
|
//资源库导入的数据,需要将connid设置为resourceId
|
|
//资源库导入的数据,需要将connid设置为resourceId
|
|
|
|
+ log.info("IS_RESOURCE_ADD_FLAG:{}",Util.IS_RESOURCE_ADD_FLAG);
|
|
if (Util.IS_RESOURCE_ADD_FLAG == true) {
|
|
if (Util.IS_RESOURCE_ADD_FLAG == true) {
|
|
connectioninfoModel.setIsresourcelibrarydata(1);
|
|
connectioninfoModel.setIsresourcelibrarydata(1);
|
|
}
|
|
}
|
|
- if ("新增企业信息".equals(pagetitle) || "完善企业信息".equals(pagetitle)) {
|
|
|
|
|
|
+ log.info("pagetitle:{}",pagetitle);
|
|
|
|
+ if ("新增企业信息".equals(pagetitle) || "完善企业信息".equals(pagetitle) || "编辑走访".equals(pagetitle)) {
|
|
|
|
+ log.info("新增企业信息 || 完善企业信息。");
|
|
connectioninfoModel.setBy1(1);
|
|
connectioninfoModel.setBy1(1);
|
|
|
|
|
|
OrganizationInfo organizationInfo = connectioninfoModel.getOrganizationInfo();
|
|
OrganizationInfo organizationInfo = connectioninfoModel.getOrganizationInfo();
|
|
|
|
+ log.info("organizationInfo:{}",JSON.toJSONString(organizationInfo));
|
|
|
|
|
|
|
|
+ log.info("getCreator:{}",organizationInfo.getCreator());
|
|
if (organizationInfo.getCreator() == null || organizationInfo.getCreator() == 0L) {
|
|
if (organizationInfo.getCreator() == null || organizationInfo.getCreator() == 0L) {
|
|
organizationInfo.setCreator(connectioninfoModel.getUserModel().getUserid());
|
|
organizationInfo.setCreator(connectioninfoModel.getUserModel().getUserid());
|
|
}
|
|
}
|
|
organizationInfoMapper.updateById(organizationInfo);
|
|
organizationInfoMapper.updateById(organizationInfo);
|
|
|
|
+ log.info("update after organizationInfo:{}",JSON.toJSONString(organizationInfo));
|
|
Resourcelibrary resourcelibrary = dataEntryResource.transferToResourceLibrary(organizationInfo, node);
|
|
Resourcelibrary resourcelibrary = dataEntryResource.transferToResourceLibrary(organizationInfo, node);
|
|
|
|
+ log.info("resourcelibrary id:{}",resourcelibrary.getId());
|
|
|
|
+ log.info("transferToResourceLibrary:{}",JSON.toJSONString(resourcelibrary));
|
|
//resourcelibraryMapper.delete(new EntityWrapper<Resourcelibrary>().eq("title", organizationInfo.getName()));
|
|
//resourcelibraryMapper.delete(new EntityWrapper<Resourcelibrary>().eq("title", organizationInfo.getName()));
|
|
|
|
+ // todo 210629 节点管理员编辑走访信息时,此处需要单独处理,。
|
|
|
|
+ if ("编辑走访".equals(pagetitle)){
|
|
|
|
+ log.info("编辑走访编辑走访编辑走访编辑走访。");
|
|
|
|
+ Resourcelibrary selResourcelibrary = resourcelibraryMapper.getResourceByTitle(connectioninfoModel.getTitle(),organizationInfo.getId());
|
|
|
|
+ log.info("selResourcelibrary content:{}",selResourcelibrary.getContent());
|
|
|
|
+ if (null != selResourcelibrary){
|
|
|
|
+ resourcelibrary.setId(selResourcelibrary.getId());
|
|
|
|
+ resourcelibrary.setSnowflakeid(selResourcelibrary.getSnowflakeid());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ log.info("resourcelibrary content:{}",resourcelibrary.getContent());
|
|
|
|
+ log.info("change resourcelibrary id:{},snowflakid:{}",resourcelibrary.getId(),resourcelibrary.getSnowflakeid());
|
|
resourcelibraryMapper.updateById(resourcelibrary);
|
|
resourcelibraryMapper.updateById(resourcelibrary);
|
|
|
|
+ log.info("resourcelibrary after update content:{}",resourcelibrary.getContent());
|
|
|
|
+ // log.info("transferToResourceLibrary after update :{}",JSON.toJSONString(resourcelibrary));
|
|
String claid = getClaid(node, connectioninfoModel.getUserModel().getUserid());
|
|
String claid = getClaid(node, connectioninfoModel.getUserModel().getUserid());
|
|
|
|
+ log.info("claid:{}",claid);
|
|
|
|
+ log.info("to del snowflakeid:{}",resourcelibrary.getSnowflakeid());
|
|
searchService.delete(resourcelibrary.getSnowflakeid());
|
|
searchService.delete(resourcelibrary.getSnowflakeid());
|
|
|
|
+ // log.info("insertEs resourcelibrary:{}",JSON.toJSONString(resourcelibrary));
|
|
|
|
+ log.info("insertEs claid:{},node:{}",claid,node);
|
|
|
|
+ log.info("insertES start...");
|
|
dataEntryResource.insertES(resourcelibrary, claid, node);
|
|
dataEntryResource.insertES(resourcelibrary, claid, node);
|
|
|
|
+ log.info("insertES end...");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ log.info("connectioninfoModel updateById start:{}",JSON.toJSONString(connectioninfoModel));
|
|
|
|
+ if (null == connectioninfoModel.getOrgcontent()) {
|
|
|
|
+ log.info("简介 null...");
|
|
|
|
+ connectioninfoModel.setOrgcontent("");
|
|
|
|
+ log.info("connectioninfoModel id1:{}",connectioninfoModel.getId());
|
|
|
|
+ }
|
|
|
|
+ if (null == connectioninfoModel.getRemark()){
|
|
|
|
+ connectioninfoModel.setRemark("");
|
|
|
|
+ log.info("connectioninfoModel remark:{}",connectioninfoModel.getRemark());
|
|
|
|
+ }
|
|
|
|
+ log.info("connectioninfoModel id2:{}",connectioninfoModel.getId());
|
|
|
|
+ log.info("connectioninfoModel orgcontent2:{}",connectioninfoModel.getOrgcontent());
|
|
connectioninfoMapper.updateById(connectioninfoModel);
|
|
connectioninfoMapper.updateById(connectioninfoModel);
|
|
|
|
+ log.info("connectioninfoModel updateById end:{}",JSON.toJSONString(connectioninfoModel));
|
|
|
|
+ log.info("images:{}",JSON.toJSONString(connectioninfoModel.getImages()));
|
|
if (connectioninfoModel.getImages() != null && !connectioninfoModel.getImages().equals("")) {
|
|
if (connectioninfoModel.getImages() != null && !connectioninfoModel.getImages().equals("")) {
|
|
|
|
+ log.info("getImages is not null...start upsertSystemPicture");
|
|
upsertSystemPicture(connectioninfoModel.getImages(), connectioninfoModel.getTablename(), connectioninfoModel.getUserModel().getUserid(), connectioninfoModel.getId());
|
|
upsertSystemPicture(connectioninfoModel.getImages(), connectioninfoModel.getTablename(), connectioninfoModel.getUserModel().getUserid(), connectioninfoModel.getId());
|
|
|
|
+ log.info("getImages is not null...end upsertSystemPicture");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- //表格通用导入程序,修改企业基本信息时,对机构表以及资源库相关数据执行更新操作
|
|
|
|
|
|
+ // 表格通用导入程序,修改企业基本信息时,对机构表以及资源库相关数据执行更新操作
|
|
|
|
+ log.info("Util.IS_COMMON_IMPORT_PROGRAM:{}",Util.IS_COMMON_IMPORT_PROGRAM);
|
|
if (Util.IS_COMMON_IMPORT_PROGRAM) {
|
|
if (Util.IS_COMMON_IMPORT_PROGRAM) {
|
|
|
|
+ log.info("Util.IS_COMMON_IMPORT_PROGRAM if...表格通用导入程序,修改企业基本信息时,对机构表以及资源库相关数据执行更新操作");
|
|
updateCommonImportProgram(connectioninfoModel, node);
|
|
updateCommonImportProgram(connectioninfoModel, node);
|
|
}
|
|
}
|
|
|
|
|
|
//武进联盟库添加功能
|
|
//武进联盟库添加功能
|
|
|
|
+ log.info("getTemplettype:{}",connectioninfoModel.getTemplettype());
|
|
if (connectioninfoModel.getTemplettype() == 18) {
|
|
if (connectioninfoModel.getTemplettype() == 18) {
|
|
|
|
+ log.info("武进联盟库添加功能...");
|
|
setTemplettype18(connectioninfoModel, node);
|
|
setTemplettype18(connectioninfoModel, node);
|
|
}
|
|
}
|
|
|
|
|
|
//武进导师库添加功能
|
|
//武进导师库添加功能
|
|
if (connectioninfoModel.getTemplettype() == 20) {
|
|
if (connectioninfoModel.getTemplettype() == 20) {
|
|
|
|
+ log.info("武进导师库添加功能...");
|
|
setTemplettype20(connectioninfoModel, node);
|
|
setTemplettype20(connectioninfoModel, node);
|
|
}
|
|
}
|
|
|
|
+ log.info("return connectioninfoModel:{}",connectioninfoModel.getOrgcontent());
|
|
|
|
|
|
return connectioninfoModel;
|
|
return connectioninfoModel;
|
|
}
|
|
}
|
|
@@ -1236,12 +1295,33 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
commonService.insertAuthority(companyHighleveltalentsLk);
|
|
commonService.insertAuthority(companyHighleveltalentsLk);
|
|
} else {
|
|
} else {
|
|
companyHighleveltalentsLkMapper.updateById(companyHighleveltalentsLk);
|
|
companyHighleveltalentsLkMapper.updateById(companyHighleveltalentsLk);
|
|
|
|
+ log.info("Long.valueOf(node):{}",Long.valueOf(node));
|
|
|
|
+ log.info("companyHighleveltalentsLk.getLinktype()****:{}",companyHighleveltalentsLk.getLinktype());
|
|
|
|
+ // log.info("Integer.valueOf(String.valueOf(companyHighleveltalentsLk.getLinktype())):{}",Integer.valueOf(String.valueOf(companyHighleveltalentsLk.getLinktype())));
|
|
|
|
+ log.info("Integer.valueOf(String.valueOf(companyHighleveltalentsLk.getConnid())):{}",Integer.valueOf(String.valueOf(companyHighleveltalentsLk.getConnid())));
|
|
|
|
+ log.info("String.valueOf(companyHighleveltalentsLk.getAcademicdegree()):{}",String.valueOf(companyHighleveltalentsLk.getAcademicdegree()));
|
|
|
|
+ log.info("companyHighleveltalentsLk.getDomain():{}",companyHighleveltalentsLk.getDomain());
|
|
|
|
+ log.info("companyHighleveltalentsLk.getTalentslabelname():{}",companyHighleveltalentsLk.getTalentslabelname());
|
|
//新标签系统走访时修改标签
|
|
//新标签系统走访时修改标签
|
|
- updateIntelligentLabel(Long.valueOf(node), Integer.valueOf(String.valueOf(companyHighleveltalentsLk.getLinktype())), Integer.valueOf(String.valueOf(companyHighleveltalentsLk.getConnid())), String.valueOf(companyHighleveltalentsLk.getAcademicdegree()), companyHighleveltalentsLk.getDomain(), companyHighleveltalentsLk.getTalentslabelname());
|
|
|
|
|
|
+ updateIntelligentLabel(Long.valueOf(node), null != companyHighleveltalentsLk.getLinktype() ? Integer.valueOf(String.valueOf(companyHighleveltalentsLk.getLinktype())) : 0,
|
|
|
|
+ Integer.valueOf(String.valueOf(companyHighleveltalentsLk.getConnid())),
|
|
|
|
+ String.valueOf(companyHighleveltalentsLk.getAcademicdegree()),
|
|
|
|
+ companyHighleveltalentsLk.getDomain(),
|
|
|
|
+ companyHighleveltalentsLk.getTalentslabelname());
|
|
//修改自定义标签
|
|
//修改自定义标签
|
|
- updateUserDefinedLabel(Long.valueOf(node), companyHighleveltalentsLk.getLinktype(), companyHighleveltalentsLk.getConnid(), companyHighleveltalentsLk.getTalentslabelname());
|
|
|
|
|
|
+ log.info("Long.valueOf(node):{}",Long.valueOf(node));
|
|
|
|
+ log.info("companyHighleveltalentsLk.getLinktype():{}",companyHighleveltalentsLk.getLinktype());
|
|
|
|
+ log.info("companyHighleveltalentsLk.getConnid():{}",companyHighleveltalentsLk.getConnid());
|
|
|
|
+ log.info("companyHighleveltalentsLk.getTalentslabelname():{}",companyHighleveltalentsLk.getTalentslabelname());
|
|
|
|
+ updateUserDefinedLabel(Long.valueOf(node), companyHighleveltalentsLk.getLinktype(), companyHighleveltalentsLk.getConnid(),
|
|
|
|
+ companyHighleveltalentsLk.getTalentslabelname());
|
|
//标签记录表中修改简介中行业信息
|
|
//标签记录表中修改简介中行业信息
|
|
- updateContentLabel(Long.valueOf(node), companyHighleveltalentsLk.getLinktype(), companyHighleveltalentsLk.getConnid(), companyHighleveltalentsLk.getAbout());
|
|
|
|
|
|
+ log.info("Long.valueOf(node):{}",Long.valueOf(node));
|
|
|
|
+ log.info("companyHighleveltalentsLk.getLinktype():{}",companyHighleveltalentsLk.getLinktype());
|
|
|
|
+ log.info("companyHighleveltalentsLk.getConnid():{}",companyHighleveltalentsLk.getConnid());
|
|
|
|
+ log.info("companyHighleveltalentsLk.getAbout():{}",companyHighleveltalentsLk.getAbout());
|
|
|
|
+ updateContentLabel(Long.valueOf(node), companyHighleveltalentsLk.getLinktype(), companyHighleveltalentsLk.getConnid(),
|
|
|
|
+ companyHighleveltalentsLk.getAbout());
|
|
|
|
|
|
}
|
|
}
|
|
if (companyHighleveltalentsLk.getImages() != null && !companyHighleveltalentsLk.getImages().equals("")) {
|
|
if (companyHighleveltalentsLk.getImages() != null && !companyHighleveltalentsLk.getImages().equals("")) {
|
|
@@ -2857,20 +2937,30 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
* @param id
|
|
* @param id
|
|
*/
|
|
*/
|
|
public void upsertSystemPicture(String images, String tablename, long userid, long id) {
|
|
public void upsertSystemPicture(String images, String tablename, long userid, long id) {
|
|
|
|
+ log.info("新增或更新图片...");
|
|
|
|
+ log.info("upsertSystemPicture param images:{},tablename:{},userid:{},id:{}",images,tablename,userid,id);
|
|
Typeentry conntypeentry = commonService.getTypeEntryByTypeNameAndTcname
|
|
Typeentry conntypeentry = commonService.getTypeEntryByTypeNameAndTcname
|
|
(Constant.TYPEENTRY_REMARK_TABLECODE, tablename);
|
|
(Constant.TYPEENTRY_REMARK_TABLECODE, tablename);
|
|
|
|
+ log.info("conntypeentry:{}",JSON.toJSONString(conntypeentry));
|
|
List<SystemPicture> piclist = Util.fromJson2List(images, SystemPicture[].class);
|
|
List<SystemPicture> piclist = Util.fromJson2List(images, SystemPicture[].class);
|
|
|
|
+ log.info("piclist:{}",JSON.toJSONString(piclist));
|
|
piclist.forEach(p -> {
|
|
piclist.forEach(p -> {
|
|
- if (p.getIsenabled() == Constant.TWO) {//删除图片
|
|
|
|
|
|
+ log.info("getIsenabled:{}",p.getIsenabled());
|
|
|
|
+ if (p.getIsenabled() == Constant.TWO) {
|
|
|
|
+ // 删除图片
|
|
|
|
+ log.info("删除图片...");
|
|
p.setUpdater(userid);
|
|
p.setUpdater(userid);
|
|
systemPictureMapper.updateById(p);
|
|
systemPictureMapper.updateById(p);
|
|
- } else {//新增
|
|
|
|
|
|
+ } else {
|
|
|
|
+ // 新增
|
|
|
|
+ log.info("新增图片...");
|
|
if (p.getId() == 0 || p.getId() == null) {
|
|
if (p.getId() == 0 || p.getId() == null) {
|
|
p.setCreator(userid);
|
|
p.setCreator(userid);
|
|
p.setUpdater(userid);
|
|
p.setUpdater(userid);
|
|
p.setInfoid(id);
|
|
p.setInfoid(id);
|
|
p.setModuleid(conntypeentry.getItemvalue());
|
|
p.setModuleid(conntypeentry.getItemvalue());
|
|
systemPictureMapper.insert(p);
|
|
systemPictureMapper.insert(p);
|
|
|
|
+ log.info("after insert p:{}",JSON.toJSONString(p));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -2924,11 +3014,15 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
* @param connectioninfoModel
|
|
* @param connectioninfoModel
|
|
*/
|
|
*/
|
|
public void updateCommonImportProgram(ConnectioninfoModel connectioninfoModel, String node) {
|
|
public void updateCommonImportProgram(ConnectioninfoModel connectioninfoModel, String node) {
|
|
|
|
+ log.info("表格通用导入程序,修改企业基本信息时,对机构表以及资源库相关数据执行更新操作");
|
|
//导入程序中的机构信息
|
|
//导入程序中的机构信息
|
|
OrganizationInfo ImportProgramOrganizationInfo = connectioninfoModel.getOrganizationInfo();
|
|
OrganizationInfo ImportProgramOrganizationInfo = connectioninfoModel.getOrganizationInfo();
|
|
|
|
+ log.info("导入程序中的机构信息ImportProgramOrganizationInfo:{}",JSON.toJSONString(ImportProgramOrganizationInfo));
|
|
String name = ImportProgramOrganizationInfo.getName();
|
|
String name = ImportProgramOrganizationInfo.getName();
|
|
|
|
+ log.info("name:{}",name);
|
|
|
|
|
|
List<OrganizationInfo> list = organizationInfoMapper.getOrgListByNode(name, node);
|
|
List<OrganizationInfo> list = organizationInfoMapper.getOrgListByNode(name, node);
|
|
|
|
+ log.info("list:{}",JSON.toJSONString(list));
|
|
//机构表中的机构信息
|
|
//机构表中的机构信息
|
|
OrganizationInfo organizationInfo = null;
|
|
OrganizationInfo organizationInfo = null;
|
|
|
|
|
|
@@ -2937,6 +3031,7 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
organizationInfo = list.get(0);
|
|
organizationInfo = list.get(0);
|
|
}
|
|
}
|
|
if (organizationInfo != null) {
|
|
if (organizationInfo != null) {
|
|
|
|
+ log.info("organizationinfo is not null...");
|
|
organizationInfo.setOrgcode(ImportProgramOrganizationInfo.getOrgcode());
|
|
organizationInfo.setOrgcode(ImportProgramOrganizationInfo.getOrgcode());
|
|
organizationInfo.setWebsite(ImportProgramOrganizationInfo.getWebsite());
|
|
organizationInfo.setWebsite(ImportProgramOrganizationInfo.getWebsite());
|
|
organizationInfo.setDetailaddress(ImportProgramOrganizationInfo.getDetailaddress());
|
|
organizationInfo.setDetailaddress(ImportProgramOrganizationInfo.getDetailaddress());
|
|
@@ -2944,7 +3039,9 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
organizationInfo.setContact(ImportProgramOrganizationInfo.getContact());
|
|
organizationInfo.setContact(ImportProgramOrganizationInfo.getContact());
|
|
organizationInfo.setContactnum(ImportProgramOrganizationInfo.getContactnum());
|
|
organizationInfo.setContactnum(ImportProgramOrganizationInfo.getContactnum());
|
|
organizationInfo.setEmail(ImportProgramOrganizationInfo.getEmail());
|
|
organizationInfo.setEmail(ImportProgramOrganizationInfo.getEmail());
|
|
|
|
+ log.info("before update organizationInfo:{}",JSON.toJSONString(organizationInfo));
|
|
organizationInfoMapper.updateById(organizationInfo);
|
|
organizationInfoMapper.updateById(organizationInfo);
|
|
|
|
+ log.info("after update organizationInfo:{}",JSON.toJSONString(organizationInfo));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3050,12 +3147,20 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
* @param labelNameArr
|
|
* @param labelNameArr
|
|
*/
|
|
*/
|
|
public void updateIntelligentLabel(long node, int linkType, int infoId, String... labelNameArr) {
|
|
public void updateIntelligentLabel(long node, int linkType, int infoId, String... labelNameArr) {
|
|
|
|
+ log.info("新标签系统走访时修改标签...");
|
|
|
|
+ log.info("updateIntelligentLabel()--->node:{},linkType:{},infoId:{},labelNameArr:{}",node,linkType,infoId,JSON.toJSONString(labelNameArr));
|
|
|
|
+ List<LabelIntelligentConnection> labelIntelligentConnections = labelIntelligentConnectionMapper.selectList(new EntityWrapper<LabelIntelligentConnection>()
|
|
|
|
+ .eq("node", node).eq("linktype", linkType).eq("infoid", infoId));
|
|
|
|
+ log.info("del labelIntelligentConnections:{}",JSON.toJSONString(labelIntelligentConnections));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("linktype", linkType).eq("infoid", infoId));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("linktype", linkType).eq("infoid", infoId));
|
|
if (StringUtils.isNotBlank(String.valueOf(infoId))) {
|
|
if (StringUtils.isNotBlank(String.valueOf(infoId))) {
|
|
-
|
|
|
|
|
|
+ log.info("infoId is not blank...");
|
|
Set<Resourcelibrary> resourcelibraryList = resourcelibraryMapper.getResourceLibraryByConnId(String.valueOf(infoId));
|
|
Set<Resourcelibrary> resourcelibraryList = resourcelibraryMapper.getResourceLibraryByConnId(String.valueOf(infoId));
|
|
-
|
|
|
|
|
|
+ log.info("resourcelibraryList:{}",JSON.toJSONString(resourcelibraryList));
|
|
resourcelibraryList.forEach(l -> {
|
|
resourcelibraryList.forEach(l -> {
|
|
|
|
+ List<LabelIntelligentConnection> connections = labelIntelligentConnectionMapper.selectList(new EntityWrapper<LabelIntelligentConnection>()
|
|
|
|
+ .eq("node", node).eq("backup", l.getId()));
|
|
|
|
+ log.info("to del connections:{}",JSON.toJSONString(connections));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("backup", l.getId()));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("backup", l.getId()));
|
|
});
|
|
});
|
|
//insertIntelligentLabel(node, linkType, infoId, labelNameArr);
|
|
//insertIntelligentLabel(node, linkType, infoId, labelNameArr);
|
|
@@ -3235,6 +3340,7 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
* @param labelNameArr
|
|
* @param labelNameArr
|
|
*/
|
|
*/
|
|
public void insertUserDefinedLabel(long node, long linkType, long infoId, String... labelNameArr) {
|
|
public void insertUserDefinedLabel(long node, long linkType, long infoId, String... labelNameArr) {
|
|
|
|
+ log.info("插入自定义标签---> node:{},linkType:{},infoId:{},labelNameArr:{}",node,linkType,infoId,JSON.toJSONString(labelNameArr));
|
|
LabelIntelligentCustomInfo label = null;
|
|
LabelIntelligentCustomInfo label = null;
|
|
LabelIntelligentConnection connectionLabel = null;
|
|
LabelIntelligentConnection connectionLabel = null;
|
|
for (int i = 0; i < labelNameArr.length; i++) {
|
|
for (int i = 0; i < labelNameArr.length; i++) {
|
|
@@ -3262,11 +3368,13 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
connectionLabel.setLinktype(Integer.valueOf(String.valueOf(linkType)));
|
|
connectionLabel.setLinktype(Integer.valueOf(String.valueOf(linkType)));
|
|
connectionLabel.setInfoid(Integer.valueOf(String.valueOf(infoId)));
|
|
connectionLabel.setInfoid(Integer.valueOf(String.valueOf(infoId)));
|
|
connectionLabel.setLabelname(splitArr[j]);
|
|
connectionLabel.setLabelname(splitArr[j]);
|
|
|
|
+ log.info("进入标签记录表(走访):{}",JSON.toJSONString(connectionLabel));
|
|
labelCommonService.setCommonOrCuntomLabelInfo(connectionLabel, connectionLabel.getLabelname(), node);
|
|
labelCommonService.setCommonOrCuntomLabelInfo(connectionLabel, connectionLabel.getLabelname(), node);
|
|
if (!hasSameInterviewLabelOrNull(connectionLabel.getLabelname(), node, Integer.valueOf(String.valueOf(infoId))) && !"技术需求".equals(connectionLabel.getLabelname())) {
|
|
if (!hasSameInterviewLabelOrNull(connectionLabel.getLabelname(), node, Integer.valueOf(String.valueOf(infoId))) && !"技术需求".equals(connectionLabel.getLabelname())) {
|
|
labelIntelligentConnectionMapper.insert(connectionLabel);
|
|
labelIntelligentConnectionMapper.insert(connectionLabel);
|
|
//同步至索引库
|
|
//同步至索引库
|
|
Object o = labelCommonService.transerLabelToESModel(connectionLabel);
|
|
Object o = labelCommonService.transerLabelToESModel(connectionLabel);
|
|
|
|
+ log.info("同步至 索引库:{}",JSON.toJSONString(o));
|
|
if (o instanceof LabelIntelligentConnectionModel) {
|
|
if (o instanceof LabelIntelligentConnectionModel) {
|
|
labelIntelligentConnectionRepository.save((LabelIntelligentConnectionModel) o);
|
|
labelIntelligentConnectionRepository.save((LabelIntelligentConnectionModel) o);
|
|
}
|
|
}
|
|
@@ -3331,11 +3439,27 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
* @param labelNameArr
|
|
* @param labelNameArr
|
|
*/
|
|
*/
|
|
public void updateUserDefinedLabel(long node, long linkType, long infoId, String... labelNameArr) {
|
|
public void updateUserDefinedLabel(long node, long linkType, long infoId, String... labelNameArr) {
|
|
- labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("linktype", linkType).eq("infoid", infoId));
|
|
|
|
|
|
+ log.info("修改自定义标签...");
|
|
|
|
+ log.info("node:{},linkType:{},infoId:{},labelNameArr:{}",node,linkType,infoId,JSON.toJSONString(labelNameArr));
|
|
|
|
+ List<LabelIntelligentConnection> labelIntelligentConnections = labelIntelligentConnectionMapper.selectList(new EntityWrapper<LabelIntelligentConnection>()
|
|
|
|
+ .eq("node", node)
|
|
|
|
+ .eq("linktype", linkType)
|
|
|
|
+ .eq("infoid", infoId));
|
|
|
|
+ log.info("to del lists:{}",JSON.toJSONString(labelIntelligentConnections));
|
|
|
|
+ labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>()
|
|
|
|
+ .eq("node", node)
|
|
|
|
+ .eq("linktype", linkType)
|
|
|
|
+ .eq("infoid", infoId));
|
|
if (StringUtils.isNotBlank(String.valueOf(infoId))) {
|
|
if (StringUtils.isNotBlank(String.valueOf(infoId))) {
|
|
-
|
|
|
|
|
|
+ log.info("infoId is not blank...");
|
|
Set<Resourcelibrary> resourcelibraryList = resourcelibraryMapper.getResourceLibraryByConnId(String.valueOf(infoId));
|
|
Set<Resourcelibrary> resourcelibraryList = resourcelibraryMapper.getResourceLibraryByConnId(String.valueOf(infoId));
|
|
|
|
+ log.info("resourcelibraryList:{}",JSON.toJSONString(resourcelibraryList));
|
|
resourcelibraryList.forEach(l -> {
|
|
resourcelibraryList.forEach(l -> {
|
|
|
|
+ log.info("node:{},backup:{}",node,l.getId());
|
|
|
|
+ List<LabelIntelligentConnection> connections = labelIntelligentConnectionMapper.selectList(new EntityWrapper<LabelIntelligentConnection>()
|
|
|
|
+ .eq("node", node)
|
|
|
|
+ .eq("backup", l.getId()));
|
|
|
|
+ log.info("to del connections:{}",JSON.toJSONString(connections));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("backup", l.getId()));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("backup", l.getId()));
|
|
});
|
|
});
|
|
insertUserDefinedLabel(node, linkType, infoId, labelNameArr);
|
|
insertUserDefinedLabel(node, linkType, infoId, labelNameArr);
|
|
@@ -3351,12 +3475,13 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
* @param content
|
|
* @param content
|
|
*/
|
|
*/
|
|
public void insertContentLabel(long node, long linkType, long infoId, String content) {
|
|
public void insertContentLabel(long node, long linkType, long infoId, String content) {
|
|
-
|
|
|
|
|
|
+ log.info("标签记录表中插入简介中行业信息 insertContentLabel --->node:{},linkType:{},infoId:{},content:{}",node,linkType,infoId,content);
|
|
LabelIntelligentConnection label = null;
|
|
LabelIntelligentConnection label = null;
|
|
|
|
|
|
if (StringUtils.isNotBlank(content)) {
|
|
if (StringUtils.isNotBlank(content)) {
|
|
//查出所用行业标签信息
|
|
//查出所用行业标签信息
|
|
List<LabelIntelligentCommonInfo> labelIntelligentCommonInfoList = labelIntelligentCommonInfoMapper.selectList(new EntityWrapper<LabelIntelligentCommonInfo>().eq("parentid", 0).eq("by1", "category").eq("node", node));
|
|
List<LabelIntelligentCommonInfo> labelIntelligentCommonInfoList = labelIntelligentCommonInfoMapper.selectList(new EntityWrapper<LabelIntelligentCommonInfo>().eq("parentid", 0).eq("by1", "category").eq("node", node));
|
|
|
|
+ log.info("查出所用行业标签信息labelIntelligentCommonInfoList:{}",JSON.toJSONString(labelIntelligentCommonInfoList));
|
|
if (labelIntelligentCommonInfoList.size() == 0) {
|
|
if (labelIntelligentCommonInfoList.size() == 0) {
|
|
labelIntelligentCommonInfoList = labelIntelligentCommonInfoMapper.selectList(new EntityWrapper<LabelIntelligentCommonInfo>().eq("parentid", 0).eq("by1", "category").eq("node", 0));
|
|
labelIntelligentCommonInfoList = labelIntelligentCommonInfoMapper.selectList(new EntityWrapper<LabelIntelligentCommonInfo>().eq("parentid", 0).eq("by1", "category").eq("node", 0));
|
|
}
|
|
}
|
|
@@ -3372,6 +3497,7 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
labelIntelligentConnectionMapper.insert(label);
|
|
labelIntelligentConnectionMapper.insert(label);
|
|
//同步至索引库
|
|
//同步至索引库
|
|
Object o = labelCommonService.transerLabelToESModel(label);
|
|
Object o = labelCommonService.transerLabelToESModel(label);
|
|
|
|
+ log.info("同步至索引库:{}",JSON.toJSONString(o));
|
|
if (o instanceof LabelIntelligentConnectionModel) {
|
|
if (o instanceof LabelIntelligentConnectionModel) {
|
|
labelIntelligentConnectionRepository.save((LabelIntelligentConnectionModel) o);
|
|
labelIntelligentConnectionRepository.save((LabelIntelligentConnectionModel) o);
|
|
}
|
|
}
|
|
@@ -3429,11 +3555,21 @@ public class InterviewDataEntryServiceImpl implements IDataEntryService {
|
|
* @param content
|
|
* @param content
|
|
*/
|
|
*/
|
|
public void updateContentLabel(long node, long linkType, long infoId, String content) {
|
|
public void updateContentLabel(long node, long linkType, long infoId, String content) {
|
|
|
|
+ log.info("标签记录表中修改简介中行业信息--->node:{},linkType:{},infoId:{},content:{}",node,linkType,infoId,content);
|
|
|
|
+ List<LabelIntelligentConnection> labelIntelligentConnections = labelIntelligentConnectionMapper.selectList(new EntityWrapper<LabelIntelligentConnection>()
|
|
|
|
+ .eq("node", node)
|
|
|
|
+ .eq("linktype", linkType)
|
|
|
|
+ .eq("infoid", infoId));
|
|
|
|
+ log.info("to del labelIntelligentConnections:{}",JSON.toJSONString(labelIntelligentConnections));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("linktype", linkType).eq("infoid", infoId));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("linktype", linkType).eq("infoid", infoId));
|
|
if (StringUtils.isNotBlank(String.valueOf(infoId))) {
|
|
if (StringUtils.isNotBlank(String.valueOf(infoId))) {
|
|
-
|
|
|
|
|
|
+ log.info("infoId is noe blank...");
|
|
Set<Resourcelibrary> resourcelibraryList = resourcelibraryMapper.getResourceLibraryByConnId(String.valueOf(infoId));
|
|
Set<Resourcelibrary> resourcelibraryList = resourcelibraryMapper.getResourceLibraryByConnId(String.valueOf(infoId));
|
|
|
|
+ log.info("resourcelibraryList:{}",JSON.toJSONString(resourcelibraryList));
|
|
resourcelibraryList.forEach(l -> {
|
|
resourcelibraryList.forEach(l -> {
|
|
|
|
+ List<LabelIntelligentConnection> connections = labelIntelligentConnectionMapper.selectList(new EntityWrapper<LabelIntelligentConnection>()
|
|
|
|
+ .eq("node", node).eq("backup", l.getId()));
|
|
|
|
+ log.info("connections:{}",JSON.toJSONString(connections));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("backup", l.getId()));
|
|
labelIntelligentConnectionMapper.delete(new EntityWrapper<LabelIntelligentConnection>().eq("node", node).eq("backup", l.getId()));
|
|
});
|
|
});
|
|
insertContentLabel(node, linkType, infoId, content);
|
|
insertContentLabel(node, linkType, infoId, content);
|