廖井涛
6 天以前 7c48f4f841e55d8e0ec0e7481949f2004c3eaf7a
north-glass-erp/src/main/resources/mapper/userInfo/PermissionRoleMapper.xml
@@ -38,15 +38,14 @@
                           on b.id = c.role_id
                 left join permission_basic d
                           on  d.id = c.permission_id
                           and d.permission='edit'
        where a.id = #{loginId}
        where a.id = #{loginId} and
        </if>
        <if test="userIsAdmin==true">
            from permission_basic d
            where d.permission='edit'
            where
        </if>
            and d.state = 1
             d.state = 1
        group by  d.id
    </select>