|
@@ -31,8 +31,7 @@ public class ChannelCustomerStatisticsController extends BaseController {
|
31
|
31
|
|
32
|
32
|
@ApiOperation(value = "wx-龙虎榜排名数据", notes = "wx-龙虎榜排名数据")
|
33
|
33
|
@GetMapping(value="/wx/ranklist")
|
34
|
|
- public ResponseBean getRanklist(@RequestParam("buildingId") String buildingId,
|
35
|
|
- @RequestParam(value = "startDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime startDate,
|
|
34
|
+ public ResponseBean getRanklist(@RequestParam(value = "startDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime startDate,
|
36
|
35
|
@RequestParam(value = "endDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime endDate,
|
37
|
36
|
@RequestHeader("authorization") String token, HttpServletRequest request){
|
38
|
37
|
ResponseBean responseBean = new ResponseBean();
|
|
@@ -46,7 +45,6 @@ public class ChannelCustomerStatisticsController extends BaseController {
|
46
|
45
|
|
47
|
46
|
// 构造参数
|
48
|
47
|
StatisticsDTO statisticsDTo = new StatisticsDTO();
|
49
|
|
- statisticsDTo.setBuildingId(buildingId);
|
50
|
48
|
statisticsDTo.setStartDate(startDate);
|
51
|
49
|
statisticsDTo.setEndDate(endDate);
|
52
|
50
|
statisticsDTo.setOrgId(orgId);
|
|
@@ -56,8 +54,7 @@ public class ChannelCustomerStatisticsController extends BaseController {
|
56
|
54
|
|
57
|
55
|
@ApiOperation(value = "wx-销售简报", notes = "wx-销售简报")
|
58
|
56
|
@GetMapping(value="/wx/briefing")
|
59
|
|
- public ResponseBean getBriefing(@RequestParam("buildingId") String buildingId,
|
60
|
|
- @RequestParam(value = "startDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime startDate,
|
|
57
|
+ public ResponseBean getBriefing(@RequestParam(value = "startDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime startDate,
|
61
|
58
|
@RequestParam(value = "endDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime endDate,
|
62
|
59
|
@RequestHeader("authorization") String token, HttpServletRequest request){
|
63
|
60
|
ResponseBean responseBean = new ResponseBean();
|
|
@@ -71,7 +68,6 @@ public class ChannelCustomerStatisticsController extends BaseController {
|
71
|
68
|
|
72
|
69
|
// 构造参数
|
73
|
70
|
StatisticsDTO statisticsDTo = new StatisticsDTO();
|
74
|
|
- statisticsDTo.setBuildingId(buildingId);
|
75
|
71
|
statisticsDTo.setStartDate(startDate);
|
76
|
72
|
statisticsDTo.setEndDate(endDate);
|
77
|
73
|
statisticsDTo.setOrgId(orgId);
|
|
@@ -79,13 +75,12 @@ public class ChannelCustomerStatisticsController extends BaseController {
|
79
|
75
|
return channelCustomerStatisticsService.getBriefing(statisticsDTo);
|
80
|
76
|
}
|
81
|
77
|
|
82
|
|
- @ApiOperation(value = "wx-销售简报", notes = "wx-销售简报")
|
|
78
|
+ @ApiOperation(value = "wx-销售简报折线图", notes = "wx-销售简报折线图")
|
83
|
79
|
@GetMapping(value="/wx/briefing/detail")
|
84
|
|
- public ResponseBean getBriefingDetail(@RequestParam("buildingId") String buildingId,
|
85
|
|
- @RequestParam(value = "startDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime startDate,
|
86
|
|
- @RequestParam(value = "endDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime endDate,
|
|
80
|
+ public ResponseBean getBriefingDetail(@RequestParam(value = "startDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime startDate,
|
|
81
|
+ @RequestParam(value = "endDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime endDate, @RequestParam(value = "customerType") String customerType,
|
87
|
82
|
@RequestParam(value = "type") String type,
|
88
|
|
- @RequestHeader("authorization") String token, HttpServletRequest request){
|
|
83
|
+ @RequestHeader("authorization") String token,HttpServletRequest request){
|
89
|
84
|
ResponseBean responseBean = new ResponseBean();
|
90
|
85
|
String openid = getOpenId(request);
|
91
|
86
|
Integer orgId = getOrgId(request);
|
|
@@ -97,12 +92,12 @@ public class ChannelCustomerStatisticsController extends BaseController {
|
97
|
92
|
|
98
|
93
|
// 构造参数
|
99
|
94
|
StatisticsDTO statisticsDTo = new StatisticsDTO();
|
100
|
|
- statisticsDTo.setBuildingId(buildingId);
|
101
|
95
|
statisticsDTo.setStartDate(startDate);
|
102
|
96
|
statisticsDTo.setEndDate(endDate);
|
103
|
97
|
statisticsDTo.setOrgId(orgId);
|
104
|
98
|
statisticsDTo.setPersonId(person.getPersonId());
|
105
|
99
|
statisticsDTo.setType(type);
|
|
100
|
+ statisticsDTo.setCustomerType(customerType);
|
106
|
101
|
return channelCustomerStatisticsService.getBriefingDetail(statisticsDTo);
|
107
|
102
|
}
|
108
|
103
|
}
|