zhubaomin
5 天以前 b2abd25927c39e849e592f1abdc08879d8d35245
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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) ;
    }
}