yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.qianwen.smartman.modules.system.service.impl;
 
import org.springframework.stereotype.Service;
 
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.qianwen.core.mp.base.BaseServiceImpl;
import com.qianwen.smartman.modules.system.entity.ParamBiz;
import com.qianwen.smartman.modules.system.mapper.ParamBizMapper;
import com.qianwen.smartman.modules.system.service.IParamBizService;
 
@Service
public class ParamBizServiceImpl extends BaseServiceImpl<ParamBizMapper, ParamBiz> implements IParamBizService {
    
 
    @Override // org.springblade.modules.system.service.IParamBizService
    public String getValue(String paramKey) {
        ParamBiz param = getOne(Wrappers.<ParamBiz>query().lambda().eq(ParamBiz::getParamKey, paramKey));
        /*
        ParamBiz param = (ParamBiz) getOne((Wrapper) Wrappers.query().lambda().eq((v0) -> {
            return v0.getParamKey();
        }, paramKey));*/
        return param.getParamValue();
    }
}