src/main/java/com/nathan/crm/controller/CustomerServeController.java
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.nathan.crm.controller;
import com.nathan.base.BaseController;
import com.nathan.base.ResultInfo;
import com.nathan.crm.query.CustomerServeQuery;
import com.nathan.crm.service.CustomerServeService;
import com.nathan.crm.utils.LoginUserUtil;
import com.nathan.crm.vo.CustomerServe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
@Controller
@RequestMapping("customer_serve")
public class CustomerServeController extends BaseController {
@Autowired
private CustomerServeService customerServeService;
/**
* 根据type跳转到不同页面
* @param type
* @return
*/
@RequestMapping("index/{type}")
public String index(@PathVariable("type") Integer type){
switch (type){
case 1:
return "customerServe/customer_serve";
case 2:
return "customerServe/customer_serve_assign";
case 3:
return "customerServe/customer_serve_proce";
case 4:
return "customerServe/customer_serve_feed_back";
case 5:
return "customerServe/customer_serve_archive";
default:
return "";
}
}
@RequestMapping("list")
@ResponseBody
public Map<String,Object> list(CustomerServeQuery customerServeQuery, Integer flag, HttpServletRequest request){
// 判断是否是服务处理
if(flag != null && flag == 1){
// 从cookie中获取当前登录用户id
int assigner = LoginUserUtil.releaseUserIdFromCookie(request);
customerServeQuery.setAssigner(assigner);
}
return customerServeService.queryByParamsForTable(customerServeQuery);
}
/**
后面还有 70 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。