fix: 优化删除记录日志
This commit is contained in:
parent
f4dacb2efc
commit
e20cdb61cd
@ -60,13 +60,13 @@ public class MsEiaApprovalBServiceImpl extends ServiceImpl<MsEiaApprovalBMapper,
|
|||||||
if (ids == null || ids.isEmpty()) return false;
|
if (ids == null || ids.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String id : ids) {
|
for (String id : ids) {
|
||||||
|
MsEiaApprovalB entity = this.getById(id);
|
||||||
LambdaUpdateWrapper<MsEiaApprovalB> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<MsEiaApprovalB> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(MsEiaApprovalB::getId, id);
|
wrapper.eq(MsEiaApprovalB::getId, id);
|
||||||
wrapper.set(MsEiaApprovalB::getIsDeleted, 1);
|
wrapper.set(MsEiaApprovalB::getIsDeleted, 1);
|
||||||
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)) {
|
||||||
MsEiaApprovalB entity = this.getById(id);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,13 +60,13 @@ public class MsWarnRuleBServiceImpl extends ServiceImpl<MsWarnRuleBMapper, MsWar
|
|||||||
if (ids == null || ids.isEmpty()) return false;
|
if (ids == null || ids.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String id : ids) {
|
for (String id : ids) {
|
||||||
|
MsWarnRuleB entity = this.getById(id);
|
||||||
LambdaUpdateWrapper<MsWarnRuleB> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<MsWarnRuleB> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(MsWarnRuleB::getId, id);
|
wrapper.eq(MsWarnRuleB::getId, id);
|
||||||
wrapper.set(MsWarnRuleB::getIsDeleted, 1);
|
wrapper.set(MsWarnRuleB::getIsDeleted, 1);
|
||||||
wrapper.set(MsWarnRuleB::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(MsWarnRuleB::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(MsWarnRuleB::getDeleteTime, new Date());
|
wrapper.set(MsWarnRuleB::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
MsWarnRuleB entity = this.getById(id);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -93,13 +93,13 @@ public class SdAiboxBHServiceImpl extends ServiceImpl<SdAiboxBHMapper, SdAiboxBH
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdAiboxBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdAiboxBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdAiboxBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdAiboxBH::getStcd, stcd);
|
wrapper.eq(SdAiboxBH::getStcd, stcd);
|
||||||
wrapper.set(SdAiboxBH::getIsDeleted, 1);
|
wrapper.set(SdAiboxBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdAiboxBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdAiboxBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdAiboxBH::getDeleteTime, new Date());
|
wrapper.set(SdAiboxBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdAiboxBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -81,13 +81,13 @@ public class SdAimonitorBHServiceImpl extends ServiceImpl<SdAimonitorBHMapper, S
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdAimonitorBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdAimonitorBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdAimonitorBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdAimonitorBH::getStcd, stcd);
|
wrapper.eq(SdAimonitorBH::getStcd, stcd);
|
||||||
wrapper.set(SdAimonitorBH::getIsDeleted, 1);
|
wrapper.set(SdAimonitorBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdAimonitorBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdAimonitorBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdAimonitorBH::getDeleteTime, new Date());
|
wrapper.set(SdAimonitorBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdAimonitorBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,8 +88,8 @@ public class SdArtsgBHServiceImpl extends ServiceImpl<SdArtsgBHMapper, SdArtsgBH
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdArtsgBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
SdArtsgBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,13 +90,13 @@ public class SdDwBHServiceImpl extends ServiceImpl<SdDwBHMapper, SdDwBH> impleme
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdDwBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdDwBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdDwBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdDwBH::getStcd, stcd);
|
wrapper.eq(SdDwBH::getStcd, stcd);
|
||||||
wrapper.set(SdDwBH::getIsDeleted, 1);
|
wrapper.set(SdDwBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdDwBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdDwBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdDwBH::getDeleteTime, new Date());
|
wrapper.set(SdDwBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdDwBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,13 +90,13 @@ public class SdEqBHServiceImpl extends ServiceImpl<SdEqBHMapper, SdEqBH> impleme
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdEqBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdEqBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdEqBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdEqBH::getStcd, stcd);
|
wrapper.eq(SdEqBH::getStcd, stcd);
|
||||||
wrapper.set(SdEqBH::getIsDeleted, 1);
|
wrapper.set(SdEqBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdEqBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdEqBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdEqBH::getDeleteTime, new Date());
|
wrapper.set(SdEqBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdEqBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,8 +87,8 @@ public class SdFbrdBHServiceImpl extends ServiceImpl<SdFbrdBHMapper, SdFbrdBH> i
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdFbrdBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
SdFbrdBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -91,13 +91,13 @@ public class SdFhbtBHServiceImpl extends ServiceImpl<SdFhbtBHMapper, SdFhbtBH> i
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdFhbtBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdFhbtBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdFhbtBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdFhbtBH::getStcd, stcd);
|
wrapper.eq(SdFhbtBH::getStcd, stcd);
|
||||||
wrapper.set(SdFhbtBH::getIsDeleted, 1);
|
wrapper.set(SdFhbtBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdFhbtBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdFhbtBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdFhbtBH::getDeleteTime, new Date());
|
wrapper.set(SdFhbtBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdFhbtBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -259,13 +259,13 @@ public class SdFpssBHServiceImpl extends ServiceImpl<SdFpssBHMapper, SdFpssBH> i
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdFpssBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdFpssBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdFpssBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdFpssBH::getStcd, stcd);
|
wrapper.eq(SdFpssBH::getStcd, stcd);
|
||||||
wrapper.set(SdFpssBH::getIsDeleted, 1);
|
wrapper.set(SdFpssBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdFpssBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdFpssBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdFpssBH::getDeleteTime, new Date());
|
wrapper.set(SdFpssBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdFpssBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -91,13 +91,13 @@ public class SdOpinfoBHServiceImpl extends ServiceImpl<SdOpinfoBHMapper, SdOpinf
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdOpinfoBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdOpinfoBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdOpinfoBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdOpinfoBH::getStcd, stcd);
|
wrapper.eq(SdOpinfoBH::getStcd, stcd);
|
||||||
wrapper.set(SdOpinfoBH::getIsDeleted, 1);
|
wrapper.set(SdOpinfoBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdOpinfoBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdOpinfoBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdOpinfoBH::getDeleteTime, new Date());
|
wrapper.set(SdOpinfoBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdOpinfoBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -89,8 +89,8 @@ public class SdOtteBHServiceImpl extends ServiceImpl<SdOtteBHMapper, SdOtteBH> i
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdOtteBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
SdOtteBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,8 +88,8 @@ public class SdOtweBHServiceImpl extends ServiceImpl<SdOtweBHMapper, SdOtweBH> i
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdOtweBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
SdOtweBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -97,8 +97,8 @@ public class SdSonarBHServiceImpl extends ServiceImpl<SdSonarBHMapper, SdSonarBH
|
|||||||
wrapper.set(SdSonarBH::getIsDeleted, 1);
|
wrapper.set(SdSonarBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdSonarBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdSonarBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdSonarBH::getDeleteTime, new Date());
|
wrapper.set(SdSonarBH::getDeleteTime, new Date());
|
||||||
|
SdSonarBH entity = this.getById(stcd);
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdSonarBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,8 +88,8 @@ public class SdTeBHServiceImpl extends ServiceImpl<SdTeBHMapper, SdTeBH> impleme
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdTeBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
SdTeBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -89,13 +89,13 @@ public class SdVaBHServiceImpl extends ServiceImpl<SdVaBHMapper, SdVaBH> impleme
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdVaBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdVaBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdVaBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdVaBH::getStcd, stcd);
|
wrapper.eq(SdVaBH::getStcd, stcd);
|
||||||
wrapper.set(SdVaBH::getIsDeleted, 1);
|
wrapper.set(SdVaBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdVaBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdVaBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdVaBH::getDeleteTime, new Date());
|
wrapper.set(SdVaBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdVaBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,8 +92,8 @@ public class SdVdinfoBServiceImpl extends ServiceImpl<SdVdinfoBMapper, SdVdinfoB
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdVdinfoB entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
SdVdinfoB entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,13 +88,13 @@ public class SdVpBHServiceImpl extends ServiceImpl<SdVpBHMapper, SdVpBH> impleme
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdVpBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdVpBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdVpBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdVpBH::getStcd, stcd);
|
wrapper.eq(SdVpBH::getStcd, stcd);
|
||||||
wrapper.set(SdVpBH::getIsDeleted, 1);
|
wrapper.set(SdVpBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdVpBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdVpBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdVpBH::getDeleteTime, new Date());
|
wrapper.set(SdVpBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdVpBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -89,8 +89,8 @@ public class SdWeBHServiceImpl extends ServiceImpl<SdWeBHMapper, SdWeBH> impleme
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdWeBH entity = this.getById(stcd);
|
||||||
if (this.removeById(stcd)) {
|
if (this.removeById(stcd)) {
|
||||||
SdWeBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -91,13 +91,13 @@ public class SdWqBHServiceImpl extends ServiceImpl<SdWqBHMapper, SdWqBH> impleme
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdWqBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdWqBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdWqBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdWqBH::getStcd, stcd);
|
wrapper.eq(SdWqBH::getStcd, stcd);
|
||||||
wrapper.set(SdWqBH::getIsDeleted, 1);
|
wrapper.set(SdWqBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdWqBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdWqBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdWqBH::getDeleteTime, new Date());
|
wrapper.set(SdWqBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdWqBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,13 +94,13 @@ public class SdWtBHServiceImpl extends ServiceImpl<SdWtBHMapper, SdWtBH> impleme
|
|||||||
if (stcds == null || stcds.isEmpty()) return false;
|
if (stcds == null || stcds.isEmpty()) return false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String stcd : stcds) {
|
for (String stcd : stcds) {
|
||||||
|
SdWtBH entity = this.getById(stcd);
|
||||||
LambdaUpdateWrapper<SdWtBH> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<SdWtBH> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(SdWtBH::getStcd, stcd);
|
wrapper.eq(SdWtBH::getStcd, stcd);
|
||||||
wrapper.set(SdWtBH::getIsDeleted, 1);
|
wrapper.set(SdWtBH::getIsDeleted, 1);
|
||||||
wrapper.set(SdWtBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
wrapper.set(SdWtBH::getDeleteUser, SecurityUtils.getCurrentUsername());
|
||||||
wrapper.set(SdWtBH::getDeleteTime, new Date());
|
wrapper.set(SdWtBH::getDeleteTime, new Date());
|
||||||
if (this.update(wrapper)) {
|
if (this.update(wrapper)) {
|
||||||
SdWtBH entity = this.getById(stcd);
|
|
||||||
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user