提交 4a8560d5 作者: 925993793@qq.com

文件导入资讯,增加更新时间

上级 9210544a
......@@ -1020,6 +1020,7 @@ public class InformationServiceImpl implements InformationService {
}
specialInformation.setCreateDate(cn.hutool.core.date.DateUtil.format(new Date(), "yyyy-MM-dd'T'HH:mm:ss"));
specialInformation.setProcessDate(specialInformation.getCreateDate());
specialInformation.setUpdateDate(specialInformation.getCreateDate());
esOpUtil.docSavaByEntity(EsIndexUtil.getIndexYear(Constants.SUBJECT_INDEX), specialInformation.getId(), specialInformation);
clbFileOperationLog.getClbFileOperationLogDetails().add(clbFileOperationLogDetailsService.buildFailDetails(info.get(1), info.get(5), info.get(7)));
} catch (NumberFormatException e) {
......@@ -1082,6 +1083,7 @@ public class InformationServiceImpl implements InformationService {
String format = DateUtil.dateToString(new Date(), "yyyy-MM-dd'T'HH:mm:ss");
specialInformation.setCreateDate(format);
specialInformation.setProcessDate(format);
specialInformation.setUpdateDate(format);
//加上分类
setInfoSourceType(specialInformation);
//匹配标签
......
......@@ -219,7 +219,7 @@ public class SubjectSimpleServiceImpl implements SubjectSimpleService {
if (firstOpenTime == null) {
return true;
} else {
//判断数据来源和资讯类型是否变化,变化则校验不通过;反之通过
//判断数据来源和资讯类型是否变化,变化则校验不通过;反之通过
if (!subjectSimpleVO.getDataSource().equals(subjectDetailVO.getDataSource()) || !subjectSimpleVO.getLibrary().equals(subjectDetailVO.getLibrary())) {
return false;
}
......@@ -244,16 +244,16 @@ public class SubjectSimpleServiceImpl implements SubjectSimpleService {
if (!(!timeEnable.after(oldTimeEnable) && !timeDisable.before(oldTimeDisable))) {
return false;
}
//判断关键词配置是否变化
//判断关键词配置是否变化,变化则校验不通过;反之通过
List<SearchWordVO> keywordsOld = subjectDetailVO.getKeywords();
List<SearchWordVO> keywordsNew = subjectSimpleVO.getKeywords();
boolean judgeKeyword = judgeKeyword(keywordsNew, keywordsOld);
if (judgeKeyword) {
return false;
}
//判断信息源标签配置是否变化
//判断信息源标签配置是否变化,变化则校验不通过;反之通过
boolean judgeInfoSourceLabel = judgeInfoSourceLabel(subjectId, subjectParamsCheckVO.getSubjectSourceTagVO());
//判断定向信息源是否发生变化(前端传参)
//判断定向信息源是否发生变化(前端传参),true 是;false 否
boolean directSourceChange = subjectParamsCheckVO.isDirectSourceChange();
return !judgeInfoSourceLabel && !directSourceChange;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论