From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 25 二月 2025 16:41:22 +0800 Subject: [PATCH] 淘宝转链接口更新 --- fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/redpack/RedPackDetailTypeEnumHandler.java | 108 +++++++++++++++++++++++++++--------------------------- 1 files changed, 54 insertions(+), 54 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/redpack/RedPackDetailTypeEnumHandler.java b/fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/redpack/RedPackDetailTypeEnumHandler.java index 30c3c0f..7426617 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/redpack/RedPackDetailTypeEnumHandler.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/mybatishandler/redpack/RedPackDetailTypeEnumHandler.java @@ -1,54 +1,54 @@ -package com.yeshi.fanli.util.mybatishandler.redpack; - -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.redpack.RedPackDetail.RedPackDetailTypeEnum; - - -public class RedPackDetailTypeEnumHandler extends BaseTypeHandler<RedPackDetailTypeEnum> { - - @Override - public RedPackDetailTypeEnum getNullableResult(ResultSet arg0, String arg1) throws SQLException { - String key = arg0.getString(arg1); - if (arg0.wasNull()) { - return null; - } else { - return RedPackDetailTypeEnum.valueOf(key); - } - } - - @Override - public RedPackDetailTypeEnum getNullableResult(ResultSet arg0, int arg1) throws SQLException { - String key = arg0.getString(arg1); - if (arg0.wasNull()) { - return null; - } else { - // 鏍规嵁鏁版嵁搴撲腑鐨刱ey鍊硷紝瀹氫綅SexEnum瀛愮被 - return RedPackDetailTypeEnum.valueOf(key); - } - } - - @Override - public RedPackDetailTypeEnum getNullableResult(CallableStatement arg0, int arg1) throws SQLException { - String key = arg0.getString(arg1); - if (arg0.wasNull()) { - return null; - } else { - // 鏍规嵁鏁版嵁搴撲腑鐨刱ey鍊硷紝瀹氫綅SexEnum瀛愮被 - return RedPackDetailTypeEnum.valueOf(key); - } - } - - @Override - public void setNonNullParameter(PreparedStatement arg0, int arg1, RedPackDetailTypeEnum arg2, JdbcType arg3) - throws SQLException { - arg0.setString(arg1, arg2.name()); - } - -} +package com.yeshi.fanli.util.mybatishandler.redpack; + +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.redpack.RedPackDetail.RedPackDetailTypeEnum; + + +public class RedPackDetailTypeEnumHandler extends BaseTypeHandler<RedPackDetailTypeEnum> { + + @Override + public RedPackDetailTypeEnum getNullableResult(ResultSet arg0, String arg1) throws SQLException { + String key = arg0.getString(arg1); + if (arg0.wasNull()) { + return null; + } else { + return RedPackDetailTypeEnum.valueOf(key); + } + } + + @Override + public RedPackDetailTypeEnum getNullableResult(ResultSet arg0, int arg1) throws SQLException { + String key = arg0.getString(arg1); + if (arg0.wasNull()) { + return null; + } else { + // 鏍规嵁鏁版嵁搴撲腑鐨刱ey鍊硷紝瀹氫綅SexEnum瀛愮被 + return RedPackDetailTypeEnum.valueOf(key); + } + } + + @Override + public RedPackDetailTypeEnum getNullableResult(CallableStatement arg0, int arg1) throws SQLException { + String key = arg0.getString(arg1); + if (arg0.wasNull()) { + return null; + } else { + // 鏍规嵁鏁版嵁搴撲腑鐨刱ey鍊硷紝瀹氫綅SexEnum瀛愮被 + return RedPackDetailTypeEnum.valueOf(key); + } + } + + @Override + public void setNonNullParameter(PreparedStatement arg0, int arg1, RedPackDetailTypeEnum arg2, JdbcType arg3) + throws SQLException { + arg0.setString(arg1, arg2.name()); + } + +} -- Gitblit v1.8.0