From 4283608d9155aaf3f7b271aec393c4be3741f475 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期二, 22 十月 2024 17:17:53 +0800 Subject: [PATCH] 增加上传文件大小最大限值配置 --- pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wechatpay/PaymentSv.java | 48 +++++++++++++++++++++++++++++++----------------- 1 files changed, 31 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..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 @@ -1,9 +1,11 @@ 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 com.dy.pipIrrGlobal.pojoSe.SeWechatpay; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -19,28 +21,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 +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