This commit is contained in:
2023-06-15 14:40:11 +08:00
parent cdd2a217c3
commit e1b2be97cc
12 changed files with 49 additions and 682 deletions

View File

@@ -1,232 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jsowell.pile.mapper.AdapayMemberInfoMapper">
<resultMap id="BaseResultMap" type="com.jsowell.pile.domain.AdapayMemberInfo">
<!--@mbg.generated-->
<!--@Table adapay_member_info-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
<result column="gender" jdbcType="VARCHAR" property="gender" />
<result column="identified" jdbcType="VARCHAR" property="identified" />
<result column="tel_no" jdbcType="INTEGER" property="telNo" />
<result column="prod_mode" jdbcType="VARCHAR" property="prodMode" />
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
<result column="disabled" jdbcType="VARCHAR" property="disabled" />
<result column="location" jdbcType="VARCHAR" property="location" />
<result column="app_id" jdbcType="VARCHAR" property="appId" />
<result column="email" jdbcType="VARCHAR" property="email" />
<result column="object" jdbcType="VARCHAR" property="object" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="del_flag" jdbcType="VARCHAR" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, merchant_id, member_id, gender, `identified`, tel_no, prod_mode, nickname, disabled, `location`,
app_id, email, `object`, `status`, create_time, del_flag
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from adapay_member_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from adapay_member_info
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.AdapayMemberInfo" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into adapay_member_info (merchant_id, member_id, gender, `identified`,
tel_no, prod_mode, nickname,
disabled, `location`, app_id,
email, `object`, `status`
)
values (#{merchantId,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{gender,jdbcType=VARCHAR}, #{identified,jdbcType=VARCHAR},
#{telNo,jdbcType=INTEGER}, #{prodMode,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR},
#{disabled,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR}, #{object,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.AdapayMemberInfo" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into adapay_member_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="merchantId != null">
merchant_id,
</if>
<if test="memberId != null">
member_id,
</if>
<if test="gender != null">
gender,
</if>
<if test="identified != null">
`identified`,
</if>
<if test="telNo != null">
tel_no,
</if>
<if test="prodMode != null">
prod_mode,
</if>
<if test="nickname != null">
nickname,
</if>
<if test="disabled != null">
disabled,
</if>
<if test="location != null">
`location`,
</if>
<if test="appId != null">
app_id,
</if>
<if test="email != null">
email,
</if>
<if test="object != null">
`object`,
</if>
<if test="status != null">
`status`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="delFlag != null">
del_flag,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="merchantId != null">
#{merchantId,jdbcType=VARCHAR},
</if>
<if test="memberId != null">
#{memberId,jdbcType=VARCHAR},
</if>
<if test="gender != null">
#{gender,jdbcType=VARCHAR},
</if>
<if test="identified != null">
#{identified,jdbcType=VARCHAR},
</if>
<if test="telNo != null">
#{telNo,jdbcType=INTEGER},
</if>
<if test="prodMode != null">
#{prodMode,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
#{nickname,jdbcType=VARCHAR},
</if>
<if test="disabled != null">
#{disabled,jdbcType=VARCHAR},
</if>
<if test="location != null">
#{location,jdbcType=VARCHAR},
</if>
<if test="appId != null">
#{appId,jdbcType=VARCHAR},
</if>
<if test="email != null">
#{email,jdbcType=VARCHAR},
</if>
<if test="object != null">
#{object,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.jsowell.pile.domain.AdapayMemberInfo">
<!--@mbg.generated-->
update adapay_member_info
<set>
<if test="merchantId != null">
merchant_id = #{merchantId,jdbcType=VARCHAR},
</if>
<if test="memberId != null">
member_id = #{memberId,jdbcType=VARCHAR},
</if>
<if test="gender != null">
gender = #{gender,jdbcType=VARCHAR},
</if>
<if test="identified != null">
`identified` = #{identified,jdbcType=VARCHAR},
</if>
<if test="telNo != null">
tel_no = #{telNo,jdbcType=INTEGER},
</if>
<if test="prodMode != null">
prod_mode = #{prodMode,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if test="disabled != null">
disabled = #{disabled,jdbcType=VARCHAR},
</if>
<if test="location != null">
`location` = #{location,jdbcType=VARCHAR},
</if>
<if test="appId != null">
app_id = #{appId,jdbcType=VARCHAR},
</if>
<if test="email != null">
email = #{email,jdbcType=VARCHAR},
</if>
<if test="object != null">
`object` = #{object,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.jsowell.pile.domain.AdapayMemberInfo">
<!--@mbg.generated-->
update adapay_member_info
set merchant_id = #{merchantId,jdbcType=VARCHAR},
member_id = #{memberId,jdbcType=VARCHAR},
gender = #{gender,jdbcType=VARCHAR},
`identified` = #{identified,jdbcType=VARCHAR},
tel_no = #{telNo,jdbcType=INTEGER},
prod_mode = #{prodMode,jdbcType=VARCHAR},
nickname = #{nickname,jdbcType=VARCHAR},
disabled = #{disabled,jdbcType=VARCHAR},
`location` = #{location,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
`object` = #{object,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectByMerchantId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from adapay_member_info
where del_flag = '0'
and merchant_id = #{merchantId,jdbcType=VARCHAR}
</select>
</mapper>

View File

@@ -1,152 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jsowell.pile.mapper.AdapaySettleAccountMapper">
<resultMap type="com.jsowell.pile.domain.AdapaySettleAccount" id="AdapaySettleAccountResult">
<result property="id" column="id" />
<result property="merchantId" column="merchant_id" />
<result property="adapayMemberId" column="adapay_member_id" />
<result property="settleAccountId" column="settle_account_id" />
<result property="cardId" column="card_id" />
<result property="cardName" column="card_name" />
<result property="certId" column="cert_id" />
<result property="certType" column="cert_type" />
<result property="telNo" column="tel_no" />
<result property="bankCode" column="bank_code" />
<result property="bankName" column="bank_name" />
<result property="bankAcctType" column="bank_acct_type" />
<result property="provCode" column="prov_code" />
<result property="areaCode" column="area_code" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="Base_Column_List">
id, merchant_id, adapay_member_id, settle_account_id, card_id, card_name, cert_id, cert_type, tel_no, bank_code, bank_name, bank_acct_type, prov_code, area_code, create_time, create_by, update_time, update_by, del_flag
</sql>
<sql id="selectAdapaySettleAccountVo">
select
<include refid="Base_Column_List"/>
from adapay_settle_account
</sql>
<select id="selectAdapaySettleAccountList" parameterType="com.jsowell.pile.domain.AdapaySettleAccount" resultMap="AdapaySettleAccountResult">
<include refid="selectAdapaySettleAccountVo"/>
<where>
<if test="merchantId != null and merchantId != ''"> and merchant_id = #{merchantId}</if>
<if test="adapayMemberId != null and adapayMemberId != ''"> and adapay_member_id = #{adapayMemberId}</if>
<if test="settleAccountId != null and settleAccountId != ''"> and settle_account_id = #{settleAccountId}</if>
<if test="cardId != null and cardId != ''"> and card_id = #{cardId}</if>
<if test="cardName != null and cardName != ''"> and card_name like concat('%', #{cardName}, '%')</if>
<if test="certId != null and certId != ''"> and cert_id = #{certId}</if>
<if test="certType != null and certType != ''"> and cert_type = #{certType}</if>
<if test="telNo != null and telNo != ''"> and tel_no = #{telNo}</if>
<if test="bankCode != null and bankCode != ''"> and bank_code = #{bankCode}</if>
<if test="bankName != null and bankName != ''"> and bank_name like concat('%', #{bankName}, '%')</if>
<if test="bankAcctType != null and bankAcctType != ''"> and bank_acct_type = #{bankAcctType}</if>
<if test="provCode != null and provCode != ''"> and prov_code = #{provCode}</if>
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
</where>
</select>
<select id="selectAdapaySettleAccountById" parameterType="Long" resultMap="AdapaySettleAccountResult">
<include refid="selectAdapaySettleAccountVo"/>
where id = #{id}
</select>
<insert id="insertAdapaySettleAccount" parameterType="com.jsowell.pile.domain.AdapaySettleAccount">
insert into adapay_settle_account
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="merchantId != null">merchant_id,</if>
<if test="adapayMemberId != null">adapay_member_id,</if>
<if test="settleAccountId != null">settle_account_id,</if>
<if test="cardId != null">card_id,</if>
<if test="cardName != null">card_name,</if>
<if test="certId != null">cert_id,</if>
<if test="certType != null">cert_type,</if>
<if test="telNo != null">tel_no,</if>
<if test="bankCode != null">bank_code,</if>
<if test="bankName != null">bank_name,</if>
<if test="bankAcctType != null">bank_acct_type,</if>
<if test="provCode != null">prov_code,</if>
<if test="areaCode != null">area_code,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="delFlag != null">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="merchantId != null">#{merchantId},</if>
<if test="adapayMemberId != null">#{adapayMemberId},</if>
<if test="settleAccountId != null">#{settleAccountId},</if>
<if test="cardId != null">#{cardId},</if>
<if test="cardName != null">#{cardName},</if>
<if test="certId != null">#{certId},</if>
<if test="certType != null">#{certType},</if>
<if test="telNo != null">#{telNo},</if>
<if test="bankCode != null">#{bankCode},</if>
<if test="bankName != null">#{bankName},</if>
<if test="bankAcctType != null">#{bankAcctType},</if>
<if test="provCode != null">#{provCode},</if>
<if test="areaCode != null">#{areaCode},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="delFlag != null">#{delFlag},</if>
</trim>
</insert>
<update id="updateAdapaySettleAccount" parameterType="com.jsowell.pile.domain.AdapaySettleAccount">
update adapay_settle_account
<trim prefix="SET" suffixOverrides=",">
<if test="merchantId != null">merchant_id = #{merchantId},</if>
<if test="adapayMemberId != null">adapay_member_id = #{adapayMemberId},</if>
<if test="settleAccountId != null">settle_account_id = #{settleAccountId},</if>
<if test="cardId != null">card_id = #{cardId},</if>
<if test="cardName != null">card_name = #{cardName},</if>
<if test="certId != null">cert_id = #{certId},</if>
<if test="certType != null">cert_type = #{certType},</if>
<if test="telNo != null">tel_no = #{telNo},</if>
<if test="bankCode != null">bank_code = #{bankCode},</if>
<if test="bankName != null">bank_name = #{bankName},</if>
<if test="bankAcctType != null">bank_acct_type = #{bankAcctType},</if>
<if test="provCode != null">prov_code = #{provCode},</if>
<if test="areaCode != null">area_code = #{areaCode},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteAdapaySettleAccountById" parameterType="Long">
delete from adapay_settle_account where id = #{id}
</delete>
<delete id="deleteAdapaySettleAccountByIds" parameterType="String">
delete from adapay_settle_account where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectByMerchantId" resultMap="AdapaySettleAccountResult">
select
<include refid="Base_Column_List"/>
from adapay_settle_account
where del_flag = '0'
and merchant_id = #{merchantId,jdbcType=VARCHAR}
</select>
</mapper>