AlarmParamStandardConfigMapper.java
887 字节
package com.skua.modules.alarm.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skua.modules.alarm.entity.AlarmParamStandardConfig;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.Map;
/**
* @program: skboot
* @description:
* @author: xie chao
* @create: 2020-11-03 15:51
*/
public interface AlarmParamStandardConfigMapper extends BaseMapper<AlarmParamStandardConfig> {
@Select({"select apsc.id id from alarm_level_standard_config alsc left join alarm_param_standard_config apsc on " +
"alsc.id = apsc.alarm_level_standard_id where alsc.id = #{alarmLevelStandardId} and apsc.alarm_param_code = #{alarmParamCode}"})
Map<String,String> getAlarmParamStandardConfigId(@Param("alarmLevelStandardId") String alarmLevelStandardId,@Param("alarmParamCode") String alarmParamCode);
}