支付新增shopId

This commit is contained in:
guohb
2024-05-07 14:35:08 +08:00
parent 76ec232a80
commit d58f2aeba7
5 changed files with 34 additions and 10 deletions

View File

@@ -4,6 +4,7 @@
<resultMap id="BaseResultMap" type="com.cool.store.entity.LinePayDO">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="partner_id" jdbcType="VARCHAR" property="partnerId"/>
<result column="shop_id" jdbcType="BIGINT" property="shopId"/>
<result column="line_id" jdbcType="BIGINT" property="lineId"/>
<result column="pay_status" jdbcType="TINYINT" property="payStatus"/>
<result column="pay_type" jdbcType="TINYINT" property="payType"/>
@@ -24,8 +25,7 @@
<result column="pay_business_type" jdbcType="TINYINT" property="payBusinessType"/>
</resultMap>
<sql id="Base_Column_List">
id
, partner_id, line_id, pay_status, pay_type, pay_user_name, pay_account, bank_code,
id,shop_id, partner_id, line_id, pay_status, pay_type, pay_user_name, pay_account, bank_code,
bank_name, branch_bank_code, branch_bank_name, pay_time, pay_pic, promise_pic, create_time,
update_time, create_user_id, update_user_id, deleted,pay_business_type
</sql>
@@ -299,12 +299,17 @@
and deleted = '0' limit 1
</select>
<select id="getLinePayByLineIdAndPayType" resultMap="BaseResultMap">
<select id="getByLineIdAndPayTypeAndShopId" resultMap="BaseResultMap">
select *
from xfsg_line_pay
where line_id = #{lineId}
and deleted = '0'
and pay_business_type = #{payBusinessType}
<where>
line_id = #{lineId}
and deleted = '0'
and pay_business_type = #{payBusinessType}
<if test="shop_id != null and shopId != ''">
and shop_id = #{shopId}
</if>
</where>
</select>
<select id="getLinePayByLineIds" resultMap="BaseResultMap">