锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产亚洲成AV人片在线观黄桃 ,www亚洲精品久久久乳,亚洲AV永久无码精品http://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;



]]>
主站蜘蛛池模板: 亚洲一卡二卡三卡四卡无卡麻豆| 亚洲色大成网站www| 131美女爱做免费毛片| 亚洲免费人成视频观看| 四虎影在线永久免费四虎地址8848aa| 一级片在线免费看| 亚洲第一页在线观看| 成在线人永久免费视频播放| 97在线视频免费公开视频| 亚洲一区电影在线观看| 久久精品亚洲男人的天堂| 在线观看的免费网站无遮挡| 国产亚洲午夜精品| 亚洲欧洲国产精品你懂的| 国产最新凸凹视频免费| 无码日韩精品一区二区三区免费 | 日韩精品福利片午夜免费观着| 男女超爽视频免费播放| 久久久久亚洲av无码尤物| 永久免费bbbbbb视频| 老汉精品免费AV在线播放| 美女裸免费观看网站| 亚洲神级电影国语版| 亚洲人成国产精品无码| 成人免费网站在线观看| 日韩视频在线观看免费| 美女被暴羞羞免费视频| 亚洲熟妇av一区二区三区下载| 久久久久亚洲精品天堂久久久久久| 两个人的视频高清在线观看免费| 青柠影视在线观看免费高清| 综合偷自拍亚洲乱中文字幕| 亚洲欧洲精品在线| 亚洲高清国产AV拍精品青青草原| 国产一级淫片a视频免费观看| 免费能直接在线观看黄的视频| 97超高清在线观看免费视频| 免费国产黄网站在线看| 亚洲欧美日韩中文高清www777| 77777_亚洲午夜久久多人| 国产AV无码专区亚洲AV男同|