List<ReportProcedureEntity> list = (List<ReportProcedureEntity> )hashMap.get("R_RESULT1"); //hashMap里没有R_RESULT1这个key吧?所以list为空。
String rtnJson = new Gson().toJson(list, new TypeToken<List<ReportProcedureEntity>>() {}.getType());return NONE;} //返回NONE?
String rtnJson = new Gson().toJson(list, new TypeToken<List<ReportProcedureEntity>>() {}.getType());return NONE;} //返回NONE?
Map<String, Object> hashMap = new HashMap<String,Object>();
hashMap.put("P_GRP_CD","R3_P1_G1"); //画面页面CODE
hashMap.put("P_KPI_CD","R3_K1");//满意度VS其他率
hashMap.put("P_ORG_GRP_CD", null);//集团代码
hashMap.put("P_ORG_DLR_CD", null);//代理商代码
hashMap.put("P_ORG_BSC_CD", null);//办事处代码
hashMap.put("P_USER_SEQ", userid);
hashMap.put("P_SVC_TYPE", "601");
hashMap.put("P_YYYY_MM_FROM", "2012-01");
hashMap.put("P_YYYY_MM_TO", "2012-12");
try{
serviceTrackingManager.getSatisfProcedure(hashMap);
}
catch(Exception e){
e.printStackTrace();
}
List<ReportProcedureEntity> list = (List<ReportProcedureEntity> )hashMap.get("R_RESULT1");
这一句肯定得不到值,list肯定是空的。
String rtnJson = new Gson().toJson(list, new TypeToken<List<ReportProcedureEntity>>() {}.getType());
NONE未见定义,返回什么?
return NONE;}