|
@@ -7,6 +7,8 @@ import com.ym.mec.collectfee.service.YqPayService;
|
|
import com.ym.mec.collectfee.service.YqQueryService;
|
|
import com.ym.mec.collectfee.service.YqQueryService;
|
|
import com.ym.mec.collectfee.utils.GenerateNum;
|
|
import com.ym.mec.collectfee.utils.GenerateNum;
|
|
import com.ym.mec.collectfee.utils.yqpay.*;
|
|
import com.ym.mec.collectfee.utils.yqpay.*;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.context.annotation.Lazy;
|
|
@@ -22,6 +24,7 @@ import java.util.Date;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
+@Api(description = "支付")
|
|
@Slf4j
|
|
@Slf4j
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("yqPay")
|
|
@RequestMapping("yqPay")
|
|
@@ -44,7 +47,8 @@ public class YqPayController {
|
|
* @return String
|
|
* @return String
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- @RequestMapping("/toPay")
|
|
|
|
|
|
+ @ApiOperation(value = "提交支付", notes = "易乾支付统一下单")
|
|
|
|
+ @PostMapping("/toPay")
|
|
@Transactional
|
|
@Transactional
|
|
public Msg toPay(@ModelAttribute @Validated Order order) throws Exception {
|
|
public Msg toPay(@ModelAttribute @Validated Order order) throws Exception {
|
|
String orderNo = GenerateNum.getInstance().GenerateOrderNo();
|
|
String orderNo = GenerateNum.getInstance().GenerateOrderNo();
|
|
@@ -100,7 +104,7 @@ public class YqPayController {
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- @RequestMapping("/query")
|
|
|
|
|
|
+ @PostMapping("/query")
|
|
public String query(String merOrderNoList) throws Exception {
|
|
public String query(String merOrderNoList) throws Exception {
|
|
String notifyUrl = ""; //回调地址
|
|
String notifyUrl = ""; //回调地址
|
|
Map<String, Object> resultMap = new LinkedHashMap<>();
|
|
Map<String, Object> resultMap = new LinkedHashMap<>();
|
|
@@ -116,7 +120,7 @@ public class YqPayController {
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- @RequestMapping("/queryaccount")
|
|
|
|
|
|
+ @PostMapping("/queryaccount")
|
|
public String queryAccount(String sonMerNo) throws Exception {
|
|
public String queryAccount(String sonMerNo) throws Exception {
|
|
String notifyUrl = ""; //回调地址
|
|
String notifyUrl = ""; //回调地址
|
|
Map<String, Object> resultMap = new LinkedHashMap<>();
|
|
Map<String, Object> resultMap = new LinkedHashMap<>();
|
|
@@ -148,7 +152,7 @@ public class YqPayController {
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- @RequestMapping("/platformtransferacc")
|
|
|
|
|
|
+ @PostMapping("/platformtransferacc")
|
|
public String platformTransferAcc() throws Exception {
|
|
public String platformTransferAcc() throws Exception {
|
|
String notifyUrl = ""; //回调地址
|
|
String notifyUrl = ""; //回调地址
|
|
Map<String, Object> resultMap = new LinkedHashMap<>();
|
|
Map<String, Object> resultMap = new LinkedHashMap<>();
|
|
@@ -211,7 +215,7 @@ public class YqPayController {
|
|
* @return String
|
|
* @return String
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- @RequestMapping("/notify")
|
|
|
|
|
|
+ @PostMapping("/notify")
|
|
public Msg notify(@ModelAttribute Msg msg) throws Exception {
|
|
public Msg notify(@ModelAttribute Msg msg) throws Exception {
|
|
log.info(msg.toString());
|
|
log.info(msg.toString());
|
|
Map<String, Object> rqMap = new LinkedHashMap<String, Object>();
|
|
Map<String, Object> rqMap = new LinkedHashMap<String, Object>();
|