常熟吴彦祖 1 month ago
parent
commit
1fc6acc917
  1. 5
      src/main/resources/mapper/base/PropertiesMapper.xml

5
src/main/resources/mapper/base/PropertiesMapper.xml

@ -496,7 +496,7 @@
<!-- 新增材料属性值 -->
<insert id="savePartSubPropertiesValue">
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

Loading…
Cancel
Save