fix: 添加标准删除记录

This commit is contained in:
wxyclub
2023-11-20 15:10:22 +08:00
parent e9dcc8a875
commit 68f390d89d
3 changed files with 20 additions and 0 deletions
@@ -199,6 +199,9 @@ public class WebMvcConfig implements WebMvcConfigurer {
// 政策资料导出接口
addInterceptor.excludePathPatterns("/api/lawss/sarLawsInformation/exportLawsInformationInfo");
// 获取onlyOffice历史文件接口
addInterceptor.excludePathPatterns("/api/lawss/activiti/getAllOnlyOfficeHisFileById");
// 内外部会议模板下载
addInterceptor.excludePathPatterns("/api/lawss/insideOutsideMeeting/exportTemplateFile");
@@ -347,6 +347,9 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
}
}
}
// 添加删除记录
String content = "标准号:" + sarBussionessStand.getStandCode() + ""+ sarBussionessStand.getStandName() + "" + "删除成功";
sarUpdLogEOService.createBaseLog(id,"BUSINESS",content);
if(elasflag) {
//删除成功后将索引中对应数据删除
StandLawsEO standLawsEO = new StandLawsEO();
@@ -2312,6 +2312,20 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
personCollectEODao.deleteByResId(id);
// 删除分享表中数据
personShareEODao.deleteByResId(id);
// 添加删除记录
String standCode = getDelStandInfoList.getStandSort() + " " + getDelStandInfoList.getStandNumber() + "-" + getDelStandInfoList.getStandYear();
String content = "标准号:" + standCode + ""+ getDelStandInfoList.getStandName() + "" + "删除成功";
try {
if ("INLAND".equals(getDelStandInfoList.getStandType())) {
sarUpdLogEOService.createBaseLog(id,"INLAND_STAND",content);
} else if ("FOREIGN".equals(getDelStandInfoList.getStandType())) {
sarUpdLogEOService.createBaseLog(id,"FOREIGN_STAND",content);
} else {
sarUpdLogEOService.createBaseLog(id,"OTHER_STAND",content);
}
} catch (Exception e) {
logger.error("添加删除记录失败", e);
}
if (elasflag) {
//删除成功后,将索引中对应数据删除
StandLawsEO standLawsEO = new StandLawsEO();