From 190d6bc6aa7e4ca33c281bd9785339f3bddaf11e Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 08 五月 2021 12:43:37 +0800
Subject: [PATCH] bug修复
---
fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/msg/MsgTypeOtherTypeEnumHandler.java | 106 ++++++++++++++++++++++++++--------------------------
1 files changed, 53 insertions(+), 53 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/msg/MsgTypeOtherTypeEnumHandler.java b/fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/msg/MsgTypeOtherTypeEnumHandler.java
index decac34..326a988 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/msg/MsgTypeOtherTypeEnumHandler.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/msg/MsgTypeOtherTypeEnumHandler.java
@@ -1,53 +1,53 @@
-package com.yeshi.fanli.util.mybatishandler.msg;
-
-import java.sql.CallableStatement;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-
-import org.apache.ibatis.type.BaseTypeHandler;
-import org.apache.ibatis.type.JdbcType;
-
-import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail.MsgTypeOtherTypeEnum;
-
-public class MsgTypeOtherTypeEnumHandler extends BaseTypeHandler<MsgTypeOtherTypeEnum> {
-
- @Override
- public MsgTypeOtherTypeEnum getNullableResult(ResultSet arg0, String arg1) throws SQLException {
- String key = arg0.getString(arg1);
- if (arg0.wasNull()) {
- return null;
- } else {
- return MsgTypeOtherTypeEnum.valueOf(key);
- }
- }
-
- @Override
- public MsgTypeOtherTypeEnum getNullableResult(ResultSet arg0, int arg1) throws SQLException {
- String key = arg0.getString(arg1);
- if (arg0.wasNull()) {
- return null;
- } else {
- // 鏍规嵁鏁版嵁搴撲腑鐨刱ey鍊硷紝瀹氫綅SexEnum瀛愮被
- return MsgTypeOtherTypeEnum.valueOf(key);
- }
- }
-
- @Override
- public MsgTypeOtherTypeEnum getNullableResult(CallableStatement arg0, int arg1) throws SQLException {
- String key = arg0.getString(arg1);
- if (arg0.wasNull()) {
- return null;
- } else {
- // 鏍规嵁鏁版嵁搴撲腑鐨刱ey鍊硷紝瀹氫綅SexEnum瀛愮被
- return MsgTypeOtherTypeEnum.valueOf(key);
- }
- }
-
- @Override
- public void setNonNullParameter(PreparedStatement arg0, int arg1, MsgTypeOtherTypeEnum arg2, JdbcType arg3)
- throws SQLException {
- arg0.setString(arg1, arg2.name());
- }
-
-}
+package com.yeshi.fanli.util.mybatishandler.msg;
+
+import java.sql.CallableStatement;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+
+import org.apache.ibatis.type.BaseTypeHandler;
+import org.apache.ibatis.type.JdbcType;
+
+import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail.MsgTypeOtherTypeEnum;
+
+public class MsgTypeOtherTypeEnumHandler extends BaseTypeHandler<MsgTypeOtherTypeEnum> {
+
+ @Override
+ public MsgTypeOtherTypeEnum getNullableResult(ResultSet arg0, String arg1) throws SQLException {
+ String key = arg0.getString(arg1);
+ if (arg0.wasNull()) {
+ return null;
+ } else {
+ return MsgTypeOtherTypeEnum.valueOf(key);
+ }
+ }
+
+ @Override
+ public MsgTypeOtherTypeEnum getNullableResult(ResultSet arg0, int arg1) throws SQLException {
+ String key = arg0.getString(arg1);
+ if (arg0.wasNull()) {
+ return null;
+ } else {
+ // 鏍规嵁鏁版嵁搴撲腑鐨刱ey鍊硷紝瀹氫綅SexEnum瀛愮被
+ return MsgTypeOtherTypeEnum.valueOf(key);
+ }
+ }
+
+ @Override
+ public MsgTypeOtherTypeEnum getNullableResult(CallableStatement arg0, int arg1) throws SQLException {
+ String key = arg0.getString(arg1);
+ if (arg0.wasNull()) {
+ return null;
+ } else {
+ // 鏍规嵁鏁版嵁搴撲腑鐨刱ey鍊硷紝瀹氫綅SexEnum瀛愮被
+ return MsgTypeOtherTypeEnum.valueOf(key);
+ }
+ }
+
+ @Override
+ public void setNonNullParameter(PreparedStatement arg0, int arg1, MsgTypeOtherTypeEnum arg2, JdbcType arg3)
+ throws SQLException {
+ arg0.setString(arg1, arg2.name());
+ }
+
+}
--
Gitblit v1.8.0