| | |
| | | left join structure_item_parameter ip on not FIND_IN_SET(ip.id, d.ins_product_ids) |
| | | inner join device_data_config ddc on ddc.device_id = d.id and ddc.structure_item_parameter_id = ip.id |
| | | </select> |
| | | <select id="getNoConfigProduct" resultType="com.ruoyi.device.pojo.DataConfig"> |
| | | SELECT d.id device_id, |
| | | ip.inspection_item, |
| | | ip.inspection_item_class, |
| | | ip.inspection_item_subclass , |
| | | ip.sample, |
| | | ip.id structureItemParameterId, |
| | | ddc.id |
| | | FROM structure_item_parameter ip |
| | | left join device d on FIND_IN_SET(d.id, ip.device_ids) |
| | | left join device_data_config ddc on ddc.device_id = d.id and ddc.structure_item_parameter_id = ip.id |
| | | where d.id = #{deviceId} |
| | | and ddc.id is null |
| | | </select> |
| | | </mapper> |