From 10a22a0770c52bbabbf5fa8a28fefd8a42035baa Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 12 Jul 2024 11:38:46 +0800
Subject: [PATCH] 防sql注入
---
src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java b/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
index d5798f7..5e91913 100644
--- a/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
+++ b/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
@@ -232,7 +232,7 @@
list.forEach(id -> {
AccreditationRecords records = new AccreditationRecords();
records.setStatus(2);
- records.setId(id);
+ records.setId(Long.parseLong(id));
//更新
this.updateById(records);
--
Gitblit v1.9.3