Commit f4e16308 authored by yanzg's avatar yanzg

压缩视频

parent b40bc8c2
...@@ -34,7 +34,11 @@ public class SqlCondDefault extends SqlCondBase { ...@@ -34,7 +34,11 @@ public class SqlCondDefault extends SqlCondBase {
boolean isInputField = !this.fields.isEmpty(); boolean isInputField = !this.fields.isEmpty();
// 判断是否属于条件 // 判断是否属于条件
boolean isCond = sqlField.getCodes().size() > 0 && sqlField.isAuto(); boolean isCond = sqlField.getCodes().size() > 0 && sqlField.isAuto();
if (isInputField && isCond) { if (isCond) {
if (!isInputField) {
// 只要有值不为空,则条件满足
return COND_TYPE_CODE_COND;
} else {
for (String field : this.fields) { for (String field : this.fields) {
// 获取值 // 获取值
Object val = ObjectHelper.get(model, field); Object val = ObjectHelper.get(model, field);
...@@ -44,6 +48,7 @@ public class SqlCondDefault extends SqlCondBase { ...@@ -44,6 +48,7 @@ public class SqlCondDefault extends SqlCondBase {
// 只要有值不为空,则条件满足 // 只要有值不为空,则条件满足
return COND_TYPE_CODE_COND; return COND_TYPE_CODE_COND;
} }
}
} else if (isInputField) { } else if (isInputField) {
// 前台输入参数,直接参数对接到SQL语句中 // 前台输入参数,直接参数对接到SQL语句中
return COND_TYPE_CONST_ONLY_PARA; return COND_TYPE_CONST_ONLY_PARA;
......
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