cy
2022-06-23 b83c40548208609d0d6826be13d742c28a784806
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
package cn.ksource.web.controller.wechat.uwyw.stats;
 
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
 
import cn.ksource.beans.SC_PARTNER_CUSTOMER_INFO;
import cn.ksource.core.util.ConvertUtil;
import cn.ksource.core.util.DateUtil;
import cn.ksource.core.util.JsonUtil;
import cn.ksource.core.util.StringUtil;
import cn.ksource.core.web.WebUtil;
import cn.ksource.web.facade.tj.IncidentStatisFacade;
 
 
@Controller
@RequestMapping("/uwyw/stats/uIncidentStats")
public class UIncidentStatsController {
    
    @Resource
    private IncidentStatisFacade incidentStatisFacade;
    
    /**
     * 事件统计首页
     * @author chenlong
     * @param request
     * @return
     */
    @RequestMapping("/incidentStatsIndex.html")
    public String incidentStatsIndex(HttpServletRequest request){
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentStatsIndex";
    }
    
    /**
     * 查询条件
     * @author chenlong
     * @param request
     * @return
     */
    @RequestMapping("/incidentSearchIndex.html")
    public String incidentSearchIndex(Model model,HttpServletRequest request){
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentSearchIndex";
    }
    
    /**
     * 获取快速查询日期
     * @author chenlong
     * @param request
     * @param response
     */
    @RequestMapping("/getFastSearchDate.html")
    public void getFastSearchDate(HttpServletRequest request,HttpServletResponse response){
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");
        Calendar cal = Calendar.getInstance();
        Map<String, String> dateMap = new HashMap<String, String>();
        String searchType = request.getParameter("searchType");
        if(searchType.equals("one_week")){
            dateMap = DateUtil.getRecentDate(df.format(cal.getTime()), -6, "DAY", 8);
        }else if(searchType.equals("one_month")){
            dateMap = DateUtil.getRecentDate(df.format(cal.getTime()), -1, "MONTH", 8);
        }else if(searchType.equals("three_month")){
            dateMap = DateUtil.getRecentDate(df.format(cal.getTime()), -2, "MONTH", 8);
        }else if(searchType.equals("six_month")){
            dateMap = DateUtil.getRecentDate(df.format(cal.getTime()), -5, "MONTH", 8);
        }else if(searchType.equals("one_year")){
            dateMap = DateUtil.getRecentDate(df.format(cal.getTime()), -1, "YEAR", 8);
        }
        WebUtil.write(response, JsonUtil.map2Json(dateMap));
    }
    
    @RequestMapping("/incidentStatsJump.html")
    public String incidentStatsJump(HttpServletRequest request){
        String statsType = request.getParameter("statsType");
        if(statsType.equals("type")){
            return "forward:/uwyw/stats/uIncidentStats/incidentTypePie.html";
        }else if(statsType.equals("source")){
            return "forward:/uwyw/stats/uIncidentStats/incidentSourcePie.html";
        }else if(statsType.equals("close")){
            return "forward:/uwyw/stats/uIncidentStats/incidentCloseCol.html";
        }else if(statsType.equals("priority")){
            return "forward:/uwyw/stats/uIncidentStats/incidentPriPie.html";
        }else if(statsType.equals("influence")){
            return "forward:/uwyw/stats/uIncidentStats/incidentInfluenceCol.html";
        }else if(statsType.equals("level")){
            return "forward:/uwyw/stats/uIncidentStats/incidentLvPie.html";
        }else if(statsType.equals("response")){
            return "forward:/uwyw/stats/uIncidentStats/incidentResponsePie.html";
        }else if(statsType.equals("deal")){
            return "forward:/uwyw/stats/uIncidentStats/incidentDealPie.html";
        }else if(statsType.equals("happen")){
            return "forward:/uwyw/stats/uIncidentStats/incidentHappendTimeLine.html";
        }
        return "forward:/uwyw/stats/uIncidentStats/incidentStatsIndex.html";
    }
    
