liurunyu
2024-04-23 ea9a04fe8ae638765e174a382c5df419aa63d42e
pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml
@@ -54,6 +54,15 @@
    </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">
@@ -123,4 +132,13 @@
    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>