From 554ca6cb6a43f15a58c71fd422c3abc0feabdddc Mon Sep 17 00:00:00 2001 From: userName <1224773+usename@user.noreply.gitee.com> Date: Tue, 23 Jul 2019 10:13:01 +0800 Subject: [PATCH] =?UTF-8?q?!27=20=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF=20*=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ifast/common/config/Constant.java | 2 +- src/main/java/com/ifast/common/utils/GenUtils.java | 2 +- src/main/java/com/ifast/common/utils/UUIDUtils.java | 6 +++--- src/main/java/com/ifast/wxmp/pojo/type/Const.java | 2 +- src/main/java/com/ifast/wxmp/util/WxMpConfigHolder.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/ifast/common/config/Constant.java b/src/main/java/com/ifast/common/config/Constant.java index 74ba705..626c837 100644 --- a/src/main/java/com/ifast/common/config/Constant.java +++ b/src/main/java/com/ifast/common/config/Constant.java @@ -28,7 +28,7 @@ public class Constant { */ public static class Generator { // 自动去除表前缀 - public static String AUTO_REOMVE_PRE = "true"; + public static String AUTO_REMOVE_PRE = "true"; } diff --git a/src/main/java/com/ifast/common/utils/GenUtils.java b/src/main/java/com/ifast/common/utils/GenUtils.java index 3fedd28..66a6ea7 100644 --- a/src/main/java/com/ifast/common/utils/GenUtils.java +++ b/src/main/java/com/ifast/common/utils/GenUtils.java @@ -180,7 +180,7 @@ public class GenUtils { */ public static String tableToJava(String tableName, String tablePrefix, String autoRemovePre) { - if (Constant.Generator.AUTO_REOMVE_PRE.equals(autoRemovePre)) { + if (Constant.Generator.AUTO_REMOVE_PRE.equals(autoRemovePre)) { tableName = tableName.substring(tableName.indexOf(STR_DELIMITER) + 1); } if (StringUtils.isNotBlank(tablePrefix)) { diff --git a/src/main/java/com/ifast/common/utils/UUIDUtils.java b/src/main/java/com/ifast/common/utils/UUIDUtils.java index e2eca98..454f96e 100644 --- a/src/main/java/com/ifast/common/utils/UUIDUtils.java +++ b/src/main/java/com/ifast/common/utils/UUIDUtils.java @@ -11,11 +11,11 @@ import java.util.UUID; public abstract class UUIDUtils { public static String get(boolean isPureStr) { - String sesult = UUID.randomUUID().toString(); + String result = UUID.randomUUID().toString(); if (isPureStr) { - sesult = sesult.replaceAll("-", ""); + result = result.replaceAll("-", ""); } - return sesult; + return result; } public static String get() { diff --git a/src/main/java/com/ifast/wxmp/pojo/type/Const.java b/src/main/java/com/ifast/wxmp/pojo/type/Const.java index bd9b5ee..cfa10cc 100644 --- a/src/main/java/com/ifast/wxmp/pojo/type/Const.java +++ b/src/main/java/com/ifast/wxmp/pojo/type/Const.java @@ -32,7 +32,7 @@ public class Const { /** * 服务号 */ - public final static Integer SERIVCE = 2; + public final static Integer SERVICE = 2; /** * 企业号 */ diff --git a/src/main/java/com/ifast/wxmp/util/WxMpConfigHolder.java b/src/main/java/com/ifast/wxmp/util/WxMpConfigHolder.java index 3ef8cfe..f0246d9 100644 --- a/src/main/java/com/ifast/wxmp/util/WxMpConfigHolder.java +++ b/src/main/java/com/ifast/wxmp/util/WxMpConfigHolder.java @@ -48,7 +48,7 @@ public class WxMpConfigHolder implements InitializingBean { @Override public void afterPropertiesSet() { mpConfigService.selectList( - new EntityWrapper<>(MpConfigDO.builder().appType(Const.appType.SERIVCE).build())) + new EntityWrapper<>(MpConfigDO.builder().appType(Const.appType.SERVICE).build())) .forEach(bean -> { WxMpInMemoryConfigStorage config = new WxMpInMemoryConfigStorage(); // 设置微信公众号的appid -- Gitee