diff --git a/src/main/resources/mapper/ecss/CoDelMapper.xml b/src/main/resources/mapper/ecss/CoDelMapper.xml index 34b4fd23..f0ffb6c4 100644 --- a/src/main/resources/mapper/ecss/CoDelMapper.xml +++ b/src/main/resources/mapper/ecss/CoDelMapper.xml @@ -413,7 +413,7 @@ create_by,create_date,update_by,update_date case when c.value_type_db = 'N' and c.default_value != '' then c.default_value else null end, #{recordType} from plm_properties_item c - left join plm_properties_model_header d on c.site=d.site and d.code_no=#{codeNo} + left join plm_properties_model_header d on c.site=d.site and d.code_no=#{codeNo} and d.function_type=c.item_Type where c.Item_No = #{propertiesItemNo} and c.site = #{site} and c.bu_no=#{buNo}