| | |
| | | </if> |
| | | </select> |
| | | |
| | | <!-- <select id="selectByRole" resultType="com.dy.pmsGlobal.pojoBa.BaPrivilege">--> |
| | | <!-- select p.id,p.num,p.name,p.type--> |
| | | <!-- from ba_privilege p--> |
| | | <!-- inner join ba_role_privilege rp on p.id = rp.privilege_id--> |
| | | <!-- <if test="roleId != null">--> |
| | | <!-- where rp.role_id = #{roleId, jdbcType=BIGINT}--> |
| | | <!-- </if>--> |
| | | <!-- </select>--> |
| | | |
| | | |
| | | |
| | | <insert id="insert" parameterType="com.dy.pmsGlobal.pojoBa.BaPrivilege"> |
| | |
| | | delete from ba_privilege |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <select id="selectByIds" parameterType="arraylist" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from ba_privilege where id in |
| | | <foreach item="id" collection="ids" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |