From e29ff6ff2de584854531e443ed4d8da0347e08bd Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期一, 16 十二月 2024 10:40:59 +0800 Subject: [PATCH] 优化接口 小程序下的获得全部取水口接口与项目管理下的获得全部取水口接口同步 --- pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wechatpay/PaymentSv.java | 29 ++++++++++++----------------- 1 files changed, 12 insertions(+), 17 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wechatpay/PaymentSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wechatpay/PaymentSv.java index de4d16d..4ac249f 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wechatpay/PaymentSv.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wechatpay/PaymentSv.java @@ -1,9 +1,10 @@ package com.dy.pipIrrSell.wechatpay; +import com.dy.pipIrrGlobal.daoSe.SeOpenIdMapper; import com.dy.pipIrrGlobal.daoSe.SeVcRechargeMapper; -import com.dy.pipIrrGlobal.daoSe.SeWebchatLogonStateMapper; +import com.dy.pipIrrGlobal.daoSe.SeWechatpayMapper; +import com.dy.pipIrrGlobal.pojoSe.SeOpenId; import com.dy.pipIrrGlobal.pojoSe.SeVcRecharge; -import com.dy.pipIrrGlobal.pojoSe.SeWebchatLogonState; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -19,28 +20,21 @@ @Service public class PaymentSv { @Autowired - private SeWebchatLogonStateMapper seWebchatLogonStateMapper; - - @Autowired private SeVcRechargeMapper seVcRechargeMapper; - /** - * 娣诲姞鐧诲綍鎬佺姸鎬佽褰� - * @param po - * @return - */ - Long insert(SeWebchatLogonState po) { - seWebchatLogonStateMapper.insert(po); - return po.getId(); - } + @Autowired + private SeOpenIdMapper seOpenIdMapper; + + @Autowired + private SeWechatpayMapper seWechatpayMapper; /** * 鏍规嵁鐧诲綍鎬両D鑾峰彇鐧诲綍鎬佸璞� - * @param id + * @param sessionId * @return */ - SeWebchatLogonState selectOne(Long id) { - return seWebchatLogonStateMapper.selectByPrimaryKey(id); + SeOpenId selectOne(Long sessionId) { + return seOpenIdMapper.selectByPrimaryKey(sessionId); } /** @@ -52,4 +46,5 @@ seVcRechargeMapper.insert(po); return po.getId(); } + } -- Gitblit v1.8.0