feat: There is no way the

This commit is contained in:
super_liu
2021-08-24 09:57:11 +08:00
parent 4a11cd9c9b
commit 6084f51bae
10 changed files with 645 additions and 25 deletions
@@ -11,6 +11,7 @@ import com.adc.da.mq.CreateStandMQService;
import com.adc.da.person.dao.PersonCollectEODao;
import com.adc.da.person.dao.PersonShareEODao;
import com.adc.da.person.service.IPersonCollectEOService;
import com.adc.da.search.entity.StandLawsEO;
import com.adc.da.search.service.StandLawsSearchService;
import com.adc.da.slrs.otConvertMq.dao.OtConvertMqDao;
import com.adc.da.slrs.otConvertMq.entity.OtConvertMq;
@@ -1284,30 +1285,30 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
sarStandPutTimeEODao.deleteByStandId(id);
//删除文件详情表数据
sarStandFileEODao.deleteByStandId(id);
// List<SarStandFile> listFile = sarStandFileEODao.selectFileByStandId(id);
// if (listFile != null) {
// if (!listFile.isEmpty()) {
// for (int f = 0; f < listFile.size(); f++) {
// //删除文件信息表数据
// sarFileInfoEODao.deleteByfileId(listFile.get(f).getId());
// //删除转换表ot_convert数据
// otConvertEODao.deleteByAttId(listFile.get(f).getAttId());
// }
// }
// }
//删除代替关系
List<SarStandFile> listFile = sarStandFileEODao.selectFileByStandId(id);
if (listFile != null) {
if (!listFile.isEmpty()) {
for (int f = 0; f < listFile.size(); f++) {
//删除文件信息表数据
// sarFileInfoEODao.deleteByfileId(listFile.get(f).getId());
//删除转换表ot_convert数据
otConvertEODao.deleteByAttId(listFile.get(f).getAttId());
}
}
}
updateStandReplaceConnect(getDelStandInfoList);
//删除收藏表中数据
personCollectEODao.deleteByResId(id);
// 删除分享表中数据
personShareEODao.deleteByResId(id);
// if(elasflag) {
// //删除成功后,将索引中对应数据删除
// StandLawsEO standLawsEO = new StandLawsEO();
// standLawsEO.setId(sarStandardsInfoEO.getId());
// standLawsEO.setType("stand");
// sarStandAndLawsEOService.deleteFomrIndex(standLawsEO);
// }
if(elasflag) {
//删除成功后,将索引中对应数据删除
StandLawsEO standLawsEO = new StandLawsEO();
standLawsEO.setId(sarStandardsInfoEO.getId());
standLawsEO.setType("stand");
standLawsSearchService.deleteStandLawsSearch(standLawsEO);
}
}
return countResult;
}