fix: 优化基本数据删除操作
This commit is contained in:
parent
85e7efd3c4
commit
5541aa858b
@ -129,7 +129,7 @@ public class SdAiboxBHServiceImpl extends ServiceImpl<SdAiboxBHMapper, SdAiboxBH
|
||||
wrapper.set(SdAiboxBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
}
|
||||
}
|
||||
return count > 0;
|
||||
|
||||
@ -110,7 +110,7 @@ public class SdAimonitorBHServiceImpl extends ServiceImpl<SdAimonitorBHMapper, S
|
||||
wrapper.set(SdAimonitorBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -117,7 +117,7 @@ public class SdArtsgBHServiceImpl extends ServiceImpl<SdArtsgBHMapper, SdArtsgBH
|
||||
SdArtsgBH entity = this.getById(stcd);
|
||||
if (this.removeById(stcd)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
}
|
||||
}
|
||||
return count > 0;
|
||||
|
||||
@ -123,7 +123,7 @@ public class SdDwBHServiceImpl extends ServiceImpl<SdDwBHMapper, SdDwBH> impleme
|
||||
wrapper.set(SdDwBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(), TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(), TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ public class SdEqBHServiceImpl extends ServiceImpl<SdEqBHMapper, SdEqBH> impleme
|
||||
wrapper.set(SdEqBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
}
|
||||
}
|
||||
return count > 0;
|
||||
|
||||
@ -116,7 +116,7 @@ public class SdFbrdBHServiceImpl extends ServiceImpl<SdFbrdBHMapper, SdFbrdBH> i
|
||||
SdFbrdBH entity = this.getById(stcd);
|
||||
if (this.removeById(stcd)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ public class SdFhbtBHServiceImpl extends ServiceImpl<SdFhbtBHMapper, SdFhbtBH> i
|
||||
wrapper.set(SdFhbtBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
}
|
||||
}
|
||||
return count > 0;
|
||||
|
||||
@ -291,7 +291,7 @@ public class SdFpssBHServiceImpl extends ServiceImpl<SdFpssBHMapper, SdFpssBH> i
|
||||
wrapper.set(SdFpssBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
}
|
||||
}
|
||||
return count > 0;
|
||||
|
||||
@ -120,7 +120,7 @@ public class SdOpinfoBHServiceImpl extends ServiceImpl<SdOpinfoBHMapper, SdOpinf
|
||||
wrapper.set(SdOpinfoBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ public class SdOtteBHServiceImpl extends ServiceImpl<SdOtteBHMapper, SdOtteBH> i
|
||||
SdOtteBH entity = this.getById(stcd);
|
||||
if (this.removeById(stcd)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -117,7 +117,7 @@ public class SdOtweBHServiceImpl extends ServiceImpl<SdOtweBHMapper, SdOtweBH> i
|
||||
SdOtweBH entity = this.getById(stcd);
|
||||
if (this.removeById(stcd)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ public class SdSonarBHServiceImpl extends ServiceImpl<SdSonarBHMapper, SdSonarBH
|
||||
SdSonarBH entity = this.getById(stcd);
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -116,7 +116,7 @@ public class SdTeBHServiceImpl extends ServiceImpl<SdTeBHMapper, SdTeBH> impleme
|
||||
for (String stcd : stcds) {
|
||||
SdTeBH entity = this.getById(stcd);
|
||||
if (this.removeById(stcd)) {
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -118,7 +118,7 @@ public class SdVaBHServiceImpl extends ServiceImpl<SdVaBHMapper, SdVaBH> impleme
|
||||
wrapper.set(SdVaBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -121,7 +121,7 @@ public class SdVdinfoBServiceImpl extends ServiceImpl<SdVdinfoBMapper, SdVdinfoB
|
||||
SdVdinfoB entity = this.getById(stcd);
|
||||
if (this.removeById(stcd)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
}
|
||||
}
|
||||
return count > 0;
|
||||
|
||||
@ -118,7 +118,7 @@ public class SdVpBHServiceImpl extends ServiceImpl<SdVpBHMapper, SdVpBH> impleme
|
||||
wrapper.set(SdVpBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source,CODE_TO_NAME_META_LIST); count++;
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source,CODE_TO_NAME_META_LIST); count++;
|
||||
}
|
||||
}
|
||||
return count > 0;
|
||||
|
||||
@ -119,7 +119,7 @@ public class SdWeBHServiceImpl extends ServiceImpl<SdWeBHMapper, SdWeBH> impleme
|
||||
SdWeBH entity = this.getById(stcd);
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
if (this.removeById(stcd)) {
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(), TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(), TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ public class SdWqBHServiceImpl extends ServiceImpl<SdWqBHMapper, SdWqBH> impleme
|
||||
wrapper.set(SdWqBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST); count++;
|
||||
}
|
||||
}
|
||||
return count > 0;
|
||||
|
||||
@ -124,7 +124,7 @@ public class SdWtBHServiceImpl extends ServiceImpl<SdWtBHMapper, SdWtBH> impleme
|
||||
wrapper.set(SdWtBH::getDeleteTime, new Date());
|
||||
if (this.update(wrapper)) {
|
||||
dictCodeToNameConverter.convertCodeToName(entity, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStnm(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
msOperationLogService.recordDeleteDetailLog(entity.getStcd(),TABLE_NAME, entity, source, CODE_TO_NAME_META_LIST);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user