Administrator
2024-06-06 400af57e240a4c0d74c81ffc8b3417226b51345a
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 ;
    }
 
}