    /**
     * 事件类型饼状图
     * @author chenlong
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/incidentTypePie.html")
    public String incidentTypePie(Model model,HttpServletRequest request){
        String startDate = request.getParameter("startDate");
        String endDate = request.getParameter("endDate");
        if(StringUtil.isBlank(startDate)){
            Map dateMap = getInitDateMap();
            startDate =ConvertUtil.obj2Str(dateMap.get("startDate")).replace("-", "");
            endDate = ConvertUtil.obj2Str(dateMap.get("endDate")).replace("-", "");
        }
        String cusId = WebUtil.getUserWywCusId(request);
        Map chartMap = incidentStatisFacade.incidentTypePie("day",cusId,startDate,endDate);
        model.addAttribute("chartJsonStr",JsonUtil.map2Json(chartMap));
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentTypePie";
    }
    
    /**
     * 事件来源饼状图
     * @author chenlong
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/incidentSourcePie.html")
    public String incidentSourcePie(Model model,HttpServletRequest request){
        String startDate = request.getParameter("startDate");
        String endDate = request.getParameter("endDate");
        if(StringUtil.isBlank(startDate)){
            Map dateMap = getInitDateMap();
            startDate =ConvertUtil.obj2Str(dateMap.get("startDate")).replace("-", "");
            endDate = ConvertUtil.obj2Str(dateMap.get("endDate")).replace("-", "");
        }
        String cusId = WebUtil.getUserWywCusId(request);
        
        
        Map chartMap = incidentStatisFacade.incidentSourcePie("day",cusId,startDate,endDate);
        model.addAttribute("chartJsonStr",JsonUtil.map2Json(chartMap));
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentSourcePie";
    }
    
    /**
     * 事件关闭方式柱状图
     * @author chenlong
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/incidentCloseCol.html")
    public String incidentCloseCol(Model model,HttpServletRequest request){
        String startDate = request.getParameter("startDate");
        String endDate = request.getParameter("endDate");
        if(StringUtil.isBlank(startDate)){
            Map dateMap = getInitDateMap();
            startDate =ConvertUtil.obj2Str(dateMap.get("startDate")).replace("-", "");
            endDate = ConvertUtil.obj2Str(dateMap.get("endDate")).replace("-", "");
        }
        String cusId = WebUtil.getUserWywCusId(request);
        
        
        Map chartMap = incidentStatisFacade.incidentCloseCol("day",cusId,startDate,endDate);
        model.addAttribute("chartJsonStr",JsonUtil.map2Json(chartMap));
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentCloseCol";
    }
    
    /**
     * 事件优先级饼图
     * @author chenlong
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/incidentPriPie.html")
    public String incidentPriPie(Model model,HttpServletRequest request){
        String startDate = request.getParameter("startDate");
        String endDate = request.getParameter("endDate");
        if(StringUtil.isBlank(startDate)){
            Map dateMap = getInitDateMap();
            startDate =ConvertUtil.obj2Str(dateMap.get("startDate")).replace("-", "");
            endDate = ConvertUtil.obj2Str(dateMap.get("endDate")).replace("-", "");
        }
        String cusId = WebUtil.getUserWywCusId(request);
        
        
        Map chartMap = incidentStatisFacade.incidentPriPie("day",cusId,startDate,endDate);
        model.addAttribute("chartJsonStr",JsonUtil.map2Json(chartMap));
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentPriPie";
    }
    
    /**
     * 事件影响度柱状图
     * @author chenlong
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/incidentInfluenceCol.html")
    public String incidentInfluenceCol(Model model,HttpServletRequest request){
        String startDate = request.getParameter("startDate");
        String endDate = request.getParameter("endDate");
        if(StringUtil.isBlank(startDate)){
            Map dateMap = getInitDateMap();
            startDate =ConvertUtil.obj2Str(dateMap.get("startDate")).replace("-", "");
            endDate = ConvertUtil.obj2Str(dateMap.get("endDate")).replace("-", "");
        }
        String cusId = WebUtil.getUserWywCusId(request);
        
        
        Map chartMap = incidentStatisFacade.incidentInfluenceCol("day",cusId,startDate,endDate);
        model.addAttribute("chartJsonStr",JsonUtil.map2Json(chartMap));
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentInfluenceCol";
    }
    
    /**
     * 事件服务级别饼图
     * @author chenlong
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/incidentLvPie.html")
    public String incidentLvPie(Model model,HttpServletRequest request){
        String startDate = request.getParameter("startDate");
        String endDate = request.getParameter("endDate");
        if(StringUtil.isBlank(startDate)){
            Map dateMap = getInitDateMap();
            startDate =ConvertUtil.obj2Str(dateMap.get("startDate")).replace("-", "");
            endDate = ConvertUtil.obj2Str(dateMap.get("endDate")).replace("-", "");
        }
        String cusId = WebUtil.getUserWywCusId(request);
        
        
        Map chartMap = incidentStatisFacade.incidentLvPie("day",cusId,startDate,endDate);
        model.addAttribute("chartJsonStr",JsonUtil.map2Json(chartMap));
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentLvPie";
    }
    
    /**
     * 事件响应饼图
     * @author chenlong
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/incidentResponsePie.html")
    public String incidentResponsePie(Model model,HttpServletRequest request){
        String startDate = request.getParameter("startDate");
        String endDate = request.getParameter("endDate");
        if(StringUtil.isBlank(startDate)){
            Map dateMap = getInitDateMap();
            startDate =ConvertUtil.obj2Str(dateMap.get("startDate")).replace("-", "");
            endDate = ConvertUtil.obj2Str(dateMap.get("endDate")).replace("-", "");
        }
        String cusId = WebUtil.getUserWywCusId(request);
        
        
        Map chartMap = incidentStatisFacade.incidentResponsePie("day",cusId,startDate,endDate);
        model.addAttribute("chartJsonStr",JsonUtil.map2Json(chartMap));
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentResponsePie";
    }
    
    /**
     * 事件处理饼图
     * @author chenlong
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/incidentDealPie.html")
    public String incidentDealPie(Model model,HttpServletRequest request){
        String startDate = request.getParameter("startDate");
        String endDate = request.getParameter("endDate");
        if(StringUtil.isBlank(startDate)){
            Map dateMap = getInitDateMap();
            startDate =ConvertUtil.obj2Str(dateMap.get("startDate")).replace("-", "");
            endDate = ConvertUtil.obj2Str(dateMap.get("endDate")).replace("-", "");
        }
        String cusId = WebUtil.getUserWywCusId(request);
        
        
        Map chartMap = incidentStatisFacade.incidentDealPie("day",cusId,startDate,endDate);
        model.addAttribute("chartJsonStr",JsonUtil.map2Json(chartMap));
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentDealPie";
    }
    
    /**
     * 事件发生时间线形图
     * @author chenlong
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/incidentHappendTimeLine.html")
    public String incidentHappendTimeLine(Model model,HttpServletRequest request){
        String startDate = request.getParameter("startDate");
        String endDate = request.getParameter("endDate");
        if(StringUtil.isBlank(startDate)){
            Map dateMap = getInitDateMap();
            startDate =ConvertUtil.obj2Str(dateMap.get("startDate")).replace("-", "");
            endDate = ConvertUtil.obj2Str(dateMap.get("endDate")).replace("-", "");
        }
        String cusId = WebUtil.getUserWywCusId(request);
        
        
        Map chartMap = incidentStatisFacade.incidentHappendTimeLine("day",cusId,startDate,endDate);
        model.addAttribute("chartJsonStr",JsonUtil.map2Json(chartMap));
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentHappendTimeLine";
    }
    
    public Map getInitDateMap(){
        Calendar cal = Calendar.getInstance();
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");
        Map<String, String> dateMap = new HashMap<String, String>();
        dateMap = DateUtil.getRecentDate(df.format(cal.getTime()), -6, "DAY", 8);
        return dateMap;
    }
    
    @RequestMapping("/incidentStatsReportJump.html")
    public String incidentStatsReportJump(HttpServletRequest request){
        String statsType = request.getParameter("statsType");
        if(statsType.equals("cus")){
            return "forward:/uwyw/stats/uIncidentStats/uincidentTotalChart.html";
        }else if(statsType.equals("detail")){
            return "forward:/uwyw/stats/uIncidentStats/uincidentStatis.html";
        }else if(statsType.equals("dcl")){
            return "forward:/uwyw/stats/uIncidentStats/uincidentDclStatis.html";
        }else if(statsType.equals("close")){
            return "forward:/uwyw/stats/uIncidentStats/uincidentCloseStatis.html";
        }else if(statsType.equals("type")){
            return "forward:/uwyw/stats/uIncidentStats/uincidentTypeStatis.html";
        }else if(statsType.equals("dealtime")){
            return "forward:/uwyw/stats/uIncidentStats/uincidentDealTimeStatis.html";
        }else if(statsType.equals("deal")){
            return "forward:/uwyw/stats/uIncidentStats/uincidentDealStatis.html";
        }
        return "forward:/uwyw/stats/uIncidentStats/incidentStatsIndex.html";
    }
    
    @RequestMapping("uincidentTotalChart.html")
    public ModelAndView uincidentTotalChart(HttpServletRequest request,HttpServletResponse response) {
        ModelAndView modelAndView = new ModelAndView("/business/wechat/uwyw/stats/uIncidentStats/uincidentTotalChart");
        //获取当前session中的客户信息
        String cusId = WebUtil.getUserWywCusId(request);
        String beginTime = request.getParameter("beginDay");
        String endTime = request.getParameter("endDay");
        if(!StringUtil.isEmpty(cusId)){
            Map resMap = incidentStatisFacade.incidentTotalChart(cusId,"",beginTime,endTime);
            SC_PARTNER_CUSTOMER_INFO cus = new SC_PARTNER_CUSTOMER_INFO(cusId).getInstanceById();
            List<Map> typeList = (List<Map>)resMap.get("typeList"); 
            List<Map> sourceList = (List<Map>)resMap.get("sourceList");
            List<Map> closeList = (List<Map>)resMap.get("closeList");
            List<Map> priList = (List<Map>)resMap.get("priList");
            List<Map> effectList = (List<Map>)resMap.get("effectList");
            List<Map> levelList = (List<Map>)resMap.get("levelList");
            List<Map> timeoutList = (List<Map>)resMap.get("timeoutList");
            List<Map> resolveList = (List<Map>)resMap.get("resolveList");
            List<Map> stateList = (List<Map>)resMap.get("stateList");
            List<Map> resList = (List<Map>)resMap.get("resList");
            modelAndView.addObject("typeList",typeList);
            modelAndView.addObject("sourceList",sourceList);
            modelAndView.addObject("closeList",closeList);
            modelAndView.addObject("priList",priList);
            modelAndView.addObject("effectList",effectList);
            modelAndView.addObject("levelList",levelList);
            modelAndView.addObject("timeoutList",timeoutList);
            modelAndView.addObject("resolveList",resolveList);
            modelAndView.addObject("stateList",stateList);
            modelAndView.addObject("resList",resList);
            modelAndView.addObject("cusName",cus.getShort_name());
            modelAndView.addObject("beginTime",DateUtil.format("yyyy/MM/dd", beginTime));
            modelAndView.addObject("endTime",DateUtil.format("yyyy/MM/dd", endTime));
        }
        
        return modelAndView;
    }
    
    /**
     * 查询条件
     * @param request
     * @return
     */
    @RequestMapping("/incidentSearchReport.html")
    public String incidentSearchReport(Model model,HttpServletRequest request){
        return "/business/wechat/uwyw/stats/uIncidentStats/incidentSearchReport";
    }
    
