src/main/java/com/itfsw/mybatis/generator/plugins/OptimisticLockerPlugin.java
private TextElement generateVersionSetEle(boolean selective) {
        if (this.customizedNextVersion) {
            return new TextElement(
                    (selective ? "" : "set ")
                            + MyBatis3FormattingUtilities.getEscapedColumnName(this.versionColumn)
                            + " = "
                            + MyBatis3FormattingUtilities.getParameterClause(this.versionColumn, "record.")
                            + ","
            );
        } else {
            return new TextElement(
                    (selective ? "" : "set ")
                            + MyBatis3FormattingUtilities.getEscapedColumnName(this.versionColumn)
                            + " = "
                            + MyBatis3FormattingUtilities.getEscapedColumnName(this.versionColumn)
                            + " + 1,"
            );
        }
    }
private TextElement generateVersionSetEle(boolean selective) {
        if (this.customizedNextVersion) {
            return new TextElement(
                    (selective ? "" : "set ")
                            + MyBatis3FormattingUtilities.getEscapedColumnName(this.versionColumn)
                            + " = "
                            + MyBatis3FormattingUtilities.getParameterClause(this.versionColumn, "record.")
                            + ","
            );
        } else {
            return new TextElement(
                    (selective ? "" : "set ")
                            + MyBatis3FormattingUtilities.getEscapedColumnName(this.versionColumn)
                            + " = "
                            + MyBatis3FormattingUtilities.getEscapedColumnName(this.versionColumn)
                            + " + 1,"
            );
        }
    }
生成版本号set节点
@param selective
@return