Class SimpleAddWhereHelper
java.lang.Object
org.jeecgframework.minidao.sqlparser.impl.util.SimpleAddWhereHelper
简单字符串方式为 SQL 增加 where 条件(与 SimpleSqlProcessor 同步逻辑)
for [issues/8336]支持SqlServer数据使用sql排序,新方案。
- Author:
- chenrui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddWhereCondition(String sql, String condition) 为 SQL 增加 where 条件(条件字符串)static StringaddWhereCondition(String sql, String field, Object value, String operator) 为 SQL 增加 where 条件(字段+值+操作符)
-
Constructor Details
-
SimpleAddWhereHelper
public SimpleAddWhereHelper()
-
-
Method Details
-
addWhereCondition
为 SQL 增加 where 条件(条件字符串)- Parameters:
sql- 原始SQLcondition- 条件(不含where关键字)
-
addWhereCondition
为 SQL 增加 where 条件(字段+值+操作符)- Parameters:
sql- 原始SQLfield- 字段名value- 字段值operator- 操作符
-