fix: 添加标准删除记录
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
+3
@@ -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();
|
||||
|
||||
+14
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user