diff --git a/src/main/resources/mapper/base/PropertiesMapper.xml b/src/main/resources/mapper/base/PropertiesMapper.xml index 8aa5ee9..9793e19 100644 --- a/src/main/resources/mapper/base/PropertiesMapper.xml +++ b/src/main/resources/mapper/base/PropertiesMapper.xml @@ -496,7 +496,7 @@ - insert into PartSubPropertiesValue (PartNo, Site, CodeNo, SubCodeSeqNo, SubCodeDesc, ItemNo, PropertiesItemNo, TextValue, NumValue, RecordType) + insert into PartSubPropertiesValue (PartNo, Site, CodeNo, SubCodeSeqNo, SubCodeDesc, ItemNo, PropertiesItemNo, TextValue, NumValue, RecordType,order_id) select #{partNo}, #{site}, @@ -507,7 +507,8 @@ b.properties_item_no, case when c.ValueType_DB = 'T' then c.DefaultValue else null end, case when c.ValueType_DB = 'N' and c.DefaultValue != '' then c.DefaultValue else null end, - #{recordType} + #{recordType}, + b.order_id from plm_properties_model_header a left join plm_properties_model_detail b on a.Code_No = b.Code_No and a.site = b.site and a.function_type = b.function_type left join plm_properties_item c on b.properties_item_no = c.ItemNo and b.site = c.site and a.function_type = c.itemType