Commit d51f5489 by 林永健

feat(integralTransferOut): 添加更新实际商户信息功能

1 parent d0f85037
...@@ -47,4 +47,6 @@ public interface IntegralTransferOutMapper extends OreMapper<IntegralTransferOut ...@@ -47,4 +47,6 @@ public interface IntegralTransferOutMapper extends OreMapper<IntegralTransferOut
* @return * @return
*/ */
int removeAllFromApproval(@Param("approvalId") Integer approvalId, @Param("updatedBy") String updatedBy); int removeAllFromApproval(@Param("approvalId") Integer approvalId, @Param("updatedBy") String updatedBy);
int updateRealityMerchant(IntegralTransferOut order);
} }
\ No newline at end of file \ No newline at end of file
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
ito.channel, ito.channel_provider, ito.created_date, ito.error_message,ito.settle_amount,ito.receipt_date,ito.transfer_type,ito.mode, ito.source, ito.appid, ito.channel, ito.channel_provider, ito.created_date, ito.error_message,ito.settle_amount,ito.receipt_date,ito.transfer_type,ito.mode, ito.source, ito.appid,
ito.approval_id, itoo.`type` as itooType, itoo.updated_date as itooCreatedDate, itoo.created_by as itooCreatedBy, itoo.remark as itooRemark, ito.approval_id, itoo.`type` as itooType, itoo.updated_date as itooCreatedDate, itoo.created_by as itooCreatedBy, itoo.remark as itooRemark,
itoo.result as itooResult, itoo.result as itooResult,
ito.reality_platform_merchant_name, ito.reality_merchant_id, ito.reality_platform_merchant_name, ito.reality_platform_merchant_id,
ito.payment_entity_code, ito.payment_entity_name, ito.levy_code, ito.levy_name, ito.levy_channel_code, ito.levy_channel_name ito.payment_entity_code, ito.payment_entity_name, ito.levy_code, ito.levy_name, ito.levy_channel_code, ito.levy_channel_name
from shopmall_integral_transfer_out ito from shopmall_integral_transfer_out ito
left join shopmall_integral_transfer_out_operation itoo on itoo.transfer_out_id = ito.id and itoo.deleted_flag = 'N' left join shopmall_integral_transfer_out_operation itoo on itoo.transfer_out_id = ito.id and itoo.deleted_flag = 'N'
...@@ -226,6 +226,12 @@ ...@@ -226,6 +226,12 @@
where approval_id = #{approvalId} and status = 7 and deleted_flag = 'N'; where approval_id = #{approvalId} and status = 7 and deleted_flag = 'N';
</update> </update>
<update id="updateRealityMerchant">
update shopmall_integral_transfer_out
set reality_platform_merchant_id = #{realityMerchantId}, reality_platform_merchant_name = #{realityMerchantName}
where id = #{id} and deleted_flag = 'N';
</update>
<select id="getSettleAmount" resultType="cn.com.glsx.scrm.shopmall.dto.integral.IntegralSettleAmountDTO"> <select id="getSettleAmount" resultType="cn.com.glsx.scrm.shopmall.dto.integral.IntegralSettleAmountDTO">
select select
round(ifnull(sum(if(channel = 'TXIAT',settle_amount,0)),0)/100,2) as yiXuanSettleAmount, round(ifnull(sum(if(channel = 'TXIAT',settle_amount,0)),0)/100,2) as yiXuanSettleAmount,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!