数据处理代码
This commit is contained in:
@@ -96,10 +96,16 @@ public class LinePayDAO {
|
||||
if (CollectionUtils.isEmpty(linePayDOList)){
|
||||
return null;
|
||||
}
|
||||
return 0;
|
||||
return linePayMapper.dataUpdateLinePay(linePayDOList);
|
||||
}
|
||||
|
||||
public LinePayDO selectByPaymentReceiptCode(String paymentReceiptCode) {
|
||||
return linePayMapper.selectByPaymentReceiptCode(paymentReceiptCode);
|
||||
}
|
||||
public Integer updateXgjClaimStatus(List<Long> shopIds,Integer xgjClaimStatus,Integer payBusinessType){
|
||||
if (CollectionUtils.isEmpty(shopIds)){
|
||||
return null;
|
||||
}
|
||||
return linePayMapper.updateXgjClaimStatus(shopIds,xgjClaimStatus,payBusinessType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,4 +66,6 @@ public interface LinePayMapper {
|
||||
List<LinePayDO> getDateHandler();
|
||||
|
||||
Integer dataUpdateLinePay(@Param("list") List<LinePayDO> linePayDOList);
|
||||
|
||||
Integer updateXgjClaimStatus(@Param("list") List<Long> shopIds,@Param("xgjClaimStatus") Integer xgjClaimStatus,@Param("payBusinessType") Integer payBusinessType);
|
||||
}
|
||||
@@ -32,8 +32,9 @@
|
||||
</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,xgj_claim_status,payment_receipt_code,pay_serial_number,
|
||||
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">
|
||||
@@ -83,8 +84,8 @@
|
||||
<if test="branchBankName != null">
|
||||
branch_bank_name,
|
||||
</if>
|
||||
pay_time,
|
||||
pay_pic,
|
||||
pay_time,
|
||||
pay_pic,
|
||||
|
||||
<if test="promisePic != null">
|
||||
promise_pic,
|
||||
@@ -160,8 +161,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>
|
||||
@@ -239,8 +240,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},
|
||||
@@ -285,7 +286,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">
|
||||
@@ -353,14 +354,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}
|
||||
@@ -388,18 +390,52 @@
|
||||
</if>
|
||||
</select>
|
||||
<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 * 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 * 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 * 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"></update>
|
||||
<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