cloudroam
3 天以前 3a819e4f668c15e8b77b188b322470da12bb7a43
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
37
package com.mzl.flower.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mzl.flower.dto.request.configParam.QueryConfigParamDTO;
import com.mzl.flower.dto.response.configParam.ConfigParamGroupVO;
import com.mzl.flower.entity.configParam.ConfigParamGroupDO;
import com.mzl.flower.mapper.configParam.ConfigParamGroupMapper;
import com.mzl.flower.mapper.configParam.ConfigParamGroupMapperCustom;
import com.mzl.flower.service.ConfigParamGroupService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author @TaoJie
 * @since 2024-12-02
 */
@Service
public class ConfigParamGroupServiceImpl extends ServiceImpl<ConfigParamGroupMapper, ConfigParamGroupDO> implements ConfigParamGroupService {
 
    @Autowired
    private ConfigParamGroupMapperCustom configParamGroupMapperCustom;
 
    @Override
    public List<ConfigParamGroupDO> getList(QueryConfigParamDTO dto) {
        QueryWrapper<ConfigParamGroupDO> wrapper = new QueryWrapper<>();
        wrapper.lambda().eq(ConfigParamGroupDO::getDeleted,false)
                .orderByAsc(ConfigParamGroupDO::getParamOrder);
        return list(wrapper);
    }
}