|
|
@@ -1,63 +0,0 @@
|
|
|
-package com.fs.company.controller;
|
|
|
-
|
|
|
-import com.fs.common.core.controller.BaseController;
|
|
|
-import com.fs.common.core.domain.R;
|
|
|
-import com.fs.common.core.page.TableDataInfo;
|
|
|
-import com.fs.qw.dto.SopCompanyUserTaskDto;
|
|
|
-import com.fs.qw.service.IFsSopCompanyUserTaskService;
|
|
|
-import com.fs.qw.vo.SopCompanyUserTaskVo;
|
|
|
-import org.apache.commons.collections4.CollectionUtils;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-import static com.fs.his.utils.PhoneUtil.decryptPhone;
|
|
|
-
|
|
|
-/**
|
|
|
- * 销售、医生sop总览统计
|
|
|
- *
|
|
|
- * @author fs
|
|
|
- * @date 2021-03-22
|
|
|
- */
|
|
|
-@RestController
|
|
|
-@RequestMapping("/sop/company/statistics")
|
|
|
-public class SopCompanyStatsOverviewController extends BaseController {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private IFsSopCompanyUserTaskService fsSopCompanyUserTaskService;
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 查询销售处理sop任务列表
|
|
|
- */
|
|
|
- @PreAuthorize("@ss.hasPermi('sop:statistics:companyStatsOverviewList')")
|
|
|
- @GetMapping("/companyStatsOverviewList")
|
|
|
- public TableDataInfo companyStatsOverviewList(SopCompanyUserTaskDto queryDto)
|
|
|
- {
|
|
|
- startPage();
|
|
|
- List<SopCompanyUserTaskVo> list = fsSopCompanyUserTaskService.statsOverviewAllList(queryDto);
|
|
|
- return getDataTable(list);
|
|
|
- }
|
|
|
- /**
|
|
|
- * 销售端查询解密后的客户联系电话
|
|
|
- * */
|
|
|
- @GetMapping("/getUserPhone/{id}")
|
|
|
- public R getUserPhone(@PathVariable("id") Long id){
|
|
|
- SopCompanyUserTaskDto queryDto=new SopCompanyUserTaskDto();
|
|
|
- queryDto.setId(id);
|
|
|
- List<SopCompanyUserTaskVo> list = fsSopCompanyUserTaskService.statsOverviewAllList(queryDto);
|
|
|
- if (CollectionUtils.isNotEmpty(list)&&list.size()==1){
|
|
|
- String userPhone=list.get(0).getPhone();
|
|
|
- if (userPhone!=null&&userPhone.length()>11){
|
|
|
- userPhone=decryptPhone(userPhone);
|
|
|
- }
|
|
|
- return R.ok().put("userPhone",userPhone);
|
|
|
- }
|
|
|
- return R.ok().put("userPhone","");
|
|
|
- }
|
|
|
-}
|