From cf4a5deced71464d424ce5931774f6df0c4c6bb3 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期三, 26 十一月 2025 16:30:07 +0800
Subject: [PATCH] 修改新增
---
multi-system/src/main/java/com/gkhy/exam/system/service/impl/CorrectionServiceImpl.java | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/CorrectionServiceImpl.java b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/CorrectionServiceImpl.java
index d87bf10..b9119eb 100644
--- a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/CorrectionServiceImpl.java
+++ b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/CorrectionServiceImpl.java
@@ -48,10 +48,10 @@
}
@Override
- public CommonResult updateCorrection(Correction Correction) {
- Correction.setUpdateBy(SecurityUtils.getUsername());
- Correction.setUpdateTime(LocalDateTime.now());
- int insert = correctionMapper.updateById(Correction);
+ public CommonResult updateCorrection(Correction correction) {
+ correction.setUpdateBy(SecurityUtils.getUsername());
+ correction.setUpdateTime(LocalDateTime.now());
+ int insert = correctionMapper.updateById(correction);
if (insert > 0){
return CommonResult.success();
}
@@ -60,12 +60,12 @@
@Override
public CommonResult deletedCorrection(Integer id) {
- Correction Correction = new Correction();
- Correction.setId(id.longValue());
- Correction.setDelFlag(1);
- Correction.setUpdateBy(SecurityUtils.getUsername());
- Correction.setUpdateTime(LocalDateTime.now());
- int insert = correctionMapper.updateById(Correction);
+ Correction correction = new Correction();
+ correction.setId(id.longValue());
+ correction.setDelFlag(1);
+ correction.setUpdateBy(SecurityUtils.getUsername());
+ correction.setUpdateTime(LocalDateTime.now());
+ int insert = correctionMapper.updateById(correction);
if (insert > 0){
return CommonResult.success();
}
--
Gitblit v1.9.2