Commit 4fc39f79 by jx-art

对接供应商模糊查询

parent 7ab7f19a
package com.netease.mail.yanxuan.change.integration.flow.supplier;
import com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierInfoRsp;
import com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse;
import com.netease.yanxuan.missa.client.annotation.MissaClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
* @author WangJiaXiang
* @date 2022/12/7/007$
*/
@Service
@MissaClient(serviceCode = "yanxuan-supplier-api")
public interface FlowRpcSupplierService {
/**
* 邮件通知接口
* @return
*/
@GetMapping("/api/supplier/getSupplierInfo.json")
AjaxResponse<List<SupplierInfoRsp>> getSupplierInfo(@RequestParam(name = "name") String name,
@RequestParam(name = "uid") String uid,
@RequestParam(name = "fuzzySearchText") String fuzzySearchText);
}
package com.netease.mail.yanxuan.change.integration.flow.supplier.rsp;
import lombok.Data;
/**
* @author WangJiaXiang
* @date 2022/12/7/007$
*/
@Data
public class SupplierInfoRsp {
private String supplierId;
private String supplierName;
private String email;
private String smsPhone;
private Integer isSupportCustomsClearance;
}
......@@ -10,9 +10,11 @@ import java.util.ArrayList;
import java.util.List;
import com.netease.mail.yanxuan.change.biz.service.impl.InteriorChangeConfigServiceImpl;
import com.netease.mail.yanxuan.change.integration.flow.supplier.FlowRpcSupplierService;
import com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierGoodsInfoReq;
import com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierRelatedUserReq;
import com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierGoodsInfoRsp;
import com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierInfoRsp;
import com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierUserRsp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -55,26 +57,13 @@ public class TestController {
}
@Autowired
private FlowRpcSupplierSendService supplierSendService;
private FlowRpcSupplierService rpcSupplierService;
@PostMapping("/test1")
public String test1(@RequestBody List<Long> itemIds){
return supplierSendService.queryGoodsPurchase(itemIds);
@GetMapping("/test1")
public AjaxResponse<List<SupplierInfoRsp>> test1(@RequestParam(name = "fuzzySearchText") String fuzzySearchText){
return rpcSupplierService.getSupplierInfo("aa","wb.mulongfei@mesg.corp.netease.com",fuzzySearchText);
}
@PostMapping("/test2")
public AjaxResponse<List<SupplierUserRsp>> test2(@RequestBody SupplierRelatedUserReq req){
return supplierSendService.querySupplierRelatedUser(req);
}
@PostMapping("/test3")
public AjaxResponse<List<SupplierSimpleRsp>> test3(@RequestBody SupplierSearchRemoteReq req){
return supplierSendService.queryByConditionForQc(req);
}
@PostMapping("/test4")
public AjaxResponse<List<SupplierGoodsInfoRsp>> test4(@RequestBody SupplierGoodsInfoReq req){
return supplierSendService.SupplierGoodsInfoBySupplier(req);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment