diff --git a/src/main/java/com/ifast/common/config/Constant.java b/src/main/java/com/ifast/common/config/Constant.java index 74ba705edb6339158a8c81f4e355531250bc9d8f..626c8372e8aa44fbafb6c4eed935927557912c0a 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 3fedd28b0b5f512c0813221329fa4e542932a696..66a6ea7e10a9fccc9c582878434f3cd403e8d1a6 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 e2eca98cb0efc86803e7fe5954b4c75a2faa51d5..454f96eaa137050e0784eb4e956e75ec42d61496 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 bd9b5ee1d569f4edcf950f080977231f599aa464..cfa10ccb6b7d1940a7e5eac805da229638869805 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 3ef8cfea19a5157c4dc76b6cfdd95b7759f332c1..f0246d929ee5af0182e28c96542c91297f30a079 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