|
@@ -2,11 +2,17 @@ package com.fs.company.controller.qw;
|
|
|
|
|
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
|
|
+import com.fs.common.core.page.TableDataInfo;
|
|
|
|
|
+import com.fs.common.utils.StringUtils;
|
|
|
|
|
+import com.fs.qw.dto.SopCompanyUserTaskDto;
|
|
|
import com.fs.qw.service.IFsSopCompanyUserTaskService;
|
|
import com.fs.qw.service.IFsSopCompanyUserTaskService;
|
|
|
|
|
+import com.fs.qw.vo.SopCompanyUserTaskVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 销售sop任务统计Controller
|
|
* 销售sop任务统计Controller
|
|
@@ -35,4 +41,22 @@ public class FsSopCompanyUserTaskStatsController extends BaseController
|
|
|
public AjaxResult getLast7DaysTrend() {
|
|
public AjaxResult getLast7DaysTrend() {
|
|
|
return AjaxResult.success(fsSopCompanyUserTaskService.getTaskTrendLast7Days());
|
|
return AjaxResult.success(fsSopCompanyUserTaskService.getTaskTrendLast7Days());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询销售处理sop任务列表
|
|
|
|
|
+ */
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('qw:companyUserTaskStatsOverview:list')")
|
|
|
|
|
+ @GetMapping("/statsOverviewList")
|
|
|
|
|
+ public TableDataInfo list(SopCompanyUserTaskDto queryDto)
|
|
|
|
|
+ {
|
|
|
|
|
+ startPage();
|
|
|
|
|
+ List<SopCompanyUserTaskVo> list = fsSopCompanyUserTaskService.statsOverviewList(queryDto);
|
|
|
|
|
+ for (SopCompanyUserTaskVo vo : list) {
|
|
|
|
|
+ if (StringUtils.isNotBlank(vo.getPhone())){
|
|
|
|
|
+ vo.setPhone(vo.getPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ return getDataTable(list);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|