where site = #{site} and bu_no = #{buNo} and equipment_no = #{equipmentNo} and ${collectionSource} is not null and ${collectionSource} <![CDATA[<>]]> ''
where site = #{site} and bu_no = #{buNo} and equipment_no = #{equipmentNo}
<iftest='collectionMethod == "plc"'>
AND inspection_no = #{inspectionNo}
</if>
@ -3235,13 +3235,16 @@
num,
#{collectionSource} as collectionSource
from Equipment_data_detail
where site = #{site} and bu_no = #{buNo} and equipment_no = #{equipmentNo} and ${collectionSource} is not null and ${collectionSource} <![CDATA[<>]]> ''
where site = #{site} and bu_no = #{buNo} and equipment_no = #{equipmentNo}
<iftest='collectionMethod == "plc"'>
AND inspection_no = #{inspectionNo}
</if>
<iftest='collectionMethod == "RS232"'>
AND (inspection_no is null or inspection_no = '')
</if>
<iftest ="collectionDataContent != null and collectionDataContent != ''">
AND ${collectionSource} ${collectionDataContent}
</if>
and batch_no = (select MAX(batch_no) from Equipment_data_detail where site = #{site} and bu_no = #{buNo} and equipment_no = #{equipmentNo})
</select>
@ -3253,7 +3256,10 @@
#{itemNo} as orderRef3,
${collectionSource} as url
from Equipment_data_detail
where site = #{site} and bu_no = #{buNo} and equipment_no = #{equipmentNo} and ${collectionSource} is not null and ${collectionSource} <![CDATA[<>]]> ''
where site = #{site} and bu_no = #{buNo} and equipment_no = #{equipmentNo}
<iftest ="collectionDataContent != null and collectionDataContent != ''">
AND ${collectionSource} ${collectionDataContent}
</if>
and batch_no = (select MAX(batch_no) from Equipment_data_detail where site = #{site} and bu_no = #{buNo} and equipment_no = #{equipmentNo})