package com.ld.igds.gas;
|
|
import com.ld.igds.gas.dto.GasData;
|
import com.ld.igds.gas.dto.GasParam;
|
import com.ld.igds.models.Gas;
|
import com.ld.igds.models.GasInfo;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 气体模块核心接口
|
*
|
* @author vince
|
*/
|
public interface CoreGasService {
|
|
String BEAN_ID = "core.gasService";
|
|
/**
|
* 根据条件分页获取数据信息
|
*
|
* @param param
|
* @return
|
*/
|
List<GasData> pageQueryList(GasParam param);
|
|
/**
|
* 根据条件分页获取报表信息
|
*
|
* @param param
|
* @return
|
*/
|
List<GasData> queryChartList(GasParam param);
|
|
/**
|
* 根据参数获取 详细的Gas信息
|
*
|
* @param parameter
|
* @return
|
*/
|
List<GasInfo> getInfoGas(Map<String, Object> parameter) throws Exception;
|
|
void saveInfoGas(List<GasInfo> result);
|
|
/**
|
* 保存气体信息
|
*
|
* @param gas
|
*/
|
void saveOrUpdateData(Gas gas);
|
|
/**
|
* 缓存中存放最新的气体信息,以仓库为KEY存放在缓存中
|
*
|
* @param companyId
|
* @return deptId=当前分库编码
|
*/
|
List<GasData> listCacheData(String companyId, String deptId);
|
|
|
/**
|
* 获取缓存中的气体信息,并转换为MAP
|
*
|
* @param companyId
|
* @param deptId
|
* @return
|
*/
|
Map<String, GasData> cacheMapGasData(String companyId, String deptId);
|
}
|