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
package com.dy.pmsGlobal.global;
 
 
import com.dy.pmsGlobal.daoBa.BaSysSetMapper;
import com.dy.pmsGlobal.pojoBa.BaSysSet;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Slf4j
@Service
public class SysSetSv {
    @Autowired
    private BaSysSetMapper dao ;
 
    public BaSysSet selectSingle(){
        List<BaSysSet> list = this.dao.selectSingle() ;
        if(list != null && list.size() > 0){
            return list.get(0) ;
        }else{
            return null ;
        }
    }
 
}