mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 汇付会员账户表实体类
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jsowell.pile.mapper.AdapayMemberAccountMapper">
|
||||
|
||||
<resultMap type="AdapayMemberAccount" id="AdapayMemberAccountResult">
|
||||
<resultMap type="com.jsowell.pile.domain.AdapayMemberAccount" id="AdapayMemberAccountResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="merchantId" column="merchant_id" />
|
||||
<result property="adapayMemberId" column="adapay_member_id" />
|
||||
@@ -16,11 +16,17 @@
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAdapayMemberAccountVo">
|
||||
select id, merchant_id, adapay_member_id, settle_account_id, create_time, create_by, update_time, update_by, del_flag from adapay_member_account
|
||||
<sql id="Base_Column_List">
|
||||
id, merchant_id, adapay_member_id, settle_account_id, create_time, create_by, update_time, update_by, del_flag
|
||||
</sql>
|
||||
|
||||
<select id="selectAdapayMemberAccountList" parameterType="AdapayMemberAccount" resultMap="AdapayMemberAccountResult">
|
||||
<sql id="selectAdapayMemberAccountVo">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from adapay_member_account
|
||||
</sql>
|
||||
|
||||
<select id="selectAdapayMemberAccountList" parameterType="com.jsowell.pile.domain.AdapayMemberAccount" resultMap="AdapayMemberAccountResult">
|
||||
<include refid="selectAdapayMemberAccountVo"/>
|
||||
<where>
|
||||
<if test="merchantId != null and merchantId != ''"> and merchant_id = #{merchantId}</if>
|
||||
@@ -34,7 +40,7 @@
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertAdapayMemberAccount" parameterType="AdapayMemberAccount" useGeneratedKeys="true" keyProperty="id">
|
||||
<insert id="insertAdapayMemberAccount" parameterType="com.jsowell.pile.domain.AdapayMemberAccount" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into adapay_member_account
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="merchantId != null">merchant_id,</if>
|
||||
@@ -58,7 +64,7 @@
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateAdapayMemberAccount" parameterType="AdapayMemberAccount">
|
||||
<update id="updateAdapayMemberAccount" parameterType="com.jsowell.pile.domain.AdapayMemberAccount">
|
||||
update adapay_member_account
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="merchantId != null">merchant_id = #{merchantId},</if>
|
||||
@@ -83,4 +89,12 @@
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectByMerchantId" resultType="com.jsowell.pile.domain.AdapayMemberAccount">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from adapay_member_account
|
||||
where del_flag = '0'
|
||||
and merchant_id = #{merchantId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user