|
@@ -1,41 +1,27 @@
|
1
|
1
|
package com.huiju.estateagents.controller;
|
2
|
2
|
|
3
|
|
-import com.alibaba.fastjson.JSONObject;
|
4
|
|
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
5
|
3
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
6
|
4
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
7
|
5
|
import com.huiju.estateagents.base.BaseController;
|
8
|
6
|
import com.huiju.estateagents.base.ResponseBean;
|
9
|
|
-import io.swagger.annotations.ApiOperation;
|
10
|
|
-import com.huiju.estateagents.common.JWTUtils;
|
11
|
|
-import com.huiju.estateagents.common.StringUtils;
|
12
|
|
-import com.huiju.estateagents.entity.TaBuildingReport;
|
13
|
7
|
import com.huiju.estateagents.entity.TaChannel;
|
14
|
|
-import com.huiju.estateagents.entity.TaPerson;
|
15
|
8
|
import com.huiju.estateagents.mapper.TaChannelMapper;
|
16
|
9
|
import com.huiju.estateagents.service.ITaPersonService;
|
17
|
10
|
import com.huiju.estateagents.service.TaChannelService;
|
18
|
11
|
import io.swagger.annotations.Api;
|
19
|
12
|
import io.swagger.annotations.ApiImplicitParam;
|
20
|
13
|
import io.swagger.annotations.ApiImplicitParams;
|
21
|
|
-import org.apache.http.HttpRequest;
|
|
14
|
+import io.swagger.annotations.ApiOperation;
|
22
|
15
|
import org.slf4j.Logger;
|
23
|
16
|
import org.slf4j.LoggerFactory;
|
24
|
17
|
import org.springframework.beans.factory.annotation.Autowired;
|
25
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
26
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
27
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
28
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
29
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
30
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
31
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
18
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
19
|
+import org.springframework.web.bind.annotation.*;
|
32
|
20
|
|
33
|
21
|
import javax.servlet.http.HttpServletRequest;
|
34
|
|
-
|
35
|
|
-import java.time.LocalDateTime;
|
|
22
|
+import java.time.LocalDate;
|
36
|
23
|
import java.util.HashMap;
|
37
|
24
|
import java.util.List;
|
38
|
|
-import java.util.stream.Collectors;
|
39
|
25
|
|
40
|
26
|
|
41
|
27
|
/**
|
|
@@ -260,4 +246,20 @@ public class TaChannelController extends BaseController {
|
260
|
246
|
ResponseBean taPerson = taPersonService.InviteClientsList(id,phone,pageNum,pageSize);
|
261
|
247
|
return taPerson;
|
262
|
248
|
}
|
|
249
|
+
|
|
250
|
+ /**
|
|
251
|
+ * 渠道引进客户统计
|
|
252
|
+ * @return
|
|
253
|
+ */
|
|
254
|
+ @GetMapping(value = "/admin/channel/introductionList")
|
|
255
|
+ public ResponseBean getChannelIntroductionList(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
256
|
+ @RequestParam(value = "pageSize", defaultValue = "10")Integer pageSize,
|
|
257
|
+ @RequestParam(value = "startDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDate startDate,
|
|
258
|
+ @RequestParam(value = "endDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDate endDate,
|
|
259
|
+ @RequestParam(value = "channelType", required = false)String channelType,
|
|
260
|
+ @RequestParam(value = "buildingId", required = false)String buildingId,
|
|
261
|
+ @RequestParam(value = "channelId") Integer channelId,
|
|
262
|
+ HttpServletRequest request) {
|
|
263
|
+ return taChannelService.getChannelIntroductionList(pageNum, pageSize, getOrgId(request), startDate, endDate, channelType, buildingId, channelId);
|
|
264
|
+ }
|
263
|
265
|
}
|