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 ; 
 | 
    } 
 | 
  
 | 
} 
 |