锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一区二区三区91,国产AV无码专区亚洲AV毛网站,亚洲中文字幕久久精品无码Ahttp://m.tkk7.com/17learning/category/50367.html鎴戠殑鍗氬錛歨ttp://blog.sina.com.cn/17learningzh-cnSun, 19 May 2013 17:15:49 GMTSun, 19 May 2013 17:15:49 GMT60鍦ㄥ悓涓寮犳暟鎹簱琛ㄤ腑浣跨敤Map緇熻鏁版嵁http://m.tkk7.com/17learning/archive/2012/09/12/387602.html綆″厛椋?/dc:creator>綆″厛椋?/author>Wed, 12 Sep 2012 15:57:00 GMThttp://m.tkk7.com/17learning/archive/2012/09/12/387602.htmlhttp://m.tkk7.com/17learning/comments/387602.htmlhttp://m.tkk7.com/17learning/archive/2012/09/12/387602.html#Feedback0http://m.tkk7.com/17learning/comments/commentRss/387602.htmlhttp://m.tkk7.com/17learning/services/trackbacks/387602.html
               String startDate = req.getParameter("startDate"); 
String endDate = req.getParameter("endDate");
UserVO users = (UserVO) req.getSession().getAttribute("users");
List<ReportBaseVO> titleList = MessageCountService.titleList();  //琛ㄥ垪
List<ReportBaseVO> mentList=MessageCountService.findMentList(users,messType); //琛ㄨ
                List<ReportDataVO> dataList=MessageCountService.findData(users,messType,startDate,endDate); //鏁版嵁闆?br /> Map<String,String> dataMap = ReportService.getReport(dataList); //瑁呭叆Map
2銆佹柟娉曞疄鐜幫細
//0錛氭弧鎰?1錛氶潪甯告弧鎰?錛氫笉婊℃剰 
public static List<ReportBaseVO> titleList(){
List<ReportBaseVO> list = new ArrayList<ReportBaseVO>();
ReportBaseVO vo1 = new ReportBaseVO();
vo1.setCode("0");
vo1.setName("婊℃剰");
list.add(vo1);
ReportBaseVO vo2 = new ReportBaseVO();
vo2.setCode("1");
vo2.setName("鍩烘湰婊℃剰");
list.add(vo2);
ReportBaseVO vo3 = new ReportBaseVO();
vo3.setCode("2");
vo3.setName("涓嶆弧鎰?);
list.add(vo3);
return list;
}

public static List<ReportBaseVO> findMentList(UserVO users,String type){
List<ReportBaseVO> list = new ArrayList<ReportBaseVO>();
         
if((users.isHave("0") && ("1".equals(type)||type==null||"".equals(type)))||users.isHave("1") && ("1".equals(type)||type==null||"".equals(type))){
ReportBaseVO vo1 = new ReportBaseVO();
vo1.setCode("1");
vo1.setName("灞闀夸俊綆?);
list.add(vo1);
}
}

public static List<ReportDataVO> findData(UserVO users, String messType,String startDate,String endDate){
               List<ReportDataVO> list = new ArrayList<ReportDataVO>();
String sql="select APPRAISAL as titleId,MESS_TYPE as mentId,count(ID) as count from act_message where DELETE_FLAG='0' and APPRAISAL<>'' and MESS_TYPE='1' group by MESS_TYPE,APPRAISAL";
List<ReportDataVO> reportDataList = DBBeanUtil.execute(conn, new ReportDataVO(),sql);
list.addAll(reportDataList);
return list;
}

public static Map<String,String> getReport(List<ReportDataVO> paraList){
Map<String, String> reportMap = new HashMap<String, String>();
for(int i=0;i<paraList.size();i++){
ReportDataVO p = paraList.get(i);
reportMap.put(p.getMentId()+"_"+p.getTitleId(), String.valueOf(p.getCount()));
}
return reportMap;
}

3銆侀亶鍘嗘暟鎹細
Map<String,String> dataMap = ReportService.getReport(dataList);
String[][] data = new String[mentList.size()][titleList.size()];
for (int i = 0; i < mentList.size(); i++) {
mentList.get(i).getName();  
int typeAll=0;
for (int j = 0; j < titleList.size(); j++) {
String dateMa=mentList.get(i).getCode()+ "_" + titleList.get(j).getCode();
//             out.print("titleList.get(j).getCode():"+titleList.get(j).getCode());
String content = dataMap.get(dateMa);//IsTurn0
if (content == null || "".equals(content)) {
content = "0";
}
data[i][j] = content;
typeAll=Integer.parseInt(content)+typeAll;
}
BigDecimal point = new BigDecimal(0);
BigDecimal mcount=new BigDecimal(data[i][0]).add(new BigDecimal(data[i][1]));//婊℃剰鍙戝竷浠舵暟
BigDecimal atotal=mcount.add(new BigDecimal(data[i][2]));//鍏卞彂甯冧歡鏁?/div>
if(atotal.compareTo(new BigDecimal(0))!=0){
point = new BigDecimal(100).multiply(mcount.divide(atotal,2, RoundingMode.HALF_UP));
}
}


]]>Struts2杞爜鎿嶄綔http://m.tkk7.com/17learning/archive/2012/05/17/J2EE.html綆″厛椋?/dc:creator>綆″厛椋?/author>Thu, 17 May 2012 03:15:00 GMThttp://m.tkk7.com/17learning/archive/2012/05/17/J2EE.htmlhttp://m.tkk7.com/17learning/comments/378383.htmlhttp://m.tkk7.com/17learning/archive/2012/05/17/J2EE.html#Feedback0http://m.tkk7.com/17learning/comments/commentRss/378383.htmlhttp://m.tkk7.com/17learning/services/trackbacks/378383.html   FlowChart fcName;
  URLEncoder.encode(fcName.getFlowChartName(),"UTF-8")
