Browse Source

20260117bankMAPPER

lijianlin/feature-20260113-现金管理0109
sunjiabei 1 month ago
parent
commit
9a6d94a7b0
  1. 16
      src/main/java/com/example/demo/mapper/cash/CashCollectionMapper.java
  2. 30
      src/main/resources/cashMapper/CashCollectionMapper.xml

16
src/main/java/com/example/demo/mapper/cash/CashCollectionMapper.java

@ -1,7 +1,10 @@
package com.example.demo.mapper.cash; package com.example.demo.mapper.cash;
//import com.example.demo.domain.DTO.PaymentDTO; //import com.example.demo.domain.DTO.PaymentDTO;
import com.example.demo.domain.DTO.FirstdataDTO;
import com.example.demo.domain.DTO.PaymentDTO;
import com.example.demo.domain.DTO.PerformanceDTO; import com.example.demo.domain.DTO.PerformanceDTO;
import com.example.demo.domain.DTO.StripeDTO;
import com.example.demo.domain.entity.CashRecord; import com.example.demo.domain.entity.CashRecord;
import com.example.demo.domain.entity.GOrder; import com.example.demo.domain.entity.GOrder;
import com.example.demo.domain.entity.RechargeActivity; import com.example.demo.domain.entity.RechargeActivity;
@ -72,4 +75,17 @@ public interface CashCollectionMapper {
@Param("version") Integer version); @Param("version") Integer version);
List<PerformanceVO> performanceSelect(PerformanceDTO performanceDTO); List<PerformanceVO> performanceSelect(PerformanceDTO performanceDTO);
CashCollection selectByBankCode(String bankCode);
void updateByGoldCoinOrderCodeByPayment(PaymentDTO paymentDTO);
void updateByGoldCoinOrderCodeByStripe(StripeDTO stripeDTO);
void updateByGoldCoinOrderCodeByFirstdata(FirstdataDTO firstdataDTO);
void updateByGoldCoinOrderCodeByIpay88(Ipay88DTO ipay88DTO);
List<String> selectFirstdataList();
List<CashCollection> selectIpayList();
List<String> selectStripeList();
List<String> selectPaymentList();
}
} }

30
src/main/resources/cashMapper/CashCollectionMapper.xml

@ -345,4 +345,34 @@
</select> </select>
<select id="selectByBankCode" resultType="com.example.demo.domain.vo.cash.CashCollection">
select * from cash_record_collection where bank_code=#{bankCode}
</select>
<select id="selectFirstdataList" resultType="java.lang.String">
select bank_code from cash_record_collection where bank_code is not null and payload='FirstData' and order_no_status=1
</select>
<select id="selectStripeList" resultType="java.lang.String">
select order_code from cash_record_collection where payload='Stripe' and order_no_status=1
</select>
<select id="selectPaymentList" resultType="java.lang.String">
select order_code from cash_record_collection where payload='PaymentAsia' and order_no_status=1
</select>
<select id="selectIpayList" resultType="com.example.demo.domain.vo.cash.CashCollection">
select order_code,permanent_gold from cash_record_collection where payload='Ipay88' and order_no_status=1
</select>
<!--根据OrderCode订单号更新收款订单-->
<update id="updateByGoldCoinOrderCodeByPayment">
update cash_record_collection
SET
received_time=#{time},
payment_currency='2',
received_currency='2',
payment_amount=#{order_amount},
received_amount=#{net_amount},
handling_charge=#{charge},
status=4,
order_no_status=0
where order_code=#{merchant_reference}
</update>
</mapper> </mapper>
Loading…
Cancel
Save