src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java
private void addXmlElementComment(XmlElement xmlElement, Map<String, Object> map, EnumNode node) {
        // 获取评论
        String[] comments = getComments(map, node);
        if (comments != null){
            // 去除空评论
            if (comments.length == 1 && !StringUtility.stringHasValue(comments[0])){
                return;
            }
            // 添加评论
            for (String comment : comments){
                xmlElement.addElement(new TextElement(comment));
            }
        }
    }
private void addXmlElementComment(XmlElement xmlElement, Map<String, Object> map, EnumNode node) {
        // 获取评论
        String[] comments = getComments(map, node);
        if (comments != null){
            // 去除空评论
            if (comments.length == 1 && !StringUtility.stringHasValue(comments[0])){
                return;
            }
            // 添加评论
            for (String comment : comments){
                xmlElement.addElement(new TextElement(comment));
            }
        }
    }
添加评论

@param xmlElement
@param map
@param node