left join plm_properties_item b on a.function_type = b.itemType and a.properties_item_no = b.itemNo and a.site = b.site
where a.function_type = 'TEST' and a.code_no = 'T1' and a.site = #{site}
where a.function_type = #{codeType} and a.code_no = #{codeNo} and a.site = #{site}
order by a.order_id
</select>
@ -213,7 +213,7 @@
a.num_value,
a.test_no
FROM plm_test_properties a
left join plm_properties_model_detail b on a.site = b.site and a.function_type = b.function_type and b.code_no = 'T1' and a.item_no = b.properties_item_no
left join plm_properties_model_detail b on a.site = b.site and a.function_type = b.function_type and b.code_no = #{codeNo} and a.item_no = b.properties_item_no
where test_no = #{testNo} and a.site = #{site} order by b.order_id
</select>
@ -232,7 +232,7 @@
b.MinValue
FROM plm_properties_model_detail a
left join plm_properties_item b on a.function_type = b.itemType and a.properties_item_no = b.itemNo and a.site = b.site
where a.function_type = 'TEST' and a.code_no = 'T1' and a.site = #{site}
where a.function_type = #{codeType} and a.code_no = #{codeNo} and a.site = #{site}