|
|
@@ -435,6 +435,21 @@ public class serviceorder extends Controller {
|
|
|
if (whereObject.containsKey("sa_customersid") && !"".equals(whereObject.getString("sa_customersid"))) {
|
|
|
where.append(" and t1.sa_customersid ='").append(whereObject.getString("sa_customersid")).append("'");
|
|
|
}
|
|
|
+
|
|
|
+ if(whereObject.getBooleanValue("noacceptCount")){
|
|
|
+ where.append(" and t1.status = '待分配' ");
|
|
|
+ }
|
|
|
+ if(whereObject.getBooleanValue("noacceptCount24")){
|
|
|
+ where.append(" and t1.status = '待分配' and t1.submitdate < DATE_SUB(NOW(), INTERVAL 24 HOUR) ");
|
|
|
+ }
|
|
|
+ if(whereObject.getBooleanValue("refuseacceptCount")){
|
|
|
+ where.append(" and t1.status = '拒绝受理' ");
|
|
|
+ }
|
|
|
+ if(whereObject.getBooleanValue("processingCount")){
|
|
|
+ where.append(" and (t1.status = '待服务' or t1.status='服务中') ");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "服务申请单列表查询");
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
@@ -445,6 +460,16 @@ public class serviceorder extends Controller {
|
|
|
querySQL.addJoinTable(JOINTYPE.right, sqlFactory, "t1", "t0.siteid='111'", "*");
|
|
|
querySQL.setPage(pageSize, pageNumber);
|
|
|
Rows rows = querySQL.query();
|
|
|
+
|
|
|
+
|
|
|
+ SQLFactory sqlFactory2 = new SQLFactory(this, "服务申请单状态统计");
|
|
|
+ sqlFactory2.addParameter("siteid", siteid);
|
|
|
+ sqlFactory2.addParameter_SQL("where", where);
|
|
|
+ Rows rows_total = dbConnect.runSqlQuery(sqlFactory2.getSQL());
|
|
|
+
|
|
|
+ if (!rows.isEmpty()) {
|
|
|
+ rows.get(0).put("rows_total", rows_total);
|
|
|
+ }
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|
|
|
|