1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "mybatis-3-mapper.dtd">
4 <mapper namespace="org.sonar.db.qualitygate.QualityGateUserPermissionsMapper">
8 qup.user_uuid as "userUuid",
9 qup.quality_gate_uuid as "qualityGateUuid"
12 <select id="selectByQualityGateAndUser" parameterType="String" resultType="org.sonar.db.qualitygate.QualityGateUserPermissionsDto">
14 <include refid="sqlColumns"/>
15 from qgate_user_permissions qup
17 qup.user_uuid = #{userUuid}
18 and qup.quality_gate_uuid = #{qualityGateUuid}
21 <insert id="insert" useGeneratedKeys="false" parameterType="map">
22 insert into qgate_user_permissions(
28 #{dto.uuid, jdbcType=VARCHAR},
29 #{dto.userUuid, jdbcType=VARCHAR},
30 #{dto.qualityGateUuid, jdbcType=VARCHAR},
31 #{now, jdbcType=BIGINT}