|
|
@@ -694,8 +694,15 @@ public class Order extends Controller {
|
|
|
where.append(")");
|
|
|
}
|
|
|
if (whereObject.containsKey("type") && !"".equals(whereObject.getString("type"))) {
|
|
|
+ JSONArray jsonArray =whereObject.getJSONArray("type");
|
|
|
+ StringBuffer str=new StringBuffer("(");
|
|
|
+ for(Object o :jsonArray){
|
|
|
+ str.append("'"+(String)o+"',");
|
|
|
+ }
|
|
|
+ String result = str.substring(0, str.length() - 1);
|
|
|
+ result=result+")";
|
|
|
where.append(" and(");
|
|
|
- where.append("t1.type ='%").append(whereObject.getString("type")).append("%' ");
|
|
|
+ where.append("t1.type in" +result);
|
|
|
where.append(")");
|
|
|
}
|
|
|
if (whereObject.containsKey("notclose") && !"".equals(whereObject.getString("notclose"))) {
|