InsRolePermissionsMapper.xml 710 B

12345678910111213141516
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.ydtech.modules.admin.dao.InsRolePermissionsMapper">
  4. <select id="getInsRolePermissionsServiceList" resultType="com.ydtech.modules.admin.model.InsRolePermissions">
  5. select * from ins_role_permissions a
  6. <where>
  7. <if test="roleId !=null and roleId !=''">
  8. and role_id =#{roleId}
  9. </if>
  10. <if test="menuId !=null and menuId !=''">
  11. and menu_id =#{menuId}
  12. </if>
  13. </where>
  14. </select>
  15. </mapper>