SELECT id, table_name, location_name, detection_id, detection_vocs_name, format(detection_value, 2) detection_value,
practical_id, practical_vocs_name, format(practical_value, 2) practical_value, create_time
FROM feedback
INSERT INTO feedback
(table_name, location_name, detection_id,
detection_vocs_name, detection_value, practical_id,
practical_vocs_name, practical_value, create_time)
VALUES
(#{tableName}, #{locationName}, #{detectionId},
#{detectionVocsName}, #{detectionValue}, #{practicalId},
#{practicalVocsName}, #{practicalValue}, #{createTime})
UPDATE feedback SET
practical_id = #{practicalId}, practical_vocs_name = #{practicalVocsName}, practical_value = #{practicalValue}
WHERE id = #{id}