From c30cca8f6a2b52cfd60eb7cf09ada5e80fbf5d8f Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Tue, 4 Apr 2023 18:53:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B8=B8=E9=87=8F?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/xyz/zhouxy/plusone/constant/ErrorCodeConsts.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plusone-basic/plusone-basic-common/src/main/java/xyz/zhouxy/plusone/constant/ErrorCodeConsts.java b/plusone-basic/plusone-basic-common/src/main/java/xyz/zhouxy/plusone/constant/ErrorCodeConsts.java index 2c38bd4..569a78f 100644 --- a/plusone-basic/plusone-basic-common/src/main/java/xyz/zhouxy/plusone/constant/ErrorCodeConsts.java +++ b/plusone-basic/plusone-basic-common/src/main/java/xyz/zhouxy/plusone/constant/ErrorCodeConsts.java @@ -2,6 +2,8 @@ package xyz.zhouxy.plusone.constant; public class ErrorCodeConsts { public static final int DEFAULT_ERROR_CODE = 9999999; + public static final int DEFAULT_SYS_ERROR_CODE = 5000000; + public static final int DEFAULT_BIZ_ERROR_CODE = 4000000; private ErrorCodeConsts() { throw new IllegalStateException("Utility class"); From 5215fded9c96f5d5c6fd965c98329d7bc002765d Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Thu, 6 Apr 2023 16:21:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E5=88=AB?= =?UTF-8?q?=E5=AD=97=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/xyz/zhouxy/plusone/jdbc/common/ResultMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plusone-basic/plusone-basic-infrastructure/src/main/java/xyz/zhouxy/plusone/jdbc/common/ResultMapper.java b/plusone-basic/plusone-basic-infrastructure/src/main/java/xyz/zhouxy/plusone/jdbc/common/ResultMapper.java index 55cf363..6d12efd 100644 --- a/plusone-basic/plusone-basic-infrastructure/src/main/java/xyz/zhouxy/plusone/jdbc/common/ResultMapper.java +++ b/plusone-basic/plusone-basic-infrastructure/src/main/java/xyz/zhouxy/plusone/jdbc/common/ResultMapper.java @@ -8,7 +8,7 @@ import java.sql.SQLException; * *

* 通过在 {@link #map(ResultSet)} 中配置 {@link ResultSet} 到对象的映射, - * 可将 {@link #rowMapper(ResultSet, int)} 的方法应用, + * 可将 {@link #rowMapper(ResultSet, int)} 的方法引用, * 直接当成 {@link org.springframework.jdbc.core.RowMapper} 对象传给 * {@link org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate} * 的查询方法,