    /**
     * 办公网络保修统计
     * @param request
     * @return
     */
    @RequestMapping("uincidentStatis.html")
    public ModelAndView uincidentStatis(HttpServletRequest request){
        ModelAndView modelAndView=new ModelAndView("/business/wechat/uwyw/stats/uIncidentStats/uincidentStatis");
        String cusId = WebUtil.getUserWywCusId(request);
        String beginTime = request.getParameter("beginDay");
        String endTime = request.getParameter("endDay");
        String sub_customer_id = request.getParameter("sub_customer_id");
        if(!StringUtil.isEmpty(cusId)){
            List<Map> incidentList=incidentStatisFacade.queryIncidentStatis(cusId,sub_customer_id,beginTime,endTime,"","","");
            modelAndView.addObject("incidentList",incidentList);
            SC_PARTNER_CUSTOMER_INFO cus = new SC_PARTNER_CUSTOMER_INFO(cusId).getInstanceById();
            modelAndView.addObject("beginTime",DateUtil.format("yyyy/MM/dd", request.getParameter("beginDay")));
            modelAndView.addObject("endTime",DateUtil.format("yyyy/MM/dd", request.getParameter("endDay")));
            modelAndView.addObject("cusName",cus.getShort_name());
        }
        return modelAndView;
    }
    
