replace INTO udi_devicesrg
(UDI_DeviceSrgOID,storageType,lowValue,highValue,unit,UDI_SubProduct_FK)
values
(
#{UDI_DeviceSrgOID},
#{storageType},
#{lowValue},
#{highValue},
#{unit},
#{UDI_SubProduct_FK}
)
replace INTO udi_devicesrg
(UDI_DeviceSrgOID,storageType,lowValue,highValue,unit,UDI_SubProduct_FK)
VALUES
(
#{item.UDI_DeviceSrgOID},
#{item.storageType},
#{item.lowValue},
#{item.highValue},
#{item.unit},
#{item.UDI_SubProduct_FK}
)
delete from udi_devicesrg where UDI_DeviceSrgOID = #{id}
UPDATE udi_devicesrg
storageType=#{storageType},
`lowValue`=#{lowValue},
highValue=#{highValue},
unit=#{unit},
`UDI_SubProduct_FK`=#{UDI_SubProduct_FK},
WHERE UDI_DeviceSrgOID=#{UDI_DeviceSrgOID}