Commit 01b5bb24 authored by Quxl's avatar Quxl

x

parent 4151e47c
...@@ -766,7 +766,7 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -766,7 +766,7 @@ public class ReviewServiceImpl implements ReviewService {
if(from_round == 0) { if(from_round == 0) {
where.eq("t.enroll_type_name", 4); where.eq("t.enroll_type_name", 4);
} else { } else {
where.eq("t.state_3_round", from_round); where.ne("t.t.enroll_type_name", 4).eq("t.state_3_round", from_round);
} }
} }
sql = "select t.* from (" + sql + ") t " + StringUtil.join(" and ", " where ", "", where.getStringList()) + " order by t.film_id desc"; sql = "select t.* from (" + sql + ") t " + StringUtil.join(" and ", " where ", "", where.getStringList()) + " order by t.film_id desc";
......
...@@ -42,6 +42,14 @@ public class SqlWhere { ...@@ -42,6 +42,14 @@ public class SqlWhere {
return this; return this;
} }
public SqlWhere ne(String name, Object obj) {
if(StringUtil.isNotBlank(obj)) {
this.strList.add(name + " != ?");
this.objList.add(obj);
}
return this;
}
public SqlWhere gt(String name, Object obj) { public SqlWhere gt(String name, Object obj) {
if(StringUtil.isNotBlank(obj)) { if(StringUtil.isNotBlank(obj)) {
this.strList.add(name + " > ?"); this.strList.add(name + " > ?");
......
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