feat: There is no way the
This commit is contained in:
+19
-18
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user