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)));