From 4b7c1259a74e805d74f8c94c952fdaac69c0811b Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Tue, 16 Dec 2025 16:18:02 +0800 Subject: [PATCH] =?UTF-8?q?ICD=E6=98=A0=E5=B0=84=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../icd/service/impl/PqIcdPathServiceImpl.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/detection/src/main/java/com/njcn/gather/icd/service/impl/PqIcdPathServiceImpl.java b/detection/src/main/java/com/njcn/gather/icd/service/impl/PqIcdPathServiceImpl.java index 692d6963..b4da9708 100644 --- a/detection/src/main/java/com/njcn/gather/icd/service/impl/PqIcdPathServiceImpl.java +++ b/detection/src/main/java/com/njcn/gather/icd/service/impl/PqIcdPathServiceImpl.java @@ -137,6 +137,10 @@ public class PqIcdPathServiceImpl extends ServiceImpl ids) { + List pqIcdPaths = this.listByIds(ids); + String commInstallPath = this.getCommInstallPath(); + pqIcdPaths.forEach(pqIcdPath -> { + String mappingFilePath = commInstallPath + "\\DeviceControl\\Config\\" + pqIcdPath.getName() + ".txt"; + Path path = Paths.get(mappingFilePath); + File file = path.toFile(); + if (file.exists()) { + file.delete(); + } + }); + return this.lambdaUpdate().in(PqIcdPath::getId, ids).set(PqIcdPath::getState, DataStateEnum.DELETED.getCode()).update(); }