| package com.dy.pipIrrRemote.monitor.p202404V201.cd93; | 
|   | 
| import com.dy.pipIrrGlobal.daoPr.PrWaterPriceMapper; | 
| import com.dy.pipIrrGlobal.daoSe.SeVirtualCardMapper; | 
| import com.dy.pipIrrGlobal.pojoSe.SeVirtualCard; | 
| import com.dy.pipIrrGlobal.voSe.VoVirtualCard; | 
| import com.dy.pipIrrRemote.monitor.common.ComSv; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Service; | 
|   | 
| /** | 
|  * @Author: liurunyu | 
|  * @Date: 2025/5/13 09:38 | 
|  * @Description | 
|  */ | 
| @Slf4j | 
| @Service("cd93Sv") | 
| public class CdSv extends ComSv { | 
|   | 
|     @Autowired | 
|     protected SeVirtualCardMapper seVirtualCardDao ; | 
|   | 
|     @Autowired | 
|     protected PrWaterPriceMapper prWaterPriceDao ; | 
|   | 
|     /** | 
|      * 解除虚拟卡被占用 | 
|      */ | 
|     public void setVcNoUsed(Long id){ | 
|         SeVirtualCard po = new SeVirtualCard() ; | 
|         po.setId(id); | 
|         po.setIntakeId(null); | 
|         po.setInUse((byte)0); | 
|         po.setOpenTime(null); | 
|         seVirtualCardDao.updateByPrimaryKeySelective(po); | 
|     } | 
|   | 
|     /** | 
|      * 通过虚拟卡编号得到记录实体ID | 
|      * @param vcNum | 
|      * @return | 
|      */ | 
|     public Long getVcIdByNum(String vcNum){ | 
|         return seVirtualCardDao.getVcIdByNum(vcNum) ; | 
|     } | 
| } |