From b278a4b743d0cf45fd0b42bc78ff42f4e1124baf Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 19 十月 2021 12:20:04 +0800
Subject: [PATCH] 优化diamante

---
 service-api/src/main/java/com/java110/api/controller/app/PaymentController.java |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/service-api/src/main/java/com/java110/api/controller/app/PaymentController.java b/service-api/src/main/java/com/java110/api/controller/app/PaymentController.java
index cc67a41..af04667 100644
--- a/service-api/src/main/java/com/java110/api/controller/app/PaymentController.java
+++ b/service-api/src/main/java/com/java110/api/controller/app/PaymentController.java
@@ -68,11 +68,17 @@
     private IOweFeeToNotifySMO oweFeeToNotifySMOImpl;
 
     @Autowired
+    private ITempCarFeeToNotifySMO tempCarFeeToNotifySMOImpl;
+
+    @Autowired
     private IToQrPayOweFeeSMO toQrPayOweFeeSMOImpl;
     @Autowired
     private IToPayInGoOutSMO toPayInGoOutSMOImpl;
     @Autowired
     private IToPayBackCitySMO toPayBackCitySMOImpl;
+
+    @Autowired
+    private IToPayTempCarFeeSMO toPayTempCarFeeSMOImpl;
 
     /**
      * <p>缁熶竴涓嬪崟鍏ュ彛</p>
@@ -113,6 +119,27 @@
                 "", "", "", pd.getSessionId(),
                 appId,pd.getHeaders());
         return toPayOweFeeSMOImpl.toPay(newPd);
+    }
+
+    /**
+     * <p>缁熶竴涓嬪崟鍏ュ彛</p>
+     *
+     * @param request
+     * @throws Exception
+     */
+    @RequestMapping(path = "/toPayTempCarFee", method = RequestMethod.POST)
+    public ResponseEntity<String> toPayTempCarFee(@RequestBody String postInfo, HttpServletRequest request) {
+        IPageData pd = (IPageData) request.getAttribute(CommonConstant.CONTEXT_PAGE_DATA);
+        /*IPageData pd = (IPageData) request.getAttribute(CommonConstant.CONTEXT_PAGE_DATA);*/
+        String appId = request.getHeader("APP_ID");
+        if (StringUtil.isEmpty(appId)) {
+            appId = request.getHeader("APP-ID");
+        }
+
+        IPageData newPd = PageData.newInstance().builder(pd.getUserId(), pd.getUserName(), pd.getToken(), postInfo,
+                "", "", "", pd.getSessionId(),
+                appId,pd.getHeaders());
+        return toPayTempCarFeeSMOImpl.toPay(newPd);
     }
 
     /**
@@ -287,6 +314,19 @@
     }
 
     /**
+     * <p>鍑虹缁熶竴涓嬪崟鍏ュ彛</p>
+     *
+     * @param request
+     * @throws Exception
+     */
+    @RequestMapping(path = "/tempCarFeeNotifyUrl", method = RequestMethod.POST)
+    public ResponseEntity<String> tempCarFeeNotifyUrl(@RequestBody String postInfo, HttpServletRequest request) {
+        logger.debug("寰俊鏀粯鍥炶皟鎶ユ枃" + postInfo);
+
+        return tempCarFeeToNotifySMOImpl.toNotify(postInfo, request);
+    }
+
+    /**
      * <p>鏀粯鍥炶皟Api</p>
      *
      * @param request

--
Gitblit v1.8.0