艾金辉
2023-07-21 e3de6abd10702b84cc995dcc3c9426baf4377e18
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
28
29
30
31
32
33
34
35
36
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("syCarPT");
        if(result.size() > 0){
            String SYURL = result.get(0).getSysContent();
            return SYURL;
        }else{
            return "";
        }
    }
 
 
}