This commit is contained in:
hejinbo
2023-09-11 14:45:44 +08:00
parent 4d2d8b0976
commit b4fb054a7f
6 changed files with 80 additions and 9 deletions
@@ -0,0 +1,8 @@
package com.ruoyi.system.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface CasePaymentMapper {
void queryPayList();
}
@@ -3,5 +3,19 @@ package com.ruoyi.system.service;
import com.ruoyi.dto.PayRequest;
public interface ICasePaymentService {
/**
* 案件缴费
* @param request
* @return
*/
String casePay(PayRequest request);
/**
* 查询缴费列表
*/
String queryPayList();
String getPaymentListByCaseId();
String payConfirm();
}
@@ -5,6 +5,7 @@ import com.ruoyi.constant.Platform;
import com.ruoyi.constant.TradeType;
import com.ruoyi.dto.PayRequest;
import com.ruoyi.dto.PayResponse;
import com.ruoyi.system.mapper.CasePaymentMapper;
import com.ruoyi.system.service.ICasePaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -12,9 +13,11 @@ import org.springframework.stereotype.Service;
@Service
public class CasePaymentServiceImpl implements ICasePaymentService {
private final ElegentPay elegentPay;
private final CasePaymentMapper paymentMapper;
@Autowired
public CasePaymentServiceImpl(ElegentPay elegentPay){
public CasePaymentServiceImpl(ElegentPay elegentPay,CasePaymentMapper paymentMapper ){
this.elegentPay=elegentPay;
this.paymentMapper=paymentMapper;
}
@Override
public String casePay(PayRequest request) {
@@ -24,4 +27,20 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
}
return null;
}
@Override
public String queryPayList() {
paymentMapper.queryPayList();
return null;
}
@Override
public String getPaymentListByCaseId() {
return null;
}
@Override
public String payConfirm() {
return null;
}
}