|
|
@@ -424,21 +424,21 @@ public class WorkOrder extends Controller {
|
|
|
rowdetail.put("url",rowsimg);
|
|
|
}
|
|
|
|
|
|
- Rows rows_team = dbConnect.runSqlQuery("select t.workername,t.workerphone from ordernode_team t\n" +
|
|
|
- "where EXISTS(select 1 from ordernode t1 where t1.ordernodeid=t.fparentid and t1.ordernodeid="+rowdetail.getInteger("ownerid")+") and siteid='"+siteid+"'");
|
|
|
- SQLFactory factory_team_url = new SQLFactory(this, "工单节点参与人员头像查询");
|
|
|
- factory_team_url.addParameter("siteid",rowdetail.getString("siteid"));
|
|
|
- factory_team_url.addParameter_SQL("workerphone",rows_team.getInWhere("workerphone"));
|
|
|
- Rows rows_team_url = dbConnect.runSqlQuery(factory_team_url.getSQL());
|
|
|
- RowsMap workerphone = rows_team_url.toRowsMap("workerphone");
|
|
|
- long start4 =System.currentTimeMillis();
|
|
|
- for (Row row : rows_team) {
|
|
|
- if(workerphone.containsKey(row.getString("workerphone"))){
|
|
|
- row.put("url",workerphone.get(row.getString("workerphone")).get(0).getString("url"));
|
|
|
- }else{
|
|
|
- row.put("url",null);
|
|
|
- }
|
|
|
- }
|
|
|
+// Rows rows_team = dbConnect.runSqlQuery("select t.workername,t.workerphone from ordernode_team t\n" +
|
|
|
+// "where EXISTS(select 1 from ordernode t1 where t1.ordernodeid=t.fparentid and t1.ordernodeid="+rowdetail.getInteger("ownerid")+") and siteid='"+siteid+"'");
|
|
|
+// SQLFactory factory_team_url = new SQLFactory(this, "工单节点参与人员头像查询");
|
|
|
+// factory_team_url.addParameter("siteid",rowdetail.getString("siteid"));
|
|
|
+// factory_team_url.addParameter_SQL("workerphone",rows_team.getInWhere("workerphone"));
|
|
|
+// Rows rows_team_url = dbConnect.runSqlQuery(factory_team_url.getSQL());
|
|
|
+// RowsMap workerphone = rows_team_url.toRowsMap("workerphone");
|
|
|
+// long start4 =System.currentTimeMillis();
|
|
|
+// for (Row row : rows_team) {
|
|
|
+// if(workerphone.containsKey(row.getString("workerphone"))){
|
|
|
+// row.put("url",workerphone.get(row.getString("workerphone")).get(0).getString("url"));
|
|
|
+// }else{
|
|
|
+// row.put("url",null);
|
|
|
+// }
|
|
|
+// }
|
|
|
/**节点关联物料查询**/
|
|
|
Rows rows_titem = dbConnect.runSqlQuery("select t.fitemno,t.fitemname,t.fmodel,t.fspec,t.fqty from \n" +
|
|
|
"workorder_titem t\n" +
|
|
|
@@ -461,16 +461,16 @@ public class WorkOrder extends Controller {
|
|
|
row.put("url",null);
|
|
|
}
|
|
|
}
|
|
|
- long start6 =System.currentTimeMillis();
|
|
|
- rowdetail.put("team",rows_team);
|
|
|
+ long start6 =System.currentTimeMillis()
|
|
|
+ ;
|
|
|
+// rowdetail.put("team",rows_team);
|
|
|
rowdetail.put("titem",rows_titem);
|
|
|
System.err.println("1="+(start2-start1));
|
|
|
System.err.println("2="+(start3-start2));
|
|
|
- System.err.println("3="+(start4-start3));
|
|
|
- System.err.println("4="+(start5-start4));
|
|
|
+// System.err.println("3="+(start4-start3));
|
|
|
+// System.err.println("4="+(start5-start4));
|
|
|
System.err.println("5="+(start6-start5));
|
|
|
return getReturnObject_suc(rowdetail,false).toString();
|
|
|
-
|
|
|
}
|
|
|
return getReturnObject_err("该节点不是末级节点").toString();
|
|
|
|