com.huoguo.mybatisplus.batch.enums.SqlMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-plus-batch Show documentation
Show all versions of mybatis-plus-batch Show documentation
This is Mybatis Plus based batch write operation tool
package com.huoguo.mybatisplus.batch.enums;
/**
* SQL片段枚举类
* @author Lizhenghuang
*/
public enum SqlMethod {
/** 新增 **/
INSERT_LIST("insert", "插入集合数据", "INSERT INTO %s (%s) VALUES %s"),
/** 删除 **/
DELETE_LIST("delete", "逻辑删除数据", "DELETE FROM $s WHERE 1 = 1 $s");
private final String method;
private final String desc;
private final String sql;
SqlMethod(String method, String desc, String sql) {
this.method = method;
this.desc = desc;
this.sql = sql;
}
public String getMethod() {
return this.method;
}
public String getDesc() {
return this.desc;
}
public String getSql() {
return this.sql;
}
}