    /**
     * 跳转到事件达成率信息页面
     */
    @RequestMapping("uincidentDclStatis.html")
    public ModelAndView uincidentDclStatis(HttpServletRequest request) {
        ModelAndView modelAndView = new ModelAndView("/business/wechat/uwyw/stats/uIncidentStats/uincidentDclStatis");
        String cusId = WebUtil.getUserWywCusId(request);
        String beginTime = request.getParameter("beginTime");
        String endTime = request.getParameter("endTime");
        String subCustomerId = request.getParameter("sub_customer_id");
        if(!StringUtil.isEmpty(cusId)){
            List<Map> reports = incidentStatisFacade.queryIncidentDclStatis(cusId,subCustomerId,beginTime,endTime);
            SC_PARTNER_CUSTOMER_INFO cus = new SC_PARTNER_CUSTOMER_INFO(cusId).getInstanceById();
            modelAndView.addObject("reports", reports);
            modelAndView.addObject("beginTime",DateUtil.format("yyyy/MM/dd", request.getParameter("beginTime")));
            modelAndView.addObject("endTime",DateUtil.format("yyyy/MM/dd", request.getParameter("endTime")));
            modelAndView.addObject("cusName",cus.getShort_name());
        }
        return modelAndView;
    }
    
    @RequestMapping("uincidentCloseStatis.html")
    public String uincidentCloseStatis(Model model,HttpServletRequest request,HttpServletResponse response){
        String cusId = WebUtil.getUserWywCusId(request);
        String beginDay = request.getParameter("beginDay");
        String endDay = request.getParameter("endDay");
        if(!StringUtil.isEmpty(beginDay)){
            Map report = incidentStatisFacade.queryCloseReport(cusId,beginDay,endDay);
            model.addAttribute("report", report);
            
            SC_PARTNER_CUSTOMER_INFO cus = new SC_PARTNER_CUSTOMER_INFO(cusId).getInstanceById();
            model.addAttribute("beginTime",DateUtil.format("yyyy/MM/dd", request.getParameter("beginDay")));
            model.addAttribute("endTime",DateUtil.format("yyyy/MM/dd", request.getParameter("endDay")));
            model.addAttribute("cusName",cus.getShort_name());
        }
        return "/business/wechat/uwyw/stats/uIncidentStats/uincidentCloseStatis";
    }
    
