whycxzp
2025-06-10 73bb5617e6aeb4ee8f7dfd4ad54b61d477969d86
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?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.PowerAlarmParamMapper">
 
    <select id="serchByCondition" resultType="com.whyc.pojo.db_param.PoweralarmParam">
        select num,alm_id,alm_level,alm_en  from db_param.poweralarm_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>
</mapper>