liuxm
2024-04-29 9644fb41cd6f23a032c56beba0c548e64b2693de
pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java
@@ -49,6 +49,19 @@
        return this.dao.deleteLogicById(id);
    }
    /**
     * 禁用或启用角色信息
     * @param id
     * @param disabled
     * @return
     */
    public int disabled(Long id,Boolean disabled) {
        BaRole role=new BaRole();
        role.id=id;
        role.disabled=disabled;
        return dao.updateByPrimaryKeySelective(role);
    }
    @Transactional
    public int update(BaRole role) {
        int count = dao.updateByPrimaryKeySelective(role);