From d1c4b8c4cc844c91ea634c715e759a21e01deb1d Mon Sep 17 00:00:00 2001 From: linfso Date: Fri, 20 Dec 2024 13:31:42 +0800 Subject: [PATCH] md --- .../erp/oms/web/Oms2cStaffController.java | 62 +++++++++++++++++++ .../erp/oms/service/svc/IRpcStaffSvc.java | 26 ++++++++ 2 files changed, 88 insertions(+) create mode 100644 emis-oms-biz-web/src/main/java/com/xdadan/erp/oms/web/Oms2cStaffController.java create mode 100644 emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/svc/IRpcStaffSvc.java diff --git a/emis-oms-biz-web/src/main/java/com/xdadan/erp/oms/web/Oms2cStaffController.java b/emis-oms-biz-web/src/main/java/com/xdadan/erp/oms/web/Oms2cStaffController.java new file mode 100644 index 0000000..075772c --- /dev/null +++ b/emis-oms-biz-web/src/main/java/com/xdadan/erp/oms/web/Oms2cStaffController.java @@ -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:

国家 控制器

+ */ + +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); + } + + + +} diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/svc/IRpcStaffSvc.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/svc/IRpcStaffSvc.java new file mode 100644 index 0000000..b6bf427 --- /dev/null +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/svc/IRpcStaffSvc.java @@ -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); + + + +} \ No newline at end of file