hyingbo
2025-06-04 9db215895121e5bedee61cfe1ce1cca5cf8888f9
lxzn-module-mdc-common/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml
@@ -108,6 +108,18 @@
        <foreach collection="equipmentIds" index="index" item="id" open="(" separator="," close=")">
            #{id}
        </foreach>
        <if test="status !=null and status == 1">
            and t2.Oporation in ('1', '2')
        </if>
        <if test="status !=null and status == 2">
            and t2.Oporation = '3'
        </if>
        <if test="status !=null and status == 3">
            and t2.Oporation = '22'
        </if>
        <if test="status !=null and status == 4">
            and t2.Oporation not in ('1', '2', '3', '22') or t2.Oporation is null
        </if>
    </select>
    <!--根据部门id查询设备id集合-->