src/main/java/com/nathan/crm/controller/ReportController.java

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.nathan.crm.controller;

import com.nathan.base.BaseController;
import com.nathan.crm.query.CustomerQuery;
import com.nathan.crm.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("report")
public class ReportController extends BaseController {

    @Autowired
    private ReportService reportService;

    @RequestMapping("index/{type}")
    public String index(@PathVariable("type") Integer type){
        switch (type){
            case 0:
                return "report/customer_contri";
            case 1:
                return "report/customer_make";
            case 2:
                return "report/customer_serve";
            case 3:
                return "report/customer_loss";
            default:
                return "";
        }
    }

    /**
     * 查询客户贡献
     * @param customerQuery
     * @return
     */
    @RequestMapping("queryCustomerContributionByParams")
    @ResponseBody
    public Map<String,Object> queryCustomerContribution(CustomerQuery customerQuery){
        return reportService.queryCustomerContribution(customerQuery);
    }

    /**
     * 柱状图:查询客户构成(各个级别的客户的数量)
     * @return
     */
    @RequestMapping("countCustomerMake")
    @ResponseBody
    public Map<String,Object> countCustomerLevel(){
        return reportService.countCustomerLevel();
    }

    @RequestMapping("countCustomerMake02")
    @ResponseBody
后面还有 5 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。