whycxzp
2025-06-10 73bb5617e6aeb4ee8f7dfd4ad54b61d477969d86
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.whyc.mapper.BattAlarmParamMapper">
    <select id="serchByCondition" resultType="BattAlarmParam">
        select num,alm_id,alm_name,alm_high_coe,alm_low_coe,alm_high_level,alm_low_level,alm_high_en,alm_low_en  from db_param.alarm_param
        <where>
            <if test="AlarmIds!=null and AlarmIds.size>0">
                <foreach collection="AlarmIds" item="AlarmId" open=" alm_id in (" close=")" separator=",">
                    #{AlarmId}
                </foreach>
            </if>
        </where>
    </select>
    <select id="getParamInfoList" resultType="float">
        select alm_low_coe from db_param.alarm_param where alm_id in(#{alarmId},#{alarmId2})
    </select>
</mapper>