2銆佸湪鎺ュ彈欏甸潰杞爜錛?br />  String fcName= new String(request.getParameter("fcName").getBytes("ISO-8859-1"),"UTF-8");
3銆丣avaScript浼犱腑鏂囧肩粰Action鍑虹幇涔辯爜闂瑙e喅
new String(newFileName.getBytes("ISO-8859-1"),"UTF-8") ;
澶氬涓鐐?nbsp;



]]>
主站蜘蛛池模板: 国产亚洲精品成人AA片新蒲金| h视频在线免费看| 青青青国产色视频在线观看国产亚洲欧洲国产综合| 亚洲人成777在线播放| 日本黄网站动漫视频免费| 精品日韩亚洲AV无码一区二区三区 | 激情吃奶吻胸免费视频xxxx| 在线免费观看韩国a视频| 亚洲AV成人精品一区二区三区 | 亚洲乳大丰满中文字幕| 在线免费观看伊人三级电影| 亚洲国产精品一区第二页| 国产午夜无码精品免费看动漫| 亚洲第一极品精品无码久久| 玖玖在线免费视频| 亚洲欧洲中文日产| 拍拍拍又黄又爽无挡视频免费| 亚洲男人的天堂网站| 免费人成在线观看视频播放| 亚洲天堂免费在线视频| 久久精品九九亚洲精品天堂| 8x网站免费入口在线观看| 亚洲不卡视频在线观看| 国产v片免费播放| 一区二区三区在线免费观看视频| 亚洲精品无码久久久影院相关影片| 好紧我太爽了视频免费国产| 亚洲小视频在线播放| 在线视频免费国产成人| 国产伦精品一区二区免费| 亚洲精品中文字幕乱码影院| 午夜免费不卡毛片完整版| 精品无码国产污污污免费网站国产 | 4hu四虎最新免费地址| 美女视频黄视大全视频免费的| 久久久久亚洲AV无码专区桃色| 97精品免费视频| 国产成人综合久久精品亚洲| 久久精品国产亚洲av成人| 成人一a毛片免费视频| 一区二区免费电影|