liurunyu
2023-11-04 df37487916ebc1ff8d8e0f8b088c5b6af1e582ff
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
package com.dy.pipIrrDemo.demo;
 
import com.dy.pipIrrGlobal.daoDemo.DemoTestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
@Service
public class DemoSv {
    @Autowired
    private DemoTestMapper demoTestDao;
 
    public String getCount(){
        Integer count = this.demoTestDao.queryCount() ;
        return "" + count ;
    }
 
 
    @Transactional
    public int addAuthAndUser() {
        //int n = this.baUserDao.addAuth(auth);
        //return n + i;
        return 2 ;
    }
 
}