mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-26 14:05:04 +08:00
update
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
<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" />
|
||||
@@ -25,8 +26,14 @@
|
||||
<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 id, merchant_id, adapay_member_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 from adapay_settle_account
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from adapay_settle_account
|
||||
</sql>
|
||||
|
||||
<select id="selectAdapaySettleAccountList" parameterType="com.jsowell.pile.domain.AdapaySettleAccount" resultMap="AdapaySettleAccountResult">
|
||||
@@ -34,6 +41,7 @@
|
||||
<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>
|
||||
@@ -58,6 +66,7 @@
|
||||
<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>
|
||||
@@ -78,6 +87,7 @@
|
||||
<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>
|
||||
@@ -101,6 +111,7 @@
|
||||
<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>
|
||||
@@ -130,4 +141,12 @@
|
||||
#{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>
|
||||
Reference in New Issue
Block a user