Commit f4e16308 authored by yanzg's avatar yanzg

压缩视频

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