Commit 9c6c8a57 authored by yanzg's avatar yanzg

接口文档的支持

parent 2fb5b1d9
...@@ -131,6 +131,10 @@ public class DaoConst { ...@@ -131,6 +131,10 @@ public class DaoConst {
* 等于条件参数 * 等于条件参数
*/ */
public static final String CODE_WHERE_EQUALS_PARA = "AND a.%s=?"; public static final String CODE_WHERE_EQUALS_PARA = "AND a.%s=?";
/**
* 等于条件参数
*/
public static final String CODE_WHERE_EQUALS_NOT_EMPTY_PARA = "AND a.%s=? AND a.%s>''";
/** /**
* 未删除条件 * 未删除条件
*/ */
......
...@@ -668,7 +668,7 @@ public class TableStruct { ...@@ -668,7 +668,7 @@ public class TableStruct {
for (String fieldName : fields) { for (String fieldName : fields) {
TableFieldVo field = this.getField(fieldName); TableFieldVo field = this.getField(fieldName);
sql.addConst(field.inputName, sql.addConst(field.inputName,
String.format(DaoConst.CODE_WHERE_EQUALS_PARA, field.name) String.format(DaoConst.CODE_WHERE_EQUALS_NOT_EMPTY_PARA, field.name, field.name)
); );
} }
addWhereRemove(sql); addWhereRemove(sql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment