package com.dy.pipIrrSell.wechatpay;
|
|
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 lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
/**
|
* @author ZhuBaoMin
|
* @date 2024-03-06 13:51
|
* @LastEditTime 2024-03-06 13:51
|
* @Description
|
*/
|
|
@Slf4j
|
@Service
|
public class PaymentSv {
|
@Autowired
|
private SeVcRechargeMapper seVcRechargeMapper;
|
|
@Autowired
|
private SeOpenIdMapper seOpenIdMapper;
|
|
@Autowired
|
private SeWechatpayMapper seWechatpayMapper;
|
|
/**
|
* 根据登录态ID获取登录态对象
|
* @param sessionId
|
* @return
|
*/
|
SeOpenId selectOne(Long sessionId) {
|
return seOpenIdMapper.selectByPrimaryKey(sessionId);
|
}
|
|
/**
|
* 添加虚拟卡充值记录
|
* @param po
|
* @return
|
*/
|
Long insertVCRecharge(SeVcRecharge po) {
|
seVcRechargeMapper.insert(po);
|
return po.getId();
|
}
|
|
}
|