package com.huimv.apiservice.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huimv.apiservice.entity.IndoorEnvironmentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.mapping.StatementType;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 室内环境信息表
 * 
 * @author yinhao
 * @email yinhao@163.com
 * @date 2021-05-07 15:32:42
 */
@Mapper
@Repository
public interface IndoorEnvironmentDao extends BaseMapper<IndoorEnvironmentEntity> {

    void batchInsertData(List<IndoorEnvironmentEntity> list);

    @Select("call create_data()")
    @Options(statementType = StatementType.CALLABLE)
    void callPigHealthData();

}
