|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | @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; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据登录态ID获取登录态对象 | 
|---|
|  |  |  | * @param id | 
|---|
|  |  |  | * @param sessionId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | SeWebchatLogonState selectOne2(Long id) { | 
|---|
|  |  |  | return seWebchatLogonStateMapper.selectByPrimaryKey(id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | SeOpenId selectOne(Long sessionId) { | 
|---|
|  |  |  | return seOpenIdMapper.selectByPrimaryKey(sessionId); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | seVcRechargeMapper.insert(po); | 
|---|
|  |  |  | return po.getId(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|