.getConnection(ConnectionManagement.defaultDataBaseId);
/* 删除原来的数据 */
/* begin*/
Object[] objectParamWhere = { agentId };
SqlCommand sqlCommand = new SqlCommand(this.connection);
sqlCommand.delete("FIXFLOW_AGENT_AGENTINFO", "AGENT_ID=?",objectParamWhere);
sqlCommand.delete("FIXFLOW_AGENT_AGENTDETAILS", "AGENT_ID=?",objectParamWhere);
/* 删除原来的数据 */
/* end */
/* 新增数据 */
/* begin*/
Map<String, Object> objectParam = new HashMap<String, Object>();
objectParam.put("OPERATOR", operator);
objectParam.put("SDATE", sDate);
objectParam.put("EDATE", eDate);
objectParam.put("STATUS", status);
objectParam.put("AGENT_ID", agentId);
objectParam.put("ODATE", oDate);
objectParam.put("VIEW_TYPE", viewType);
// 执行插入语句
sqlCommand.insert("FIXFLOW_AGENT_AGENTINFO", objectParam);
for(Map<String, Object> detailInfo : detailInfoList){
String processId = StringUtil.getString(detailInfo.get("processId"));
String auser = StringUtil.getString(detailInfo.get("auser"));
objectParam = new HashMap<String, Object>();
objectParam.put("PROCESS_ID", processId);
objectParam.put("AUSER", auser);
objectParam.put("AGENT_ID", agentId);
objectParam.put("GUID", java.util.UUID.randomUUID().toString());
sqlCommand.insert("FIXFLOW_AGENT_AGENTDETAILS", objectParam);
}
/* 新增数据 */
/* end */
}