Commit 8140bb03 by jx-art

供应商模糊查询测试

parent d7ef0865
......@@ -9,6 +9,10 @@ package com.netease.mail.yanxuan.change.web.controller;
import com.netease.mail.yanxuan.change.biz.service.InteriorChangeConfigService;
import com.netease.mail.yanxuan.change.common.bean.AdminUserHolder;
import com.netease.mail.yanxuan.change.dal.meta.model.po.ChangeGoodsPrincipalPO;
import com.netease.mail.yanxuan.change.integration.flow.supplier.FlowRpcSupplierSendService;
import com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierSearchRemoteReq;
import com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierSimpleRsp;
import com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -50,10 +54,12 @@ public class TestController {
}
@Autowired
private InteriorChangeConfigService service;
private FlowRpcSupplierSendService service;
@PostMapping("/test1")
public Map<Long, ChangeGoodsPrincipalPO> test1(@RequestBody List<Long> itemIds){
return service.queryGoodsPrincipalInfo(itemIds);
@PostMapping("/test")
public AjaxResponse<List<SupplierSimpleRsp>> test1(@RequestParam String name){
SupplierSearchRemoteReq req = new SupplierSearchRemoteReq();
req.setSearchText(name);
return service.queryByConditionForQc(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