package com.ruoyi.sy.service.impl;
|
|
import com.ruoyi.sy.domain.SysPara;
|
import com.ruoyi.sy.domain.SysParaExample;
|
import com.ruoyi.sy.mapper.SysParaMapper;
|
import com.ruoyi.sy.service.SysParaService;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
|
/**
|
* @author 11441
|
*/
|
@Service
|
public class SysParaServiceImpl implements SysParaService {
|
|
@Resource
|
private SysParaMapper sysParaMapper;
|
|
@Override
|
public String getSYURL() {
|
SysParaExample example = new SysParaExample();
|
example.createCriteria().andSysTypeEqualTo("syCarPT");
|
List<SysPara> result = sysParaMapper.selectByExample(example);
|
if(result.size() > 0){
|
String SYURL = result.get(0).getSysContent();
|
return SYURL;
|
}else{
|
return "";
|
}
|
}
|
|
|
}
|