cuikaidong
2025-06-12 44e283b774bb1168d0c17dfe5070a1ca8e2274cd
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
package org.jeecg.modules.iot.service.impl;
 
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.iot.entity.InfluxdbDeploy;
import org.jeecg.modules.iot.mapper.InfluxdbDeployMapper;
import org.jeecg.modules.iot.service.IInfluxdbDeployService;
import org.springframework.stereotype.Service;
 
import java.util.List;
import java.util.Set;
 
/**
 * @Description: Influxdb配置
 * @Author: cuikaidong
 * @Date: 2024-12-10
 * @Version: V1.0
 */
@Service
public class InfluxdbDeployServiceImpl extends ServiceImpl<InfluxdbDeployMapper, InfluxdbDeploy> implements IInfluxdbDeployService {
 
    @Override
    public List<InfluxdbDeploy> findByServerIdsInfluxdbDeploy(Set<String> serverIds) {
        return new LambdaQueryChainWrapper<>(baseMapper).in(InfluxdbDeploy::getServerDeployId, serverIds).list();
    }
 
    @Override
    public InfluxdbDeploy findByServerIdInfluxdb(String id) {
        return new LambdaQueryChainWrapper<>(baseMapper).eq(InfluxdbDeploy::getServerDeployId, id).one();
    }
}