diff --git a/web-adapter/src/main/java/com/zcloud/basic/info/aspect/SyncResponseEncryptAspect.java b/web-adapter/src/main/java/com/zcloud/basic/info/aspect/SyncResponseEncryptAspect.java index a9dfca9a..3bc7ecb6 100644 --- a/web-adapter/src/main/java/com/zcloud/basic/info/aspect/SyncResponseEncryptAspect.java +++ b/web-adapter/src/main/java/com/zcloud/basic/info/aspect/SyncResponseEncryptAspect.java @@ -1,6 +1,7 @@ package com.zcloud.basic.info.aspect; import com.alibaba.cola.dto.SingleResponse; +import com.alibaba.cola.exception.BizException; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; @@ -43,26 +44,26 @@ public class SyncResponseEncryptAspect { String signature = request.getHeader("X-SIGNATURE"); if (corpinfoId == null || timestamp == null || signature == null) { - throw new SecurityException("缺少必要的认证头信息"); + throw new BizException("缺少必要的认证头信息"); } long requestTime = Long.parseLong(timestamp); if (Math.abs(System.currentTimeMillis() - requestTime) > TIMESTAMP_TOLERANCE) { - throw new SecurityException("请求已过期"); + throw new BizException("请求已过期"); } CorpInfoKeyDO keyDO = corpInfoKeyService.getByCorpinfoId(Long.parseLong(corpinfoId)); if (keyDO == null) { - throw new SecurityException("未找到对应的密钥配置"); + throw new BizException("未找到对应的密钥配置"); } if (keyDO.getPublicKey() == null || keyDO.getSignKey() == null) { - throw new SecurityException("密钥配置不完整"); + throw new BizException("密钥配置不完整"); } String body = getRequestBody(joinPoint); if (!sm2Verify(signature, corpinfoId, timestamp, body, keyDO)) { - throw new SecurityException("签名验证失败"); + throw new BizException("签名验证失败"); } Object result = joinPoint.proceed(); diff --git a/web-client/src/main/java/com/zcloud/basic/info/dto/sync/SyncDepartmentQryPageCmd.java b/web-client/src/main/java/com/zcloud/basic/info/dto/sync/SyncDepartmentQryPageCmd.java index 41b9bdd6..a2b4dd31 100644 --- a/web-client/src/main/java/com/zcloud/basic/info/dto/sync/SyncDepartmentQryPageCmd.java +++ b/web-client/src/main/java/com/zcloud/basic/info/dto/sync/SyncDepartmentQryPageCmd.java @@ -30,7 +30,7 @@ public class SyncDepartmentQryPageCmd { @NotNull(message = "corpinfoId不能为空") private Long corpinfoId; private String name; - private String parentId; // 父部门id + private Long parentId; // 父部门id }