com.magic.db.conversion.SqlConversion Maven / Gradle / Ivy
package com.magic.db.conversion;
import com.magic.db.model.Condition;
import com.magic.db.model.SqlBuilderModel;
import com.magic.util.JSONUtil;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* SQL转化器
*/
public class SqlConversion {
/**
* 根据条件构造器生成sql和参数
* @param sql
* @param conditions
* @return
*/
public static SqlBuilderModel getSql(StringBuffer sql, List conditions){
SqlBuilderModel sqlBuilderModel = new SqlBuilderModel();
List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy