截止9.18开发提交合并 #9
+28
-7
@@ -1,15 +1,10 @@
|
||||
package com.ruoyi.web.controller.payment;
|
||||
|
||||
import com.ruoyi.ElegentPay;
|
||||
import com.ruoyi.constant.Platform;
|
||||
import com.ruoyi.constant.TradeType;
|
||||
|
||||
import com.ruoyi.dto.PayRequest;
|
||||
import com.ruoyi.dto.PayResponse;
|
||||
import com.ruoyi.system.service.ICasePaymentService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 缴费支付
|
||||
@@ -22,8 +17,34 @@ public class CasePaymentController {
|
||||
public CasePaymentController(ICasePaymentService paymentService){
|
||||
this.paymentService=paymentService;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询缴费列表
|
||||
*/
|
||||
@GetMapping
|
||||
public String queryPayList(){
|
||||
return paymentService.queryPayList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据案件id查询缴费清单
|
||||
* @return
|
||||
*/
|
||||
@GetMapping
|
||||
public String getPaymentListByCaseId(){
|
||||
return paymentService.getPaymentListByCaseId();
|
||||
}
|
||||
/**
|
||||
* 案件缴费
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/casePay")
|
||||
public String casePay(PayRequest request) {
|
||||
return paymentService.casePay(request);
|
||||
}
|
||||
@PutMapping
|
||||
public String payConfirm(){
|
||||
return paymentService.payConfirm();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,6 +141,6 @@ elegent:
|
||||
alipay:
|
||||
appId: 2021003141676135
|
||||
callback:
|
||||
domain: https://2d3ac179.r5.cpolar.top
|
||||
domain: http://121.40.189.20:9000/
|
||||
watch: true
|
||||
cycle: 10
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
+20
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CasePaymentMapper">
|
||||
<select id="queryPayList">
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user