md
This commit is contained in:
parent
0e092d7a9e
commit
c7be4092cd
@ -0,0 +1,85 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCountryController.java
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 国家 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.apiweb;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.xdadan.erp.common.annotation.filter.jackson.JacksonFilter;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.entity.SysUser;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.utils.BarcodeUtils;
|
||||
import com.xdadan.erp.system.domain.SysPost;
|
||||
import com.xdadan.erp.system.service.ISysPostService;
|
||||
import com.xdadan.erp.system.service.ISysUserService;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.OutputStream;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 工作人员用户Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/apiweb/emisStaff")
|
||||
public class StaffController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISysUserService userService;
|
||||
|
||||
@Autowired
|
||||
private ISysPostService postService;
|
||||
|
||||
|
||||
/**
|
||||
* 回款联系人
|
||||
* @param searchValue
|
||||
* @return
|
||||
*/
|
||||
@JacksonFilter(include= {"empName"},value= SysUser.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
|
||||
@GetMapping("/getPayeeList")
|
||||
public TableDataInfo getPayeeList(String searchValue)
|
||||
{
|
||||
SysUser queryUser = new SysUser();
|
||||
queryUser.setEmpName(searchValue);
|
||||
startPage();
|
||||
List<SysUser> list = userService.selectPayeeList(queryUser);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 销售联系人
|
||||
* @param searchValue
|
||||
* @return
|
||||
*/
|
||||
@JacksonFilter(include= {"empName"},value= SysUser.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
|
||||
@GetMapping("/getSalemanList")
|
||||
public TableDataInfo getSalesmenList(String searchValue)
|
||||
{
|
||||
SysUser queryUser = new SysUser();
|
||||
queryUser.setEmpName(searchValue);
|
||||
startPage();
|
||||
List<SysUser> list = userService.selectSalesmenList(queryUser);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user