insert into measures ( component_uuid, branch_uuid, json_value, json_value_hash, created_at, updated_at ) values ( #{dto.componentUuid, jdbcType=VARCHAR}, #{dto.branchUuid, jdbcType=VARCHAR}, #{dto.jsonValue, jdbcType=VARCHAR}, #{dto.jsonValueHash, jdbcType=BIGINT}, #{now, jdbcType=BIGINT}, #{now, jdbcType=BIGINT} ) update measures set json_value = #{dto.jsonValue, jdbcType=VARCHAR}, json_value_hash = #{dto.jsonValueHash, jdbcType=BIGINT}, updated_at = #{now, jdbcType=BIGINT} where component_uuid = #{dto.componentUuid, jdbcType=VARCHAR} m.component_uuid as componentUuid, m.branch_uuid as branchUuid, m.json_value as jsonValue, m.json_value_hash as jsonValueHash