|  |  | 
 |  |  |         com.code = "LCD0001"; | 
 |  |  |         com.type = "innerCommand"; | 
 |  |  |         comSendUrl = env.getProperty(pro_mw + "." + DataSourceContext.get() + "." + key_mw); | 
 |  |  |  | 
 |  |  |         JSONObject response = (JSONObject) JSON.toJSON(sendCom2Mw(com)); | 
 |  |  |  | 
 |  |  |         JSONArray jsonArray = new JSONArray(); | 
 |  |  | 
 |  |  |                     jsonArray.add(jsonObject); | 
 |  |  |                 }); | 
 |  |  |             } | 
 |  |  |             System.out.println(jsonArray.toJSONString()); | 
 |  |  |             //System.out.println(jsonArray.toJSONString()); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         /** | 
 |  |  | 
 |  |  |             for (int i = 0; i < rtus.size(); i++) { | 
 |  |  |                 Long comId = rmCommandHistoryMapper.getLastComId(rtus.get(i).getRtuAddr(), rtus.get(i).getVcNum()); | 
 |  |  |                 if(comId > 0) { | 
 |  |  |                     comIds = comIds + comId + ","; | 
 |  |  |                     comIds = comIds + "\"" + comId + "\","; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         if(comIds.length() > 0) { | 
 |  |  |             comIds = "(" + comIds.substring(0,comIds.length()) + ")"; | 
 |  |  |             comIds = comIds.substring(0, comIds.length()-1); | 
 |  |  |             List<VoUnclosedValve> res = rmCommandHistoryMapper.getUnclosedValves(jsonArray.toJSONString(), comIds); | 
 |  |  |             if(res != null) { | 
 |  |  |                 return res; |