提交 13540e32 authored 作者: 000516's avatar 000516

根据登录人判定是否存在经销商人客关系

上级 ba26f10f
package com.sfa.operation.controller.qc.query;
import com.sfa.common.security.utils.SecurityUtils;
import com.sfa.operation.service.qc.IQinceMarketEmployeeService;
import com.sfa.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author : liqiulin
* @date : 2025-10-29 13
* @describe :勤策 - 经销商人客关系
*/
@RestController
@RequestMapping("/qc/market/emp")
public class QcMarketEmpQuery {
@Autowired
private IQinceMarketEmployeeService qinceMarketEmployeeService;
@GetMapping
public boolean query() {
// 是区域销售部的人员,查看人客关系
LoginUser loginUser = SecurityUtils.getLoginUser();
String empNo = loginUser.getUsername();
List<String> dealerCodes = qinceMarketEmployeeService.checkPermission(empNo);
return !dealerCodes.isEmpty();
}
}
...@@ -24,7 +24,7 @@ public class SalesApRequest { ...@@ -24,7 +24,7 @@ public class SalesApRequest {
*/ */
private String salesMonth; private String salesMonth;
/** /**
* 经销商编码(精准)/名称(模糊) * 经销商编码/名称(模糊)
*/ */
private String dealerCN; private String dealerCN;
private String cityManager; private String cityManager;
...@@ -33,7 +33,7 @@ public class SalesApRequest { ...@@ -33,7 +33,7 @@ public class SalesApRequest {
*/ */
private String deptName; private String deptName;
/** /**
* 门店编码(精准)/名称(模糊) * 门店编码/名称(模糊)
*/ */
private String storeCN; private String storeCN;
private String nickName; private String nickName;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论