package com.yeejoin.amos.boot.module.jxiop.biz.mapper2;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanHealthLevel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *  Mapper 接口
 *
 * @author system_generator
 * @date 2023-08-15
 */
public interface IdxBizFanHealthLevelMapper extends BaseMapper<IdxBizFanHealthLevel> {

    int updateByInfo(@Param("tableName") String tableName,
                     @Param("groupUpperLimit") String groupUpperLimit,
                     @Param("groupLowerLimit") String groupLowerLimit,
                     @Param("analysisObjType") String analysisObjType,
                     @Param("healthLevel") String healthLevel);

    /**
     * 可以为空的情况
     */
    int updateByInfoIsNull(@Param("tableName") String tableName,
                           @Param("groupUpperLimit") String groupUpperLimit,
                           @Param("groupLowerLimit") String groupLowerLimit,
                           @Param("analysisObjType") String analysisObjType,
                           @Param("healthLevel") String healthLevel);
    /**
     * 查询健康等级
     * @return
     */
    List<Map<String, Object>> queryHealthLevel();

    /**
     * 查询子阵名称
     * @return
     */
    List<Map<String, Object>> queryPvSubArray();

}
