fix: 优化基本数据删除操作
This commit is contained in:
parent
f641e40c15
commit
82a9ce9f34
@ -67,7 +67,7 @@ public class MsEiaApprovalBServiceImpl extends ServiceImpl<MsEiaApprovalBMapper,
|
|||||||
wrapper.set(MsEiaApprovalB::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(MsEiaApprovalB::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(MsEiaApprovalB::getDeleteTime, new Date());
|
wrapper.set(MsEiaApprovalB::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
msOperationLogService.recordDeleteDetailLog(id,TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(entity.getEnnm(),TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -210,7 +210,7 @@ public class MsPsbmodulelbBServiceImpl extends ServiceImpl<MsPsbmodulelbBMapper,
|
|||||||
wrapper.set(MsPsbmodulelbB::getDeleteTime, new Date());
|
wrapper.set(MsPsbmodulelbB::getDeleteTime, new Date());
|
||||||
boolean result = this.update(wrapper);
|
boolean result = this.update(wrapper);
|
||||||
if (result) {
|
if (result) {
|
||||||
msOperationLogService.recordDeleteDetailLog(id, TABLE_NAME, entity, "psbmodulelbb");
|
msOperationLogService.recordDeleteDetailLog(entity.getId(), TABLE_NAME, entity, "psbmodulelbb");
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -347,7 +347,7 @@ public class MsWarnRuleBServiceImpl extends ServiceImpl<MsWarnRuleBMapper, MsWar
|
|||||||
updateWrapper.set(MsWarnRuleB::getDeleteTime, new Date());
|
updateWrapper.set(MsWarnRuleB::getDeleteTime, new Date());
|
||||||
this.update(updateWrapper);
|
this.update(updateWrapper);
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
msOperationLogService.recordDeleteDetailLog(id, TABLE_NAME, entity, "warningRule");
|
msOperationLogService.recordDeleteDetailLog(entity.getRuleName(), TABLE_NAME, entity, "warningRule");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -129,7 +129,7 @@ public class SdAiboxBHServiceImpl extends ServiceImpl<SdAiboxBHMapper, SdAiboxBH
|
|||||||
wrapper.set(SdAiboxBH::getDeleteTime, new Date());
|
wrapper.set(SdAiboxBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count > 0;
|
return count > 0;
|
||||||
|
|||||||
@ -110,7 +110,7 @@ public class SdAimonitorBHServiceImpl extends ServiceImpl<SdAimonitorBHMapper, S
|
|||||||
wrapper.set(SdAimonitorBH::getDeleteTime, new Date());
|
wrapper.set(SdAimonitorBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -117,7 +117,7 @@ public class SdArtsgBHServiceImpl extends ServiceImpl<SdArtsgBHMapper, SdArtsgBH
|
|||||||
SdArtsgBH entity = this.getById(stcd);
|
SdArtsgBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count > 0;
|
return count > 0;
|
||||||
|
|||||||
@ -123,7 +123,7 @@ public class SdDwBHServiceImpl extends ServiceImpl<SdDwBHMapper, SdDwBH> impleme
|
|||||||
wrapper.set(SdDwBH::getDeleteTime, new Date());
|
wrapper.set(SdDwBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd, TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(), TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -119,7 +119,7 @@ public class SdEqBHServiceImpl extends ServiceImpl<SdEqBHMapper, SdEqBH> impleme
|
|||||||
wrapper.set(SdEqBH::getDeleteTime, new Date());
|
wrapper.set(SdEqBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count > 0;
|
return count > 0;
|
||||||
|
|||||||
@ -116,7 +116,7 @@ public class SdFbrdBHServiceImpl extends ServiceImpl<SdFbrdBHMapper, SdFbrdBH> i
|
|||||||
SdFbrdBH entity = this.getById(stcd);
|
SdFbrdBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -120,7 +120,7 @@ public class SdFhbtBHServiceImpl extends ServiceImpl<SdFhbtBHMapper, SdFhbtBH> i
|
|||||||
wrapper.set(SdFhbtBH::getDeleteTime, new Date());
|
wrapper.set(SdFhbtBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count > 0;
|
return count > 0;
|
||||||
|
|||||||
@ -126,7 +126,7 @@ public class SdFishDictoryBServiceImpl extends ServiceImpl<SdFishDictoryBMapper,
|
|||||||
wrapper.set(SdFishDictoryB::getDeleteTime, new Date());
|
wrapper.set(SdFishDictoryB::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(id,TABLE_NAME, entity, source,CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getName(),TABLE_NAME, entity, source,CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -291,7 +291,7 @@ public class SdFpssBHServiceImpl extends ServiceImpl<SdFpssBHMapper, SdFpssBH> i
|
|||||||
wrapper.set(SdFpssBH::getDeleteTime, new Date());
|
wrapper.set(SdFpssBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count > 0;
|
return count > 0;
|
||||||
|
|||||||
@ -129,7 +129,7 @@ public class SdFpssRServiceImpl extends ServiceImpl<SdFpssRMapper, SdFpssR> impl
|
|||||||
wrapper.set(SdFpssR::getDeleteTime, new Date());
|
wrapper.set(SdFpssR::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(id, TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getFtpName(), TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -120,7 +120,7 @@ public class SdOpinfoBHServiceImpl extends ServiceImpl<SdOpinfoBHMapper, SdOpinf
|
|||||||
wrapper.set(SdOpinfoBH::getDeleteTime, new Date());
|
wrapper.set(SdOpinfoBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -119,7 +119,7 @@ public class SdOtteBHServiceImpl extends ServiceImpl<SdOtteBHMapper, SdOtteBH> i
|
|||||||
SdOtteBH entity = this.getById(stcd);
|
SdOtteBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -117,7 +117,7 @@ public class SdOtweBHServiceImpl extends ServiceImpl<SdOtweBHMapper, SdOtweBH> i
|
|||||||
SdOtweBH entity = this.getById(stcd);
|
SdOtweBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -122,7 +122,7 @@ public class SdSonarBHServiceImpl extends ServiceImpl<SdSonarBHMapper, SdSonarBH
|
|||||||
SdSonarBH entity = this.getById(stcd);
|
SdSonarBH entity = this.getById(stcd);
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -116,7 +116,7 @@ public class SdTeBHServiceImpl extends ServiceImpl<SdTeBHMapper, SdTeBH> impleme
|
|||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
SdTeBH entity = this.getById(stcd);
|
SdTeBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -118,7 +118,7 @@ public class SdVaBHServiceImpl extends ServiceImpl<SdVaBHMapper, SdVaBH> impleme
|
|||||||
wrapper.set(SdVaBH::getDeleteTime, new Date());
|
wrapper.set(SdVaBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -121,7 +121,7 @@ public class SdVdinfoBServiceImpl extends ServiceImpl<SdVdinfoBMapper, SdVdinfoB
|
|||||||
SdVdinfoB entity = this.getById(stcd);
|
SdVdinfoB entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count > 0;
|
return count > 0;
|
||||||
|
|||||||
@ -118,7 +118,7 @@ public class SdVpBHServiceImpl extends ServiceImpl<SdVpBHMapper, SdVpBH> impleme
|
|||||||
wrapper.set(SdVpBH::getDeleteTime, new Date());
|
wrapper.set(SdVpBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source,CODE_TO_NAME_META_LIST); count++;
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source,CODE_TO_NAME_META_LIST); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count > 0;
|
return count > 0;
|
||||||
|
|||||||
@ -119,7 +119,7 @@ public class SdWeBHServiceImpl extends ServiceImpl<SdWeBHMapper, SdWeBH> impleme
|
|||||||
SdWeBH entity = this.getById(stcd);
|
SdWeBH entity = this.getById(stcd);
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd, TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(), TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -122,7 +122,7 @@ public class SdWqBHServiceImpl extends ServiceImpl<SdWqBHMapper, SdWqBH> impleme
|
|||||||
wrapper.set(SdWqBH::getDeleteTime, new Date());
|
wrapper.set(SdWqBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count > 0;
|
return count > 0;
|
||||||
|
|||||||
@ -124,7 +124,7 @@ public class SdWtBHServiceImpl extends ServiceImpl<SdWtBHMapper, SdWtBH> impleme
|
|||||||
wrapper.set(SdWtBH::getDeleteTime, new Date());
|
wrapper.set(SdWtBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||||
msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user