| package com.dy.pipIrrTemp.testFun; | 
|   | 
| import com.dy.pipIrrGlobal.daoSe.SeVirtualCardMapper; | 
| import com.dy.pipIrrGlobal.pojoSe.SeVirtualCard; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Service; | 
| import org.springframework.transaction.annotation.Transactional; | 
|   | 
| /** | 
|  * @Author: liurunyu | 
|  * @Date: 2025/4/27 10:26 | 
|  * @Description | 
|  */ | 
| @Slf4j | 
| @Service | 
| public class Test4VirtualCardSetInUseSv { | 
|     @Autowired | 
|     private SeVirtualCardMapper seVirtualCardMapper; | 
|   | 
|     @Transactional(rollbackFor = Exception.class) | 
|     public void doSome(){ | 
|         SeVirtualCard po = new SeVirtualCard(); | 
|         po.setId(Long.parseLong("2025042116533800009")); | 
|         po.setInUse((byte) 1); | 
|         seVirtualCardMapper.updateByPrimaryKeySelective(po) ; | 
|     } | 
| } |