From 964c1d3a416fed1b71a2fdc87a8b2e33257cc68e Mon Sep 17 00:00:00 2001 From: tangwei Date: Wed, 22 Jul 2026 11:13:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E8=AE=B0=E5=BD=95id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qgc_base/service/IMsOperationLogService.java | 6 +++--- .../service/impl/MsEiaApprovalBServiceImpl.java | 6 +++--- .../service/impl/MsOperationLogServiceImpl.java | 12 ++++++------ .../service/impl/MsWarnRuleBServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdAiboxBHServiceImpl.java | 6 +++--- .../service/impl/SdAimonitorBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdArtsgBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdDwBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdEqBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdFbrdBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdFhbtBHServiceImpl.java | 6 +++--- .../service/impl/SdFishDictoryBServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdFpssBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdOpinfoBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdOtteBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdOtweBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdSonarBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdTeBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdVaBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdVdinfoBServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdVpBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdWeBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdWqBHServiceImpl.java | 6 +++--- .../qgc_base/service/impl/SdWtBHServiceImpl.java | 6 +++--- 24 files changed, 75 insertions(+), 75 deletions(-) diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/IMsOperationLogService.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/IMsOperationLogService.java index 203aae65..7ee1af42 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/IMsOperationLogService.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/IMsOperationLogService.java @@ -31,7 +31,7 @@ public interface IMsOperationLogService { * @param source 操作来源 * @param 实体类型 */ - void recordModifyDetailLog(String tableName, T before, T after, String source); + void recordModifyDetailLog(String recordId,String tableName, T before, T after, String source); /** * 通用新增操作详情日志(含字段级详情) @@ -44,7 +44,7 @@ public interface IMsOperationLogService { * @param source 操作来源 * @param 实体类型 */ - void recordAddDetailLog(String tableName, T entity, String source); + void recordAddDetailLog(String recordId,String tableName, T entity, String source); /** * 通用删除操作详情日志(含字段级详情) @@ -57,5 +57,5 @@ public interface IMsOperationLogService { * @param source 操作来源 * @param 实体类型 */ - void recordDeleteDetailLog(String tableName, T entity, String source); + void recordDeleteDetailLog(String recordId,String tableName, T entity, String source); } diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/MsEiaApprovalBServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/MsEiaApprovalBServiceImpl.java index 1efc9427..9735a4f8 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/MsEiaApprovalBServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/MsEiaApprovalBServiceImpl.java @@ -38,7 +38,7 @@ public class MsEiaApprovalBServiceImpl extends ServiceImpl void recordModifyDetailLog(String tableName, T before, T after, String source) { + public void recordModifyDetailLog(String recordId,String tableName, T before, T after, String source) { if (before == null || after == null) { return; } - String recordId = getStcd(before); +// String recordId = getStcd(before); MsOperationLog mainLog = buildMainLog(tableName, recordId, "修改", source); msOperationLogMapper.insert(mainLog); @@ -439,11 +439,11 @@ public class MsOperationLogServiceImpl implements IMsOperationLogService { } @Override - public void recordAddDetailLog(String tableName, T entity, String source) { + public void recordAddDetailLog(String recordId,String tableName, T entity, String source) { if (entity == null) { return; } - String recordId = getStcd(entity); +// String recordId = getStcd(entity); MsOperationLog mainLog = buildMainLog(tableName, recordId, "新增", source); msOperationLogMapper.insert(mainLog); @@ -469,11 +469,11 @@ public class MsOperationLogServiceImpl implements IMsOperationLogService { } @Override - public void recordDeleteDetailLog(String tableName, T entity, String source) { + public void recordDeleteDetailLog(String recordId,String tableName, T entity, String source) { if (entity == null) { return; } - String recordId = getStcd(entity); +// String recordId = getStcd(entity); MsOperationLog mainLog = buildMainLog(tableName, recordId, "删除", source); msOperationLogMapper.insert(mainLog); diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/MsWarnRuleBServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/MsWarnRuleBServiceImpl.java index 8040596c..7e50fa11 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/MsWarnRuleBServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/MsWarnRuleBServiceImpl.java @@ -38,7 +38,7 @@ public class MsWarnRuleBServiceImpl extends ServiceImpl 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdAimonitorBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdAimonitorBHServiceImpl.java index 0e70ad66..6da771b6 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdAimonitorBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdAimonitorBHServiceImpl.java @@ -59,7 +59,7 @@ public class SdAimonitorBHServiceImpl extends ServiceImpl 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdDwBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdDwBHServiceImpl.java index 543dc6c1..32bf57be 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdDwBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdDwBHServiceImpl.java @@ -68,7 +68,7 @@ public class SdDwBHServiceImpl extends ServiceImpl impleme public boolean add(SdDwBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -79,7 +79,7 @@ public class SdDwBHServiceImpl extends ServiceImpl impleme SdDwBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -97,7 +97,7 @@ public class SdDwBHServiceImpl extends ServiceImpl impleme wrapper.set(SdDwBH::getDeleteUser, SecurityUtils.getCurrentUsername()); wrapper.set(SdDwBH::getDeleteTime, new Date()); if (this.update(wrapper)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++; + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } return count > 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdEqBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdEqBHServiceImpl.java index bd66d779..bc2810f7 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdEqBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdEqBHServiceImpl.java @@ -68,7 +68,7 @@ public class SdEqBHServiceImpl extends ServiceImpl impleme public boolean add(SdEqBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -79,7 +79,7 @@ public class SdEqBHServiceImpl extends ServiceImpl impleme SdEqBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -97,7 +97,7 @@ public class SdEqBHServiceImpl extends ServiceImpl impleme wrapper.set(SdEqBH::getDeleteUser, SecurityUtils.getCurrentUsername()); wrapper.set(SdEqBH::getDeleteTime, new Date()); if (this.update(wrapper)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++; + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } return count > 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFbrdBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFbrdBHServiceImpl.java index c1a4b14e..3c2b4fa6 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFbrdBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFbrdBHServiceImpl.java @@ -65,7 +65,7 @@ public class SdFbrdBHServiceImpl extends ServiceImpl i public boolean add(SdFbrdBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -76,7 +76,7 @@ public class SdFbrdBHServiceImpl extends ServiceImpl i SdFbrdBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -89,7 +89,7 @@ public class SdFbrdBHServiceImpl extends ServiceImpl i for (String stcd : stcds) { SdFbrdBH entity = this.getById(stcd); if (this.removeById(stcd)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFhbtBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFhbtBHServiceImpl.java index 3f3fe0d8..f30de316 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFhbtBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFhbtBHServiceImpl.java @@ -69,7 +69,7 @@ public class SdFhbtBHServiceImpl extends ServiceImpl i public boolean add(SdFhbtBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -80,7 +80,7 @@ public class SdFhbtBHServiceImpl extends ServiceImpl i SdFhbtBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -98,7 +98,7 @@ public class SdFhbtBHServiceImpl extends ServiceImpl i wrapper.set(SdFhbtBH::getDeleteUser, SecurityUtils.getCurrentUsername()); wrapper.set(SdFhbtBH::getDeleteTime, new Date()); if (this.update(wrapper)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++; + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } return count > 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFishDictoryBServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFishDictoryBServiceImpl.java index 75c70e1a..638f9f89 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFishDictoryBServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdFishDictoryBServiceImpl.java @@ -76,7 +76,7 @@ public class SdFishDictoryBServiceImpl extends ServiceImpl i boolean result = save(entity); if (result) { // msOperationLogService.recordOperationLog(TABLE_NAME, entity.getStcd(), "新增", source); - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -226,7 +226,7 @@ public class SdFpssBHServiceImpl extends ServiceImpl i SdFpssBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -266,7 +266,7 @@ public class SdFpssBHServiceImpl extends ServiceImpl i wrapper.set(SdFpssBH::getDeleteUser, SecurityUtils.getCurrentUsername()); wrapper.set(SdFpssBH::getDeleteTime, new Date()); if (this.update(wrapper)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++; + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } return count > 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdOpinfoBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdOpinfoBHServiceImpl.java index 608fd0fb..3b26ccdc 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdOpinfoBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdOpinfoBHServiceImpl.java @@ -69,7 +69,7 @@ public class SdOpinfoBHServiceImpl extends ServiceImpl i public boolean add(SdOtteBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -78,7 +78,7 @@ public class SdOtteBHServiceImpl extends ServiceImpl i SdOtteBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -91,7 +91,7 @@ public class SdOtteBHServiceImpl extends ServiceImpl i for (String stcd : stcds) { SdOtteBH entity = this.getById(stcd); if (this.removeById(stcd)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdOtweBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdOtweBHServiceImpl.java index fb95a8b8..5e976264 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdOtweBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdOtweBHServiceImpl.java @@ -66,7 +66,7 @@ public class SdOtweBHServiceImpl extends ServiceImpl i public boolean add(SdOtweBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -77,7 +77,7 @@ public class SdOtweBHServiceImpl extends ServiceImpl i SdOtweBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -90,7 +90,7 @@ public class SdOtweBHServiceImpl extends ServiceImpl i for (String stcd : stcds) { SdOtweBH entity = this.getById(stcd); if (this.removeById(stcd)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdSonarBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdSonarBHServiceImpl.java index 76a947b1..4afd5f69 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdSonarBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdSonarBHServiceImpl.java @@ -70,7 +70,7 @@ public class SdSonarBHServiceImpl extends ServiceImpl impleme public boolean add(SdTeBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -77,7 +77,7 @@ public class SdTeBHServiceImpl extends ServiceImpl impleme SdTeBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -90,7 +90,7 @@ public class SdTeBHServiceImpl extends ServiceImpl impleme for (String stcd : stcds) { SdTeBH entity = this.getById(stcd); if (this.removeById(stcd)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVaBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVaBHServiceImpl.java index 3c287f8c..521cb6cc 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVaBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVaBHServiceImpl.java @@ -67,7 +67,7 @@ public class SdVaBHServiceImpl extends ServiceImpl impleme public boolean add(SdVaBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -78,7 +78,7 @@ public class SdVaBHServiceImpl extends ServiceImpl impleme SdVaBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -96,7 +96,7 @@ public class SdVaBHServiceImpl extends ServiceImpl impleme wrapper.set(SdVaBH::getDeleteUser, SecurityUtils.getCurrentUsername()); wrapper.set(SdVaBH::getDeleteTime, new Date()); if (this.update(wrapper)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVdinfoBServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVdinfoBServiceImpl.java index 5dbc0523..b414dcfb 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVdinfoBServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVdinfoBServiceImpl.java @@ -71,7 +71,7 @@ public class SdVdinfoBServiceImpl extends ServiceImpl 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVpBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVpBHServiceImpl.java index 6ec07561..c89dc3cc 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVpBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdVpBHServiceImpl.java @@ -67,7 +67,7 @@ public class SdVpBHServiceImpl extends ServiceImpl impleme public boolean add(SdVpBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); } + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -77,7 +77,7 @@ public class SdVpBHServiceImpl extends ServiceImpl impleme SdVpBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -95,7 +95,7 @@ public class SdVpBHServiceImpl extends ServiceImpl impleme wrapper.set(SdVpBH::getDeleteUser, SecurityUtils.getCurrentUsername()); wrapper.set(SdVpBH::getDeleteTime, new Date()); if (this.update(wrapper)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++; + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } return count > 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWeBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWeBHServiceImpl.java index c4286a99..e5936adf 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWeBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWeBHServiceImpl.java @@ -68,7 +68,7 @@ public class SdWeBHServiceImpl extends ServiceImpl impleme public boolean add(SdWeBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); } + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -78,7 +78,7 @@ public class SdWeBHServiceImpl extends ServiceImpl impleme SdWeBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -91,7 +91,7 @@ public class SdWeBHServiceImpl extends ServiceImpl impleme for (String stcd : stcds) { SdWeBH entity = this.getById(stcd); if (this.removeById(stcd)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++; + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } return count > 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWqBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWqBHServiceImpl.java index 2d19db74..20eb8bd2 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWqBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWqBHServiceImpl.java @@ -70,7 +70,7 @@ public class SdWqBHServiceImpl extends ServiceImpl impleme public boolean add(SdWqBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); } + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -80,7 +80,7 @@ public class SdWqBHServiceImpl extends ServiceImpl impleme SdWqBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -98,7 +98,7 @@ public class SdWqBHServiceImpl extends ServiceImpl impleme wrapper.set(SdWqBH::getDeleteUser, SecurityUtils.getCurrentUsername()); wrapper.set(SdWqBH::getDeleteTime, new Date()); if (this.update(wrapper)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); count++; + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } } return count > 0; diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWtBHServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWtBHServiceImpl.java index c428b71c..c82548fe 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWtBHServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/service/impl/SdWtBHServiceImpl.java @@ -72,7 +72,7 @@ public class SdWtBHServiceImpl extends ServiceImpl impleme public boolean add(SdWtBH entity, String source) { boolean result = this.save(entity); if (result) { - msOperationLogService.recordAddDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordAddDetailLog(entity.getStcd(),TABLE_NAME, entity, source); } return result; } @@ -83,7 +83,7 @@ public class SdWtBHServiceImpl extends ServiceImpl impleme SdWtBH before = this.getById(entity.getStcd()); boolean result = this.updateById(entity); if (result && before != null) { - msOperationLogService.recordModifyDetailLog(TABLE_NAME, before, entity, source); + msOperationLogService.recordModifyDetailLog(entity.getStcd(),TABLE_NAME, before, entity, source); } return result; } @@ -101,7 +101,7 @@ public class SdWtBHServiceImpl extends ServiceImpl impleme wrapper.set(SdWtBH::getDeleteUser, SecurityUtils.getCurrentUsername()); wrapper.set(SdWtBH::getDeleteTime, new Date()); if (this.update(wrapper)) { - msOperationLogService.recordDeleteDetailLog(TABLE_NAME, entity, source); + msOperationLogService.recordDeleteDetailLog(stcd,TABLE_NAME, entity, source); count++; } }