package org.jeecg.modules.database.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.database.entity.NasaDataRecord;

import java.util.List;

/**
 * @Description: NASA数据管理
 * @Author: jeecg-boot
 * @Date: 2024-11-04
 * @Version: V1.0
 */
public interface NasaDataRecordMapper extends BaseMapper<NasaDataRecord> {

    @Select("SELECT SUM(total_count_lhs) FROM nasa_data_record where total_count_lhs is not null")
    Long sumLhs();

    @Select("SELECT SUM(total_count_nasa) FROM nasa_data_record where total_count_nasa is not null")
    Long sumXhy();

    List<NasaDataRecord> search(@Param("keyWord") String keyWord);
}
