This commit is contained in:
linfso 2024-12-20 13:31:42 +08:00
parent 5ab9a3c7b4
commit d1c4b8c4cc
2 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,62 @@
/**
* @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.oms.web;
import cn.hutool.core.collection.CollectionUtil;
import com.xdadan.erp.oms.common.annotation.filter.jackson.JacksonFilter;
import com.xdadan.erp.oms.common.core.controller.BaseController;
import com.xdadan.erp.oms.common.core.domain.AjaxResult;
import com.xdadan.erp.oms.common.core.page.TableDataInfo;
import com.xdadan.erp.oms.service.svc.IRpcStaffSvc;
import com.xdadan.erp.oms.service.svc.IRpcWaybillSvc;
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("/oms2c/emisStaff")
public class Oms2cStaffController extends BaseController
{
@Autowired
private IRpcStaffSvc iRpcStaffSvc;
/**
* 销售联系人
* @param searchValue
* @return
*/
@GetMapping("/getSalemanList")
public AjaxResult getSalesmenList(String searchValue)
{
return iRpcStaffSvc.getSalesmenList(searchValue);
}
}

View File

@ -0,0 +1,26 @@
package com.xdadan.erp.oms.service.svc;
import com.xdadan.erp.oms.common.core.domain.AjaxResult;
import com.xdadan.erp.oms.domain.EmisWaybill;
import com.xdadan.erp.oms.domain.vo.WaybillOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(name = "IRpcStaffSvc",url = "${service.provider.url}",configuration = {FeignErrorDecoder.class})
public interface IRpcStaffSvc {
/**
* 获取销售联系人
* @param searchValue
* @return
*/
@PostMapping(value = "/apiweb/emisStaff/getSalesmenList")
public AjaxResult getSalesmenList(String searchValue);
}