src/main/java/com/itfsw/mybatis/generator/plugins/OptimisticLockerPlugin.java
@Override
    public boolean sqlMapDeleteByExampleElementGenerated(XmlElement element, IntrospectedTable introspectedTable) {
        if (this.versionColumn != null) {
            this.sqlMaps.get(introspectedTable).add(
                    this.replaceExampleXmlElement(introspectedTable, element, METHOD_DELETE_WITH_VERSION_BY_EXAMPLE)
            );
        }
        return super.sqlMapDeleteByExampleElementGenerated(element, introspectedTable);
    }
@Override
    public boolean sqlMapDeleteByExampleElementGenerated(XmlElement element, IntrospectedTable introspectedTable) {
        if (this.versionColumn != null) {
            this.sqlMaps.get(introspectedTable).add(
                    this.replaceExampleXmlElement(introspectedTable, element, METHOD_DELETE_WITH_VERSION_BY_EXAMPLE)
            );
        }
        return super.sqlMapDeleteByExampleElementGenerated(element, introspectedTable);
    }
========================================= sqlMap 生成 ============================================