From abf9119f0d8026d456090aef54546d763c2d30d0 Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期二, 22 十月 2024 15:16:38 +0800 Subject: [PATCH] 2024-10-22 朱宝民 农户与微信解绑接口 --- pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wechatpay/PaymentSv.java | 43 ++++++++++++++++++++++++------------------- 1 files changed, 24 insertions(+), 19 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 6a3075d..deddebf 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 @@ -2,10 +2,10 @@ 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 com.dy.pipIrrGlobal.pojoSe.SeWechatpay; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -21,33 +21,19 @@ @Service public class PaymentSv { @Autowired - private SeWebchatLogonStateMapper seWebchatLogonStateMapper; - - @Autowired private SeVcRechargeMapper seVcRechargeMapper; @Autowired private SeOpenIdMapper seOpenIdMapper; - /** - * 娣诲姞鐧诲綍鎬佺姸鎬佽褰� - * @param po - * @return - */ - Long insert(SeWebchatLogonState po) { - seWebchatLogonStateMapper.insert(po); - return po.getId(); - } + @Autowired + private SeWechatpayMapper seWechatpayMapper; /** * 鏍规嵁鐧诲綍鎬両D鑾峰彇鐧诲綍鎬佸璞� - * @param id + * @param sessionId * @return */ - SeWebchatLogonState selectOne2(Long id) { - return seWebchatLogonStateMapper.selectByPrimaryKey(id); - } - SeOpenId selectOne(Long sessionId) { return seOpenIdMapper.selectByPrimaryKey(sessionId); } @@ -61,4 +47,23 @@ seVcRechargeMapper.insert(po); return po.getId(); } + + /** + * 娣诲姞寰俊鏀粯淇℃伅 + * @param po + * @return + */ + Long addWechatpay(SeWechatpay po) { + seWechatpayMapper.insert(po); + return po.getId(); + } + + /** + * 鏍规嵁AppId鑾峰彇寰俊鏀粯瀵硅薄 + * @param appId + * @return + */ + SeWechatpay getWechatpayByAppId(String appId) { + return seWechatpayMapper.getWechatpayByAppId(appId); + } } -- Gitblit v1.8.0