Administrator
2024-01-16 8ed16da7d96f1b0b954d75c20ea5177d23ad9eaf
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 ;
    }
 
}