| | |
| | | |
| | | import com.dy.pipIrrGlobal.daoSe.SeOpenIdMapper; |
| | | import com.dy.pipIrrGlobal.daoSe.SeVcRechargeMapper; |
| | | import com.dy.pipIrrGlobal.daoSe.SeWechatpayMapper; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeOpenId; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeVcRecharge; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeWechatpay; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | @Autowired |
| | | private SeOpenIdMapper seOpenIdMapper; |
| | | |
| | | @Autowired |
| | | private SeWechatpayMapper seWechatpayMapper; |
| | | |
| | | /** |
| | | * 根据登录态ID获取登录态对象 |
| | | * @param sessionId |
| | |
| | | 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); |
| | | } |
| | | } |