package com.ld.igds.three.mapper;
|
|
import com.ld.igds.gas.dto.GasData;
|
import com.ld.igds.grain.dto.GrainData;
|
import com.ld.igds.models.Depot;
|
import com.ld.igds.models.MWarnInfo;
|
import com.ld.igds.pest.dto.PestData;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
*
|
* @author chen
|
*/
|
public interface ThreeMapper {
|
|
/**
|
* 根据条件获取仓库信息
|
* @param companyId
|
* @param deptId
|
* @param id
|
* @return
|
*/
|
List<Depot> getDepotList(@Param("companyId") String companyId,
|
@Param("deptId") String deptId,
|
@Param("id") String id);
|
|
/**
|
* 根据条件查询警告信息(默认查询当天,返回5条)
|
* @param companyId
|
* @param deptId
|
* @param depotId
|
* @return
|
*/
|
List<MWarnInfo> getWarnList(@Param("companyId") String companyId,
|
@Param("deptId") String deptId,
|
@Param("depotId") String depotId);
|
|
/**
|
* 查询所有仓库粮情(每个仓库取最新的一条)
|
* @param companyId
|
* @return
|
*/
|
List<GrainData> getGrainAll(@Param("companyId") String companyId);
|
|
/**
|
* 查询所有仓库气体信息(每个仓库取最新的一条)
|
* @param companyId
|
* @return
|
*/
|
List<GasData> getGasAll(@Param("companyId") String companyId);
|
|
/**
|
* 查询所有仓库虫害信息(每个仓库取最新的一条)
|
* @param companyId
|
* @return
|
*/
|
List<PestData> getPestAll(@Param("companyId") String companyId);
|
|
}
|