From 63914e2499bfcbfcb334d96fc8e0068fb6c5e5f5 Mon Sep 17 00:00:00 2001 From: wangzhibiao Date: Mon, 21 Sep 2026 16:56:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=A8=E7=A6=81=EF=BC=9A?= =?UTF-8?q?=E5=B0=86=E7=A9=BA=E5=93=8D=E5=BA=94Mutation=E5=BD=92=E7=B1=BB?= =?UTF-8?q?=E4=B8=BA=E5=A4=96=E9=83=A8=E7=BB=93=E6=9E=9C=E4=B8=8D=E7=A1=AE?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../train/integration/dms/client/DmsPasswordClient.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RuoYi-Vue/ruoyi-train/src/main/java/com/ruoyi/train/integration/dms/client/DmsPasswordClient.java b/RuoYi-Vue/ruoyi-train/src/main/java/com/ruoyi/train/integration/dms/client/DmsPasswordClient.java index 4e88a65ce..ab6bc9fe9 100644 --- a/RuoYi-Vue/ruoyi-train/src/main/java/com/ruoyi/train/integration/dms/client/DmsPasswordClient.java +++ b/RuoYi-Vue/ruoyi-train/src/main/java/com/ruoyi/train/integration/dms/client/DmsPasswordClient.java @@ -6,6 +6,7 @@ import com.ruoyi.train.integration.dms.dto.DmsPasswordCreateResponse; import com.ruoyi.train.integration.dms.dto.DmsPasswordDeleteRequest; import com.ruoyi.train.integration.dms.dto.DmsPasswordDeleteResponse; import com.ruoyi.train.integration.dms.exception.DmsBusinessException; +import com.ruoyi.train.integration.dms.exception.DmsTransportException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; @@ -52,7 +53,7 @@ public class DmsPasswordClient { JSONObject resp = httpClient.postMutation("/rest/doorlock/online-password-key/create", request, JSONObject.class); if (resp == null) { - throw new DmsBusinessException("EMPTY_RESPONSE", "Received null response from DMS password creation"); + throw new DmsTransportException("EMPTY_RESPONSE: Received null response from DMS password creation"); } JSONObject data = resp.getJSONObject("data"); @@ -87,7 +88,7 @@ public class DmsPasswordClient { JSONObject resp = httpClient.postMutation("/rest/doorlock/online-password/delete", reqBody, JSONObject.class); if (resp == null) { - throw new DmsBusinessException("EMPTY_RESPONSE", "Received null response from DMS password deletion"); + throw new DmsTransportException("EMPTY_RESPONSE: Received null response from DMS password deletion"); } JSONObject data = resp.getJSONObject("data");