Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+1
-3
@@ -257,7 +257,7 @@ public class LawsComplianceBoardServiceImpl implements ILawsComplianceBoardServi
|
|||||||
title = "编号,标题,状态,技术领域,责任领域,相关项目,设计符合性,Pre-Homo确认,验证符合性";
|
title = "编号,标题,状态,技术领域,责任领域,相关项目,设计符合性,Pre-Homo确认,验证符合性";
|
||||||
fileName = "符合性结果" + ".xlsx";
|
fileName = "符合性结果" + ".xlsx";
|
||||||
}else if(StringUtils.equals(cut,CutEnum.EN.getValue())){
|
}else if(StringUtils.equals(cut,CutEnum.EN.getValue())){
|
||||||
title = "Number,Title,Status,Tech field,Responsible Field,Relevant Project,Design Compliance Confirmation,Pre-Homo Confirmation,Validation Compliance Confirmation";
|
title = "Number,Title,Status,Tech Field,Responsible Field,Relevant Project,Design Compliance Confirmation,Pre-Homo Confirmation,Validation Compliance Confirmation";
|
||||||
fileName = "Compliance results" + ".xlsx";
|
fileName = "Compliance results" + ".xlsx";
|
||||||
}
|
}
|
||||||
OutputStream os = null;
|
OutputStream os = null;
|
||||||
@@ -360,7 +360,6 @@ public class LawsComplianceBoardServiceImpl implements ILawsComplianceBoardServi
|
|||||||
String cut = (String) params.get("cut");
|
String cut = (String) params.get("cut");
|
||||||
List<Map<String,Object>> exportData = this.lawsComplianceBoardMapper.queryComplianceResultList(params);
|
List<Map<String,Object>> exportData = this.lawsComplianceBoardMapper.queryComplianceResultList(params);
|
||||||
this.disposeComplianceResult(exportData,cut);
|
this.disposeComplianceResult(exportData,cut);
|
||||||
if(CollectionUtils.isNotEmpty(exportData)){
|
|
||||||
String title = "";
|
String title = "";
|
||||||
String fileName = "";
|
String fileName = "";
|
||||||
if(StringUtils.equals(cut, CutEnum.CN.getValue())){
|
if(StringUtils.equals(cut, CutEnum.CN.getValue())){
|
||||||
@@ -421,7 +420,6 @@ public class LawsComplianceBoardServiceImpl implements ILawsComplianceBoardServi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
+7
-4
@@ -141,12 +141,17 @@ public class LawsMonthlyReportManageEOServiceImpl extends ServiceImpl<LawsMonthl
|
|||||||
String id = lawsMonthlyReportManageEO.getId();
|
String id = lawsMonthlyReportManageEO.getId();
|
||||||
String issueStatus = lawsMonthlyReportManageEO.getIssueStatus();
|
String issueStatus = lawsMonthlyReportManageEO.getIssueStatus();
|
||||||
|
|
||||||
LawsMonthlyReportManageEO monthlyReportManageEO = getById(id);
|
|
||||||
|
|
||||||
Date issueTime = new Date();
|
Date issueTime = new Date();
|
||||||
lawsMonthlyReportManageEO.setUpdateTime(issueTime);
|
lawsMonthlyReportManageEO.setUpdateTime(issueTime);
|
||||||
this.updateById(lawsMonthlyReportManageEO);
|
this.updateById(lawsMonthlyReportManageEO);
|
||||||
|
|
||||||
|
// 同步es
|
||||||
|
// syncElasticsearch(id, issueStatus, issueTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void syncElasticsearch(String id, String issueStatus, Date issueTime) {
|
||||||
|
LawsMonthlyReportManageEO monthlyReportManageEO = getById(id);
|
||||||
|
|
||||||
if ("1".equals(issueStatus)) { // 已发布---发布操作
|
if ("1".equals(issueStatus)) { // 已发布---发布操作
|
||||||
// 添加月报到es
|
// 添加月报到es
|
||||||
OSSFile ossFile = iOSSFileService.getById(monthlyReportManageEO.getFileId());
|
OSSFile ossFile = iOSSFileService.getById(monthlyReportManageEO.getFileId());
|
||||||
@@ -240,9 +245,7 @@ public class LawsMonthlyReportManageEOServiceImpl extends ServiceImpl<LawsMonthl
|
|||||||
log.error("文档库删除es失败");
|
log.error("文档库删除es失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void putMap(String id, String moduleType,
|
private void putMap(String id, String moduleType,
|
||||||
String content, String title , String fileText,
|
String content, String title , String fileText,
|
||||||
String fileName, String fileId, Date issueTime, String cut,
|
String fileName, String fileId, Date issueTime, String cut,
|
||||||
|
|||||||
Reference in New Issue
Block a user