Crunchy
2024-07-24 0087434cc70ca8cee692be654d9e1c6ec82c3da7
inspect-server/src/main/resources/mapper/InsOrderMapper.xml
@@ -458,10 +458,16 @@
    </select>
    <select id="getDeviceMessage" resultType="java.util.Map">
        select d.*
        from device d, structure_item_parameter sip
        select d.device_name, d.management_number, d.file_type, d.collect_url
        FROM
            device d,
            device_data_config ddc
        where d.ip = #{ip}
          and sip.inspection_item = #{inspectionItem}
        limit 1
          and ddc.inspection_item = #{inspectionItem}
            <if test="inspectionItemSubclass != '' and inspectionItemSubclass != null">
                and ddc.inspection_item_subclass = #{inspectionItemSubclass}
            </if>
          and d.device_status = 0
          and d.ins_product_ids is not null
    </select>
</mapper>