From 8d4a827cb3f786399b2539d8a9f7864cad85c984 Mon Sep 17 00:00:00 2001 From: jay <75509151@qq.com> Date: Sun, 4 Jun 2023 09:53:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/exception/user/UserException.java | 2 +- .../iotkit/data/service/SysUserDataImpl.java | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/iot-common/iot-common-core/src/main/java/cc/iotkit/common/exception/user/UserException.java b/iot-common/iot-common-core/src/main/java/cc/iotkit/common/exception/user/UserException.java index ad859b5f..59082fcd 100644 --- a/iot-common/iot-common-core/src/main/java/cc/iotkit/common/exception/user/UserException.java +++ b/iot-common/iot-common-core/src/main/java/cc/iotkit/common/exception/user/UserException.java @@ -30,7 +30,7 @@ public class UserException extends BaseException { /** * 错误码 */ - private Integer code; + private String code; /** * 错误消息 diff --git a/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/service/SysUserDataImpl.java b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/service/SysUserDataImpl.java index c5e108c8..ab7ca099 100644 --- a/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/service/SysUserDataImpl.java +++ b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/service/SysUserDataImpl.java @@ -93,6 +93,36 @@ public class SysUserDataImpl implements ISysUserData, IJPACommData findAll(PageRequest pageRequest) { return PageBuilder.toPaging(userRepository.findAll(buildQueryCondition(pageRequest.getData()), PageBuilder.toPageable(pageRequest)));