    @RequestMapping("uincidentTypeStatis.html")
    public String uincidentTypeStatis(Model model,HttpServletRequest request,HttpServletResponse response){
        String cusId = WebUtil.getUserWywCusId(request);
        String beginDay = request.getParameter("beginDay");
        String endDay = request.getParameter("endDay");
        if(!StringUtil.isEmpty(beginDay)){
            Map report = incidentStatisFacade.queryTypeReport(cusId,beginDay,endDay);
            List<List> dataList = (List)report.get("dataList");
            if(dataList.size() > 0){
                
                for(List<String> list:dataList){
                    int hj = 0;
                    for(int i = 0 ;i < list.size();i++){
                        if(i != 0){
                            hj = hj + ConvertUtil.obj2Int(list.get(i));
                        }
                    }
                    list.add(ConvertUtil.obj2StrBlank(hj));
                }
            }
            
            model.addAttribute("report", report);
            
            SC_PARTNER_CUSTOMER_INFO cus = new SC_PARTNER_CUSTOMER_INFO(cusId).getInstanceById();
            model.addAttribute("beginTime",DateUtil.format("yyyy/MM/dd", request.getParameter("beginDay")));
            model.addAttribute("endTime",DateUtil.format("yyyy/MM/dd", request.getParameter("endDay")));
            model.addAttribute("cusName",cus.getShort_name());
        }
        return "/business/wechat/uwyw/stats/uIncidentStats/uincidentTypeStatis";
    }
    
    @RequestMapping("uincidentDealTimeStatis.html")
    public String uincidentDealTimeStatis(Model model,HttpServletRequest request,HttpServletResponse response){
        String cusId = WebUtil.getUserWywCusId(request);
        String beginDay = request.getParameter("beginDay");
        String endDay = request.getParameter("endDay");
        if(!StringUtil.isEmpty(beginDay)){
            Map report = incidentStatisFacade.queryDealTimeReport(cusId,beginDay,endDay);
            model.addAttribute("report", report);
            
            SC_PARTNER_CUSTOMER_INFO cus = new SC_PARTNER_CUSTOMER_INFO(cusId).getInstanceById();
            model.addAttribute("beginTime",DateUtil.format("yyyy/MM/dd", request.getParameter("beginDay")));
            model.addAttribute("endTime",DateUtil.format("yyyy/MM/dd", request.getParameter("endDay")));
            model.addAttribute("cusName",cus.getShort_name());
        }
        return "/business/wechat/uwyw/stats/uIncidentStats/uincidentDealTimeStatis";
    }
    
    @RequestMapping("uincidentDealStatis.html")
    public String uincidentDealStatis(Model model,HttpServletRequest request,HttpServletResponse response){
        String cusId = WebUtil.getUserWywCusId(request);
        String beginDay = request.getParameter("beginDay");
        String endDay = request.getParameter("endDay");
        if(!StringUtil.isEmpty(beginDay)){
            Map report = incidentStatisFacade.queryDealSituationReport(cusId,beginDay,endDay);
            model.addAttribute("report", report);
            SC_PARTNER_CUSTOMER_INFO cus = new SC_PARTNER_CUSTOMER_INFO(cusId).getInstanceById();
            model.addAttribute("beginTime",DateUtil.format("yyyy/MM/dd", request.getParameter("beginDay")));
            model.addAttribute("endTime",DateUtil.format("yyyy/MM/dd", request.getParameter("endDay")));
            model.addAttribute("cusName",cus.getShort_name());
        }
        return "/business/wechat/uwyw/stats/uIncidentStats/uincidentDealStatis";
    }
}