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 list = this.dao.selectSingle() ; if(list != null && list.size() > 0){ return list.get(0) ; }else{ return null ; } } }