Merge branch 'cc_20250529_franchise_fee' into 'master'
Cc 20250529 franchise fee See merge request hangzhou/java/custom_zxjp!109
This commit is contained in:
@@ -32,6 +32,22 @@
|
||||
where shop_id = #{item.shopId}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="batchUpdateXgjCollectionStatus">
|
||||
update xfsg_franchise_fee
|
||||
set xgj_collection_status = #{collectionStatus}
|
||||
where shop_id in
|
||||
<foreach collection="shopIds" item="shopId" open="(" separator="," close=")">
|
||||
#{shopId}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="batchUpdateXgjCollectionStatusAndXgjFeesPaid">
|
||||
<foreach collection="list" separator=";" item="item">
|
||||
update xfsg_franchise_fee
|
||||
set xgj_collection_status = #{item.xgjCollectionStatus},
|
||||
xgj_fees_paid = #{item.xgjFeesPaid}
|
||||
where shop_id = #{item.shopId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="selectByShopId" resultType="com.cool.store.entity.FranchiseFeeDO">
|
||||
select *
|
||||
|
||||
@@ -25,23 +25,37 @@
|
||||
<result column="pay_business_type" jdbcType="TINYINT" property="payBusinessType"/>
|
||||
<result column="amount" jdbcType="DECIMAL" property="amount"/>
|
||||
<result column="combined_field" jdbcType="VARCHAR" property="combinedField"/>
|
||||
<result column="xgj_claim_status" jdbcType="TINYINT" property="xgjClaimStatus"/>
|
||||
<result column="payment_receipt_code" jdbcType="VARCHAR" property="paymentReceiptCode"/>
|
||||
<result column="pay_serial_number" jdbcType="VARCHAR" property="paySerialNumber"/>
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
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,amount,combined_field
|
||||
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,amount,combined_field,xgj_claim_status,payment_receipt_code,pay_serial_number,
|
||||
remark
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from xfsg_line_pay
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
where id = #{id,jdbcType=BIGINT} and deleted = 0
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete
|
||||
from xfsg_line_pay
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<update id="deleteByShopId">
|
||||
update xfsg_line_pay
|
||||
set deleted = 1
|
||||
where shop_id in
|
||||
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</update>
|
||||
<insert id="insertSelective" parameterType="com.cool.store.entity.LinePayDO">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
@@ -78,8 +92,8 @@
|
||||
<if test="branchBankName != null">
|
||||
branch_bank_name,
|
||||
</if>
|
||||
pay_time,
|
||||
pay_pic,
|
||||
pay_time,
|
||||
pay_pic,
|
||||
|
||||
<if test="promisePic != null">
|
||||
promise_pic,
|
||||
@@ -111,6 +125,18 @@
|
||||
<if test="combinedField != null">
|
||||
combined_field,
|
||||
</if>
|
||||
<if test="xgjClaimStatus !=null">
|
||||
xgj_claim_status,
|
||||
</if>
|
||||
<if test="paymentReceiptCode !=null">
|
||||
payment_receipt_code,
|
||||
</if>
|
||||
<if test="paySerialNumber !=null">
|
||||
pay_serial_number,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="partnerId != null">
|
||||
@@ -143,8 +169,8 @@
|
||||
<if test="branchBankName != null">
|
||||
#{branchBankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
#{payTime,jdbcType=TIMESTAMP},
|
||||
#{payPic,jdbcType=VARCHAR},
|
||||
#{payTime,jdbcType=TIMESTAMP},
|
||||
#{payPic,jdbcType=VARCHAR},
|
||||
<if test="promisePic != null">
|
||||
#{promisePic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -175,6 +201,18 @@
|
||||
<if test="combinedField != null">
|
||||
#{combinedField,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="xgjClaimStatus !=null">
|
||||
#{xgjClaimStatus,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="paymentReceiptCode !=null">
|
||||
#{paymentReceiptCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paySerialNumber !=null">
|
||||
#{paySerialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.LinePayDO">
|
||||
@@ -210,8 +248,8 @@
|
||||
<if test="branchBankName != null">
|
||||
branch_bank_name = #{branchBankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
pay_time = #{payTime,jdbcType=TIMESTAMP},
|
||||
pay_pic = #{payPic,jdbcType=VARCHAR},
|
||||
pay_time = #{payTime,jdbcType=TIMESTAMP},
|
||||
pay_pic = #{payPic,jdbcType=VARCHAR},
|
||||
|
||||
<if test="promisePic != null">
|
||||
promise_pic = #{promisePic,jdbcType=VARCHAR},
|
||||
@@ -237,6 +275,18 @@
|
||||
<if test="combinedField != null">
|
||||
combined_field = #{combinedField,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="xgjClaimStatus !=null">
|
||||
xgj_claim_status = #{xgjClaimStatus,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="paymentReceiptCode !=null">
|
||||
payment_receipt_code = #{paymentReceiptCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paySerialNumber !=null">
|
||||
pay_serial_number = #{paySerialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -244,7 +294,7 @@
|
||||
update xfsg_line_pay
|
||||
set audit_id = #{auditId}
|
||||
where line_id = #{lineId}
|
||||
and partner_id = #{partnerId}
|
||||
and partner_id = #{partnerId}
|
||||
</update>
|
||||
<sql id="dynamicQuery">
|
||||
<trim prefix="WHERE" prefixOverrides="AND | OR">
|
||||
@@ -312,14 +362,15 @@
|
||||
select *
|
||||
from xfsg_line_pay
|
||||
where line_id = #{lineId}
|
||||
and deleted = '0' limit 1
|
||||
and deleted = '0' limit 1
|
||||
</select>
|
||||
|
||||
<select id="getByLineIdAndPayTypeAndShopId" resultMap="BaseResultMap">
|
||||
select <include refid="Base_Column_List"/>
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from xfsg_line_pay
|
||||
<where>
|
||||
deleted = '0'
|
||||
deleted = '0'
|
||||
and pay_business_type = #{payBusinessType}
|
||||
<if test="lineId != null and lineId != ''">
|
||||
and line_id = #{lineId}
|
||||
@@ -346,4 +397,53 @@
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
<select id="getFranchiseFeePayInfoByShopId" resultType="com.cool.store.entity.LinePayDO">
|
||||
select * from xfsg_line_pay where deleted = 0 and shop_id = #{shopId} and pay_business_type = 1 order by
|
||||
create_time desc
|
||||
</select>
|
||||
<select id="getDateHandler" resultType="com.cool.store.entity.LinePayDO">
|
||||
select * from xfsg_line_pay where deleted = 0 and pay_business_type = 1 and pay_pic is null and combined_field
|
||||
is not null
|
||||
</select>
|
||||
<update id="deleteById">
|
||||
update xfsg_line_pay set deleted = 1 ,update_time = now(),update_user_id = #{userId} where id = #{id}
|
||||
</update>
|
||||
|
||||
<select id="selectByPaymentReceiptCode" resultType="com.cool.store.entity.LinePayDO">
|
||||
select * from xfsg_line_pay where deleted = 0 and payment_receipt_code = #{paymentReceiptCode} and
|
||||
pay_business_type = 1 order by create_time desc
|
||||
</select>
|
||||
<update id="dataUpdateLinePay">
|
||||
<foreach collection="list" separator=";" item="item" index="index">
|
||||
update xfsg_line_pay
|
||||
<set>
|
||||
<if test="item.payTime !=null">
|
||||
pay_time = #{item.payTime},
|
||||
</if>
|
||||
<if test="item.payPic !=null and item !=''">
|
||||
pay_pic = #{item.payPic},
|
||||
</if>
|
||||
<if test="item.paymentReceiptCode!=null and item.paymentReceiptCode !=''">
|
||||
payment_receipt_code = #{item.paymentReceiptCode},
|
||||
</if>
|
||||
<if test="item.xgjClaimStatus">
|
||||
xgj_claim_status = #{item.xgjClaimStatus}
|
||||
</if>
|
||||
|
||||
</set>
|
||||
where id = #{item.id}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="updateXgjClaimStatus">
|
||||
update xfsg_line_pay
|
||||
set
|
||||
xgj_claim_status = #{xgjClaimStatus},
|
||||
update_time = now()
|
||||
where shop_id in (
|
||||
<foreach collection="list" item="shopId" separator=",">
|
||||
#{shopId}
|
||||
</foreach>
|
||||
) and pay_business_type = #{payBusinessType}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user