package org.jeecg.modules.iot.service;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import io.lettuce.core.dynamic.annotation.Param;
|
import org.apache.poi.ss.formula.functions.T;
|
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.modules.iot.entity.ParameterGroup;
|
import org.jeecg.modules.iot.entity.RealParameter;
|
import org.jeecg.modules.iot.entity.ServerDeploy;
|
import org.springframework.web.servlet.ModelAndView;
|
|
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletResponse;
|
import java.util.List;
|
import java.util.Map;
|
import java.util.Set;
|
|
/**
|
* @Description: 实设备参数
|
* @Author: cuikaidong
|
* @Date: 2025-1-2
|
* @Version: V1.0
|
*/
|
public interface IRealParameterService extends IService<RealParameter> {
|
|
/**
|
* 根据参数编码查询参数信息
|
*
|
* @param parameterCode
|
* @return
|
*/
|
RealParameter findByParameterCode(String parameterCode);
|
|
/**
|
* 根据参数组ids,查询参数列表
|
*
|
* @param ids
|
* @return
|
*/
|
List<RealParameter> findRealParameterByIds(Set<String> ids);
|
|
/**
|
* 分页查询实设备参数列表
|
*
|
* @param pages
|
* @param params
|
* @return
|
*/
|
IPage<RealParameter> findRealParameterPage(Page<RealParameter> pages, @Param("params") Map<String, Object> params);
|
|
/**
|
* 查询当前参数组下参数名称是否重复
|
*
|
* @return
|
*/
|
Boolean findRealParameterByName(RealParameter realParameter);
|
|
/**
|
* 查询当前参数组下参数编号是否重复
|
*
|
* @return
|
*/
|
Boolean findRealParameterByCode(RealParameter realParameter);
|
|
|
/**
|
* 通过excel导入数据
|
*
|
* @param request
|
* @param response
|
* @return
|
*/
|
Result<?> importExcel(HttpServletRequest request, HttpServletResponse response);
|
|
/**
|
* 导出excel
|
*
|
* @param request
|
*/
|
ModelAndView exportXls(HttpServletRequest request, RealParameter realParameter, String title);
|
|
/**
|
* 根据参数组编号查询最后一个参数编号
|
*
|
* @param groupId
|
* @return
|
*/
|
Integer findRealParameterGroupId(String groupId);
|
}
|